Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dask client interface to account for kwarg changes in 2.6.0 #1621

Merged
merged 1 commit into from
Oct 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update dask client interface to account for kwarg changes in 2.6.0
  • Loading branch information
cicdw committed Oct 16, 2019
commit 6df5c3511a41067814cb7c50ac75d5adadc366a3
12 changes: 6 additions & 6 deletions src/prefect/engine/executors/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ def start(self) -> Iterator[None]:
Creates a `dask.distributed.Client` and yields it.
"""
try:
self.kwargs.update(
silence_logs=logging.CRITICAL if not self.debug else logging.WARNING
)
with Client(
self.address, processes=self.local_processes, **self.kwargs
) as client:
if self.address is None:
self.kwargs.update(
silence_logs=logging.CRITICAL if not self.debug else logging.WARNING
)
self.kwargs.update(processes=self.local_processes)
with Client(self.address, **self.kwargs) as client:
self.client = client
self.is_started = True
yield self.client
Expand Down