Add cron jobs to good job, will run in instance with RUNNER=1 env.
All checks were successful
Build and Publish Docker Container / build (push) Successful in 5m49s

This commit is contained in:
Joshua Coles 2024-02-07 10:27:32 +00:00
parent e8ea826976
commit f850526a59

View File

@ -20,12 +20,26 @@ module LectureAttendanceManager
# Disable sass to make tailwind work # Disable sass to make tailwind work
config.assets.css_compressor = nil config.assets.css_compressor = nil
# Configuration for the application, engines, and railties goes here. # Good Job Cron Jobs
#
# These settings can be overridden in specific environments using the files # Enable cron in this process
# in config/environments, which are processed later. config.good_job.enable_cron = ENV['RUNNER'].present? && ENV['RUNNER'] == '1'
#
# config.time_zone = "Central Time (US & Canada)" # Configure cron with a hash that has a unique key for each recurring job
# config.eager_load_paths << Rails.root.join("extras") config.good_job.cron = {
lecture_checkin_job: {
cron: '14 * * * 1,2,3,4,5',
class: 'LectureCheckinJob',
},
# TODO: Uncomment when Panopto is used again
# scrape_panopto_job: {
# cron: '* * * * 1,2,3,4,5',
# class: 'ScrapePanoptoJob',
# },
scrape_toggl_job: {
cron: '10 * * * 1,2,3,4,5',
class: 'ScrapeTogglJob',
},
}
end end
end end