Skip to content

Task is added again each time being run #18

@n0str

Description

@n0str

Each run leads to the repeated insertion of tasks into database and apscheduler.

Before N-th run there is 5 documents:

After N-th run there is already 7 documents.

(39495) 19 Nov 27, 00:33:47 general (line 116) INFO Run manager-ai
(39495) 19 Nov 27, 00:33:47 general (line 119) INFO Found 2 new tasks in manager-ai/config.yml
(39495) 19 Nov 27, 00:33:47 general (line 110) INFO Added new periodic task: <Hello World>
(39495) 19 Nov 27, 00:33:47 general (line 110) INFO Added new periodic task: <Xpath>

...

Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:02:46.339675
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:37:00 MSK)" was missed by 0:01:46.340594
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:37:00 MSK)" was missed by 0:00:46.340855
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:02:46.342260
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:01:46.342456
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:00:46.342580
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:02:46.345722
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:37:00 MSK)" was missed by 0:01:46.346796
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:37:00 MSK)" was missed by 0:00:46.347045
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:02:46.348511
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:01:46.348722
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:00:46.348876
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:02:46.351673
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:01:46.351993
Run time of job "Controller.task_handler (trigger: cron[month='*', day='*', day_of_week='*', hour='*', minute='*'], next run at: 2019-11-27 00:34:00 MSK)" was missed by 0:00:46.352257

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions