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
All checks were successful
Build and Publish Docker Container / build (push) Successful in 5m49s
This commit is contained in:
parent
e8ea826976
commit
f850526a59
@ -20,12 +20,26 @@ module LectureAttendanceManager
|
||||
# Disable sass to make tailwind work
|
||||
config.assets.css_compressor = nil
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
# in config/environments, which are processed later.
|
||||
#
|
||||
# config.time_zone = "Central Time (US & Canada)"
|
||||
# config.eager_load_paths << Rails.root.join("extras")
|
||||
# Good Job Cron Jobs
|
||||
|
||||
# Enable cron in this process
|
||||
config.good_job.enable_cron = ENV['RUNNER'].present? && ENV['RUNNER'] == '1'
|
||||
|
||||
# Configure cron with a hash that has a unique key for each recurring job
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user