You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, when i start the scheduler, it will insert the job in the sqlite. however, when i restart the scheduler, it will insert again, which will cause an exception:
Traceback (most recent call last):
File "/Users/zhangzheng/PycharmProjects/quant/mainapp.py", line 73, in <module>
scheduler.start()
File "/Users/zhangzheng/pyenv/tensorflow/lib/python2.7/site-packages/flask_apscheduler/scheduler.py", line 81, in start
self.__scheduler.start()
File "/Users/zhangzheng/pyenv/tensorflow/lib/python2.7/site-packages/apscheduler/schedulers/background.py", line 33, in start
BaseScheduler.start(self, *args, **kwargs)
File "/Users/zhangzheng/pyenv/tensorflow/lib/python2.7/site-packages/apscheduler/schedulers/base.py", line 151, in start
self._real_add_job(job, jobstore_alias, replace_existing)
File "/Users/zhangzheng/pyenv/tensorflow/lib/python2.7/site-packages/apscheduler/schedulers/base.py", line 847, in _real_add_job
store.add_job(job)
File "/Users/zhangzheng/pyenv/tensorflow/lib/python2.7/site-packages/apscheduler/jobstores/sqlalchemy.py", line 94, in add_job
raise ConflictingIdError(job.id)
apscheduler.jobstores.base.ConflictingIdError: u'Job identifier (job9) conflicts with an existing job'
I think this isn't the right way when I start a scheduler. the right way should be inserting a job when the store not exist or just skip it. beacuse, when my app is done, i want to resume the existing job when i restart it.
zhangzheng
The text was updated successfully, but these errors were encountered:
I have the Config like this:
So, when i start the scheduler, it will insert the job in the sqlite. however, when i restart the scheduler, it will insert again, which will cause an exception:
I think this isn't the right way when I start a scheduler. the right way should be inserting a job when the store not exist or just skip it. beacuse, when my app is done, i want to resume the existing job when i restart it.
zhangzheng
The text was updated successfully, but these errors were encountered: