mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Disabling downloads when reloading.
This commit is contained in:
parent
df0b7486ef
commit
bd21aa1ed8
1 changed files with 3 additions and 1 deletions
|
|
@ -105,11 +105,13 @@ def reset_shared_contexts(app: Sanic):
|
|||
|
||||
# Events.
|
||||
app.shared_ctx.single_tasks_started.clear()
|
||||
app.shared_ctx.download_manager_disabled.clear()
|
||||
app.shared_ctx.download_manager_stopped.clear()
|
||||
app.shared_ctx.flags_initialized.clear()
|
||||
app.shared_ctx.perpetual_tasks_started.clear()
|
||||
|
||||
# Do not start downloads when reloading.
|
||||
app.shared_ctx.download_manager_disabled.set()
|
||||
|
||||
|
||||
def initialize_configs_contexts(app: Sanic):
|
||||
"""Assign multiprocessing Dicts to their respective FileConfigs in this process."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue