diff --git a/executor/app/main.py b/executor/app/main.py index 508ee62..5daf7e6 100644 --- a/executor/app/main.py +++ b/executor/app/main.py @@ -452,9 +452,9 @@ def get_size(self, location_path): dask_cluster_opts["processes"] = True port = int(os.getenv("DASK_DASHBOARD_PORT", 8787)) dask_cluster_opts["dashboard_address"] = f":{port}" - dask_cluster_opts["n_workers"] = os.getenv("DASK_N_WORKERS", 1) + dask_cluster_opts["n_workers"] = int(os.getenv("DASK_N_WORKERS", 1)) dask_cluster_opts["memory_limit"] = os.getenv("DASK_MEMORY_LIMIT", "auto") - dask_cluster_opts['thread_per_worker'] = os.getenv("DASK_THREADS_PER_WORKER", 8) + dask_cluster_opts['thread_per_worker'] = int(os.getenv("DASK_THREADS_PER_WORKER", 8)) executor = Executor(broker=broker, store_path=store_path, dask_cluster_opts=dask_cluster_opts)