Spencer Nelson
02/23/2023, 11:10 PMk8s_run_executor
. The documentation (https://docs.dagster.io/_apidocs/libraries/dagster-k8s#dagster_k8s.k8s_job_executor) has a suggestion but I’m having trouble understanding it.
It says:
To use the k8s_job_executor, set it as the executor_def when defining a job:
Copy code(a code example in Python)
> Then you can configure the executor with run config as follows:
Where does that YAML run config go?Copy code(a YAML document)
daniel
02/23/2023, 11:17 PMSpencer Nelson
02/23/2023, 11:20 PMdaniel
02/23/2023, 11:22 PMSpencer Nelson
02/23/2023, 11:22 PMSpencer Nelson
02/23/2023, 11:23 PMdaniel
02/23/2023, 11:23 PMSpencer Nelson
02/23/2023, 11:41 PMnsc_extract_job = define_asset_job(
"nsc_extract_job",
selection=["nsc_source_dataframe"],
config={"execution": {"config": {"max_concurrent": 5}}},
partitions_def=nsc.PARTITIONING,
)
This produced an error to do with the config’s shapeSpencer Nelson
02/23/2023, 11:41 PMdagster._core.errors.DagsterInvalidConfigError: Error in config for job
Error 1: Received unexpected config entry "max_concurrent" at path root:execution:config. Expected: "{ in_process?: { marker_to_close?: String retries?: { disabled?: { } enabled?: { } } } multiprocess?: { max_concurrent?: Int retries?: { disabled?: { } enabled?: { } } start_method?: { forkserver?: { preload_modules?: [String] } spawn?: { } } tag_concurrency_limits?: [{ key: String limit: Int value?: (String | { applyLimitPerUniqueValue: Bool }) }] } }".
Spencer Nelson
02/23/2023, 11:43 PM"multiprocess": {"max_concurrent": 1}
seems like it would do something quite different, right?daniel
02/23/2023, 11:49 PMSpencer Nelson
02/23/2023, 11:49 PMSpencer Nelson
02/23/2023, 11:49 PM