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

time is separated for different import jobs

parent 9de01675
No related branches found
No related tags found
1 merge request!238Tns update
......@@ -19,7 +19,7 @@ logger = logging.getLogger(__name__)
class SubjectImporterCronJob(CronJobBase):
RUN_AT_TIMES = getattr(settings, "IMPORT_RUN_AT", ['23:45'])
RUN_AT_TIMES = getattr(settings, "SUBJECT_IMPORT_RUN_AT", ['23:45'])
schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'web.import_subjects_daily_job' # a unique code
......@@ -63,7 +63,7 @@ class SubjectImporterCronJob(CronJobBase):
class VisitImporterCronJob(CronJobBase):
RUN_AT_TIMES = getattr(settings, "IMPORT_RUN_AT", ['23:55'])
RUN_AT_TIMES = getattr(settings, "VISIT_IMPORT_RUN_AT", ['23:55'])
schedule = Schedule(run_at_times=RUN_AT_TIMES)
code = 'web.import_visits_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