Skip to content

Commit

Permalink
fix influxdb data collect
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Dec 30, 2023
1 parent 7689c97 commit 3edcfa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ytdlbot/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion ytdlbot/ytdl_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3edcfa9

Please sign in to comment.