mirror of
https://github.com/simon987/sist2.git
synced 2025-04-18 17:56:44 +00:00
close db connection before loop #346
This commit is contained in:
parent
7bc4b73e43
commit
7eb064162e
@ -10,7 +10,9 @@ from jobs import Sist2Job
|
||||
|
||||
|
||||
def _check_schedule(db: PersistentState, run_job):
|
||||
for job in db["jobs"]:
|
||||
jobs = list(db["jobs"])
|
||||
|
||||
for job in jobs:
|
||||
job: Sist2Job
|
||||
|
||||
if job.schedule_enabled:
|
||||
|
Loading…
x
Reference in New Issue
Block a user