Add concern for Datagouv schedulable jobs

This commit is contained in:
Kara Diaby 2022-07-29 11:17:11 +02:00
parent a156529394
commit ec3118e82c

View file

@ -0,0 +1,8 @@
module DatagouvCronSchedulableConcern
extend ActiveSupport::Concern
class_methods do
def schedulable?
ENV.fetch('OPENDATA_ENABLED', nil) == 'enabled'
end
end
end