Skip to content

Commit aa679a9

Browse files
Merge pull request #38 from Purple-Stock/enable-cron-staging-environment-variable
Enable cron staging environment variable
2 parents 1f187bf + 0c6f07f commit aa679a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/environments/development.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
# config.action_cable.disable_request_forgery_protection = true
7474
config.good_job.smaller_number_is_higher_priority = true
7575

76-
config.good_job.enable_cron = false
76+
config.good_job.enable_cron = ENV['ENABLE_CRON'] || false
7777
config.good_job.cron = {
7878
product_sync_job: {
7979
cron: "*/10 * * * *",

config/environments/staging.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
config.good_job.smaller_number_is_higher_priority = true
9999
config.good_job.execution_mode = :async
100100

101-
config.good_job.enable_cron = true
101+
config.good_job.enable_cron = ENV['ENABLE_CRON'] || false
102102
config.good_job.cron = {
103103
product_sync_job: {
104104
cron: "*/10 * * * *",

0 commit comments

Comments
 (0)