Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task is added again each time being run #18

Open
n0str opened this issue Nov 26, 2019 · 0 comments
Open

Task is added again each time being run #18

n0str opened this issue Nov 26, 2019 · 0 comments

Comments

@n0str
Copy link
Member

n0str commented Nov 26, 2019

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant