Skip to content

Commit

Permalink
chore: fix cron
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Jun 25, 2024
1 parent c2ec78b commit 83147eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions balanced_backend/main_cron.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ def main():
# Run the jobs immediately in order
run_cron_with_session(i["func"])

logger.info("Initialization jobs...")
for i in INITS:
run_cron_with_session(i)

# Then run them in the scheduler
sched.add_job(
func=run_cron_with_session,
Expand All @@ -134,6 +130,10 @@ def main():
id=i["func"].__name__,
)

logger.info("Initialization jobs...")
for init in INITS:
run_cron_with_session(init)

sched.start()


Expand Down

0 comments on commit 83147eb

Please sign in to comment.