agronholm on master
Fixed SQLAlchemy 2.0 compatibil… (compare)
agronholm on 3.10.0
agronholm on 3.x
Updated actions (compare)
agronholm on 3.x
Fixed compatibility with SQLAlc… Dropped support for Python < 3.6 (compare)
pre-commit-ci[bot] on pre-commit-ci-update-config
[pre-commit.ci] pre-commit auto… (compare)
CronTrigger
sync
scheduler, with add_schedule
method
Hi there,I wonder create a BackgroundScheduler job to monitor a website every hour,if it found news from the website it's will download the new title then add a new job of BackgroundScheduler which will search the new title for every week.How can i do it,i was wrote some codes:
m_scheduler = BackgroundScheduler({'timezone':'Asia/Shanghai','max_instances': 2});
m_scheduler.add_job(m_caseMonitor.fetchCase,trigger,id="monitor");
m_scheduler.start()
........ fetchCase
def fetchCase():
.......
if len(fetch_words) > 0:
m_scheduler.add_job(self.toutiaoMonitor,'interval',seconds = 30)
But when i wanna add a new job in,i can't start the the new job,only added in.