Skip to content

Commit

Permalink
remove apscheduler for tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Dec 23, 2023
1 parent 4ec8a8e commit fa415c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ytdlbot/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
from limit import Payment
from utils import (
apply_log_formatter,
auto_restart,
customize_logger,
get_metadata,
get_revision,
Expand Down Expand Up @@ -530,7 +529,7 @@ def run_celery():
threading.Thread(target=run_celery, daemon=True).start()

scheduler = BackgroundScheduler(timezone="Europe/London")
scheduler.add_job(auto_restart, "interval", seconds=900)
# scheduler.add_job(auto_restart, "interval", seconds=900)
scheduler.start()

idle()
Expand Down

0 comments on commit fa415c4

Please sign in to comment.