Skip to content

Commit

Permalink
Avoid restarting when updating config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabegma committed Apr 9, 2023
1 parent d9268ac commit 14a57d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions azimuth/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,7 @@ def initialize_managers_and_config(
cluster: Dask cluster to use, if different than default.
"""
global _task_manager, _dataset_split_managers, _azimuth_config
if _task_manager:
_task_manager.restart()
else:
if not _task_manager:
_task_manager = TaskManager(cluster, azimuth_config.large_dask_cluster)

_azimuth_config = azimuth_config
Expand Down

0 comments on commit 14a57d9

Please sign in to comment.