diff --git a/ytdlbot/database.py b/ytdlbot/database.py index b622ca7f..25fa4753 100644 --- a/ytdlbot/database.py +++ b/ytdlbot/database.py @@ -317,7 +317,7 @@ def get_worker_data() -> dict: password = os.getenv("FLOWER_PASSWORD", "123456abc") token = base64.b64encode(f"{username}:{password}".encode()).decode() headers = {"Authorization": f"Basic {token}"} - r = requests.get("https://celery.dmesg.app/dashboard?json=1", headers=headers) + r = requests.get("https://celery.dmesg.app/workers?json=1", headers=headers) if r.status_code != 200: return dict(data=[]) return r.json() diff --git a/ytdlbot/ytdl_bot.py b/ytdlbot/ytdl_bot.py index 99810d61..aba88ddc 100644 --- a/ytdlbot/ytdl_bot.py +++ b/ytdlbot/ytdl_bot.py @@ -573,7 +573,7 @@ def trx_notify(_, **kwargs): if __name__ == "__main__": MySQL() TRX_SIGNAL.connect(trx_notify) - scheduler = BackgroundScheduler(timezone="Europe/London", job_defaults={"max_instances": 6}) + scheduler = BackgroundScheduler(timezone="Europe/London") scheduler.add_job(auto_restart, "interval", seconds=600) scheduler.add_job(clean_tempfile, "interval", seconds=120) scheduler.add_job(gc.collect, "interval", seconds=3600)