1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +00:00

Daemonize worker processes so greed can be stopped with Ctrl+C

This commit is contained in:
Steffo 2020-09-09 16:41:22 +02:00
parent 177f5b3507
commit 62587f0a19

View file

@ -142,7 +142,8 @@ def main():
chat=update.message.chat, chat=update.message.chat,
telegram_user=update.message.from_user, telegram_user=update.message.from_user,
cfg=user_cfg, cfg=user_cfg,
engine=engine) engine=engine,
daemon=True)
# Start the worker # Start the worker
log.debug(f"Starting {new_worker.name}") log.debug(f"Starting {new_worker.name}")
new_worker.start() new_worker.start()