Thomas Mignon
12/07/2021, 9:25 AMexecution:
dask:
config:
cluster:
pbs:
queue: mpi_4
project: dagster
walltime: '00:05:00'
memory: '120gb'
cores: 28
resource_spec: 'select=4:ncpus=28:mem=120gb'
n_workers: 1
I got this error :
raise DagsterInvalidConfigError(
dagster.core.errors.DagsterInvalidConfigError: Error in config for job
Error 1: Received unexpected config entry "dask" at path root:execution. Expected: "{ config: { cluster: { existing: { address: (String | { env: String }) } kube(/home/datawork-semaphore-exp/conda/conda_envs/semaphore-scripts-1.0.11) semexp@datarmor3:/home1/datawork/semexp/workspace/dagit/semaphore-dagster-config/pipelines> Error 2: Missing required config entry "config" at path root:execution. Sample config for missing entry: {'config': {'cluster': '<selector>'}}
And my job looks like that :
@job(
name='template_runner_job',
resource_defs={"io_manager": fs_io_manager},
executor_def=dask_executor
)
def template_runner_job():
template_runner_op()
prha
12/07/2021, 4:34 PMdask
in your config:
execution:
config:
cluster:
existing:
...
Are you using the Launchpad in Dagit to compose the config? If not, you may find the autocomplete / config validation feature useful.Thomas Mignon
12/08/2021, 8:43 PMdask
because of a control on the interface that doesn't allow me this keyworddask
in my config, how can i configure my dask_executor that i put on my job ?prha
12/08/2021, 9:21 PMchris
12/08/2021, 9:26 PMThomas Mignon
12/09/2021, 2:26 PM<https://github.com/dagster-io/dagster/pull/5848/files/8efc6be1cc2e6795e56fb002846b9d17ef694720#diff-f4477f5a8ae52e60950dc28d9f884f39f9912e850e02692dce9b0fb325ae280b|dagster_dask/executor.py>
dask
is in my configdagster job execute -f myjob.py -c myconfig.yaml
: I got this
Error 1: Received unexpected config entry "dask" at path root:execution. Expected: "{ config: { cluster: { existing: { address: (String | { env: String }) } kube?: { } local?: { } lsf?: { } moab?: { } oar?: { } pbs?: { } sge?: { } slurm?: { } ssh?: { } yarn?: { } } } }".
Error 2: Missing required config entry "config" at path root:execution. Sample config for missing entry: {'config': {'cluster': '<selector>'}}
chris
12/09/2021, 4:43 PMdask
in your config. Since jobs only have one executor, there is no need to additionally specify the executor name in execution config. Since executor_name
is no longer part of the schema, you're getting an error. If you get rid of the dask
keyword, it should work