mirror of
https://github.com/omg-xtao/ytdlbot.git
synced 2024-11-16 03:45:23 +00:00
dynamic worker name
This commit is contained in:
parent
4f78eeef15
commit
73cb33a831
@ -107,7 +107,11 @@ def normal_download(bot_msg, client, url):
|
||||
|
||||
|
||||
def run_celery():
|
||||
argv = ["-A", "tasks", 'worker', '--loglevel=info', "--pool=threads", f"--concurrency={WORKERS * 2}"]
|
||||
argv = [
|
||||
"-A", "tasks", 'worker', '--loglevel=info',
|
||||
"--pool=threads", f"--concurrency={WORKERS * 2}",
|
||||
"-n", f"{os.getenv('WORKER_NAME', '')}"
|
||||
]
|
||||
app.worker_main(argv)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user