https://dagster.io/ logo
j

Justin Swaney

03/18/2020, 11:28 PM
Working on setting Dagster up with a Dask cluster running on top of an SGE cluster. When I follow the docs for Dask deployment, I get
Copy code
AttributeError: 'Client' object has no attribute '_periodic_callbacks'
a

alex

03/18/2020, 11:29 PM
whats the full stack trace? i don’t see us calling that code directly
j

Justin Swaney

03/18/2020, 11:30 PM
Copy code
2020-03-18 23:25:13 - dagster - ERROR - dask_pipeline - 89634b3d-7383-4f94-8ecd-777b0b8672e2 - PIPELINE_FAILURE - Execution of pipeline "dask_pipeline" failed.
Traceback (most recent call last):
  File "/shared/anaconda3/envs/fulcrumseek/bin/dagster", line 11, in <module>
    sys.exit(main())
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster/cli/__init__.py", line 38, in main
    cli(obj={})  # pylint:disable=E1123
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster/cli/pipeline.py", line 317, in pipeline_execute_command
    execute_execute_command(env, kwargs, mode)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster/cli/pipeline.py", line 322, in execute_execute_command
    return do_execute_command(pipeline, env, mode)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster/cli/pipeline.py", line 345, in do_execute_command
    raise_on_error=False,
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster/core/execution/api.py", line 200, in execute_pipeline
    _pipeline_execution_iterator(pipeline_context, execution_plan, pipeline_run)
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster/core/execution/api.py", line 77, in _pipeline_execution_iterator
    pipeline_context, execution_plan=execution_plan, pipeline_run=pipeline_run
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/dagster_dask/engine.py", line 83, in execute
    with dask.distributed.Client(**dask_config.build_dict(pipeline_name)) as client:
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/distributed/client.py", line 641, in __init__
    "Unexpected keyword arguments: {}".format(str(sorted(kwargs)))
ValueError: Unexpected keyword arguments: ['threads_per_worker']
Exception ignored in: <function Client.__del__ at 0x7fd7e3d21b90>
Traceback (most recent call last):
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/distributed/client.py", line 1131, in __del__
  File "/shared/anaconda3/envs/fulcrumseek/lib/python3.7/site-packages/distributed/client.py", line 1346, in close
AttributeError: 'Client' object has no attribute '_periodic_callbacks'
a

alex

03/18/2020, 11:34 PM
Unexpected keyword arguments [‘threads_per_worker’]
seems to be the real issue
cc @nate
n

nate

03/18/2020, 11:40 PM
thanks for sleuthing this @alex, I can get a fix out soon
j

Justin Swaney

03/19/2020, 12:07 AM
It looks like they made this change here and when I revert to
distributed=v2.5.2
it gets a little further and actually writes intermediates to S3
5 Views