tech: add env var to disable cron scheduling
This commit is contained in:
parent
99d2ad3522
commit
016c392914
2 changed files with 4 additions and 1 deletions
|
@ -4,7 +4,7 @@ class Cron::CronJob < ApplicationJob
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
def schedulable?
|
def schedulable?
|
||||||
true
|
true && ENV['CRON_JOBS_DISABLED'].blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
def schedule
|
def schedule
|
||||||
|
|
|
@ -259,3 +259,6 @@ WEASYPRINT_URL="http://10.33.23.204:5000/pdf"
|
||||||
|
|
||||||
# Use this env var customize the max number of deleted user per day
|
# Use this env var customize the max number of deleted user per day
|
||||||
EXPIRE_USER_DELETION_JOB_LIMIT=10000
|
EXPIRE_USER_DELETION_JOB_LIMIT=10000
|
||||||
|
|
||||||
|
# write anything to disable cron jobs
|
||||||
|
CRON_JOBS_DISABLED=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue