Skip to content
Snippets Groups Projects
Commit d87bc964 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

run cron jobs at time specified in settings

parent ccc1d9cb
No related branches found
No related tags found
1 merge request!236run cron jobs at time specified in settings
Pipeline #24644 passed
......@@ -14,8 +14,8 @@ logger = logging.getLogger(__name__)
class ExporterCronJob(CronJobBase):
RUN_EVERY_MINUTES = 60 * 24
schedule = Schedule(run_every_mins=RUN_EVERY_MINUTES)
RUN_AT_TIMES = getattr(settings, "EXPORT_RUN_AT", ['23:55'])
schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'web.import_daily_job' # a unique code
@timeout_decorator.timeout(CRON_JOB_TIMEOUT)
......
......@@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
class ImporterCronJob(CronJobBase):
RUN_AT_TIMES = ['23:55']
RUN_AT_TIMES = getattr(settings, "IMPORT_RUN_AT", ['23:55'])
schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'web.import_daily_job' # a unique code
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment