Kevin
08/21/2020, 12:10 AMKevin
08/21/2020, 2:26 AM[generate_number_19.compute]: (TypeError) - TypeError: _execute_step_k8s_job() got an unexpected keyword argument 'user_defined_k8s_config_dict
log file attached, again any help is appreciated :Dmax
08/21/2020, 1:04 PMKevin
08/21/2020, 2:23 PMsashank
08/21/2020, 4:16 PMuser_defined_k8s_config_dict
should be a valid arg in 0.9.3sashank
08/21/2020, 4:17 PMdagit
image, the celery
image, and the pipeline_run
imagesashank
08/21/2020, 4:17 PMcelery
images are running?Kevin
08/21/2020, 4:48 PMdagit
, and celery
images use the same imageKevin
08/21/2020, 7:03 PMFROM python:3.7.7
ENV DAGSTER_VERSION=0.9.3
# Cron is required to use scheduling in Dagster
RUN apt-get update && apt-get install -yqq cron
# PIP install for git functions
RUN mkdir -p /opt/dagster/dagster_home /opt/dagster/app
RUN pip install \
dagster==${DAGSTER_VERSION} \
dagster-graphql==${DAGSTER_VERSION} \
dagster-celery[flower,redis,kubernetes]==${DAGSTER_VERSION} \
dagster-cron==${DAGSTER_VERSION} \
dagit==${DAGSTER_VERSION} \
dagster-postgres==${DAGSTER_VERSION} \
dagster-pandas==${DAGSTER_VERSION} \
dagster-gcp==${DAGSTER_VERSION} \
dagster-k8s==${DAGSTER_VERSION} \
dagster-airflow==${DAGSTER_VERSION} \
dagster-celery-k8s==${DAGSTER_VERSION} \
dagster-celery-docker==${DAGSTER_VERSION}
ADD build_cache/ /
RUN pip install -e dagster-aws
# Copy your pipeline code and entrypoint.sh to /opt/dagster/app
COPY *.py *.yaml /opt/dagster/app/
COPY .aws /root/.aws
# Copy dagster instance YAML to $DAGSTER_HOME
ENV DAGSTER_HOME=/opt/dagster/dagster_home
COPY dagster.yaml $DAGSTER_HOME
WORKDIR /opt/dagster/app
sashank
08/21/2020, 7:38 PMsashank
08/21/2020, 7:38 PMsashank
08/21/2020, 7:53 PMkubectl
, you can do:sashank
08/21/2020, 7:54 PMkubectl get pods
to get the name of the pod running the celery workerssashank
08/21/2020, 7:55 PMk exec {pod_name} dagster -- --version
sashank
08/21/2020, 7:55 PMKevin
08/24/2020, 4:59 PMk exec -n <namespace> <pod> dagster --version
dagster, version 0.9.3
it seems as though i have encountered a different issue with each of my attempts to fix it:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/dagster/app/celery_simple_pipeline.py'
File "/usr/local/lib/python3.7/site-packages/dagster/cli/api.py", line 337, in _execute_run_command_body
for event in execute_run_iterator(recon_pipeline, pipeline_run, instance):
File "/usr/local/lib/python3.7/site-packages/dagster/core/execution/api.py", line 74, in execute_run_iterator
step_keys_to_execute=pipeline_run.step_keys_to_execute,
File "/usr/local/lib/python3.7/site-packages/dagster/core/execution/api.py", line 558, in create_execution_plan
pipeline_def = pipeline.get_definition()
File "/usr/local/lib/python3.7/site-packages/dagster/core/definitions/reconstructable.py", line 98, in get_definition
self.repository.get_definition()
File "/usr/local/lib/python3.7/site-packages/dagster/core/definitions/reconstructable.py", line 37, in get_definition
return repository_def_from_pointer(self.pointer)
File "/usr/local/lib/python3.7/site-packages/dagster/core/definitions/reconstructable.py", line 341, in repository_def_from_pointer
target = def_from_pointer(pointer)
File "/usr/local/lib/python3.7/site-packages/dagster/core/definitions/reconstructable.py", line 290, in def_from_pointer
target = pointer.load_target()
File "/usr/local/lib/python3.7/site-packages/dagster/core/code_pointer.py", line 250, in load_target
module = load_python_file(self.python_file, self.working_directory)
File "/usr/local/lib/python3.7/site-packages/dagster/core/code_pointer.py", line 87, in load_python_file
return import_module_from_path(module_name, python_file)
File "/usr/local/lib/python3.7/site-packages/dagster/seven/__init__.py", line 115, in import_module_from_path
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 859, in get_code
File "<frozen importlib._bootstrap_external>", line 916, in get_data
always something XD thank you again for your help!sashank
08/24/2020, 5:20 PMsashank
08/24/2020, 5:20 PMdaniel
08/24/2020, 5:24 PMdaniel
08/24/2020, 5:26 PMKevin
08/24/2020, 6:16 PMdagster pipeline execute -f <pipeline.py>
it executes no problem, and the celery error doesn't appear anymore given my changes to the values.yaml and configmap-instance.yaml -- my attempts at fixing it
any files you guys want to look at do let me know!daniel
08/24/2020, 6:18 PMalex
08/24/2020, 6:19 PMKevin
08/24/2020, 6:30 PMalex
08/24/2020, 6:34 PMvalues.yaml
you are using too?Kevin
08/24/2020, 6:40 PMalex
08/24/2020, 6:43 PMuserDeployments.enabled
is false
and the pipeline_run
section has been commented outalex
08/24/2020, 6:45 PMuserDeployments.enabled
to true
Kevin
08/24/2020, 6:48 PMuserDeployments.enabled
to true
but that lead to the error i mentioned above of:
[generate_number_0.compute]: (TypeError) - TypeError: _execute_step_k8s_job() got an unexpected keyword argument 'user_defined_k8s_config_dict'
i'll uncomment the pipeline_run section but i seem to remember an error when i did thatKevin
08/24/2020, 6:53 PMdagster.core.errors.DagsterSubprocessError: During celery execution errors occurred in workers:
[not_much_1.compute]: (ParameterCheckError) - dagster.check.ParameterCheckError: Param "text" is not a str. Got ApiException() which is type <class 'kubernetes.client.rest.ApiException'>.
alex
08/24/2020, 6:57 PMhelm uninstall
every time. Given the errors you have been seeing I am guessing this might be the case.alex
08/24/2020, 7:05 PMhelm uninstall
I believe a lot of the confusing errors from above have to do with stale nodes in the cluster since k8s doesnât know you have published a new genimind/dagster-kcore:latest
and so wonât redeploy the long standing services dagit
or celery
. The alwaysPull: True
trick only works for the job
resources since they pull the newest copy of latest
when they are created for run/step execution.Kevin
08/24/2020, 9:16 PMalex
08/24/2020, 9:53 PM