poprawki w zadaniach zaplanowanych
This commit is contained in:
parent
982a5049d7
commit
8023794451
@ -4,4 +4,5 @@ Flask-SQLAlchemy
|
|||||||
paramiko
|
paramiko
|
||||||
apscheduler
|
apscheduler
|
||||||
gunicorn
|
gunicorn
|
||||||
waitress
|
waitress
|
||||||
|
pytz
|
@ -7,6 +7,7 @@ if __name__ == "__main__":
|
|||||||
db.create_all()
|
db.create_all()
|
||||||
for job in scheduler.get_jobs():
|
for job in scheduler.get_jobs():
|
||||||
job.modify(next_run_time=datetime.now())
|
job.modify(next_run_time=datetime.now())
|
||||||
|
print(job)
|
||||||
if not scheduler.running:
|
if not scheduler.running:
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
serve(app, listen="*:5580", threads=4, ident="")
|
serve(app, listen="*:5580", threads=4, ident="")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user