Skip to content

Commit

Permalink
Fix scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Aug 21, 2024
1 parent 2ef4917 commit 704d26f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 32 deletions.
30 changes: 0 additions & 30 deletions backend/server/adventures/management/commands/start_scheduler.py

This file was deleted.

5 changes: 3 additions & 2 deletions backend/server/adventures/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ def start_scheduler():
scheduler.add_job(
run_worldtravel_seed,
trigger="interval",
minutes=3,
hours=24,
id="worldtravel_seed",
max_instances=1,
replace_existing=True,
)

logger.info("Starting scheduler...")
scheduler.start()
scheduler.start()
return scheduler

0 comments on commit 704d26f

Please sign in to comment.