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 931f444 commit db7d6b8
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 db7d6b8

Please sign in to comment.