Leon Kozlowski
02/08/2024, 1:14 PMSubmission failed. ValueError: Process cannot be run with empty command. See Less
- is there any way I can debug this?Nate
02/08/2024, 3:14 PMcommand
field?Leon Kozlowski
02/08/2024, 3:16 PMLeon Kozlowski
02/08/2024, 3:16 PMLeon Kozlowski
02/08/2024, 3:16 PMLeon Kozlowski
02/08/2024, 3:16 PMFROM prefecthq/prefect:2.14.20-python3.10
RUN apt-get update && apt-get install --no-install-recommends --no-upgrade -y \
libpq-dev \
curl -y && \
rm -rf /var/lib/apt/lists/*
ARG PIP_INDEX_URL
RUN test -n "${PIP_INDEX_URL}" || (echo "'--build-arg PIP_INDEX_URL' was not set!" && false)
COPY requirements.txt .
RUN pip install -U pip
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /app
COPY src src
COPY opsgenie.yaml opsgenie.yaml
Leon Kozlowski
02/08/2024, 3:17 PMprefect.yaml
deployment config:
pull:
- prefect.deployments.steps.set_working_directory:
directory: /app
deployments:
- name: prod-insights-generic
tags:
- prod
- insights
- redshift
description: Generic Insights Report Handler
schedule:
cron: "0 8 * * *"
timezone: US/Eastern
entrypoint: src/flow.py:insights_generic
work_pool:
name: k8s-work-pool
work_queue_name: prod
job_variables:
image: "{{ build-image.image }}"
Nate
02/08/2024, 3:21 PMNate
02/08/2024, 3:21 PMLeon Kozlowski
02/08/2024, 3:22 PMLeon Kozlowski
02/08/2024, 3:24 PMLeon Kozlowski
02/08/2024, 3:24 PMk logs prefect-worker-58dc454f98-cnth6 | grep acrid-avocet
or
k logs prefect-worker-58dc454f98-cnth6 | grep zeta595-aguateca
I'm getting no logsLeon Kozlowski
02/08/2024, 3:25 PMk logs prefect-worker-58dc454f98-cnth6 | grep 'Submission failed'
also has nothingNate
02/08/2024, 3:54 PMLeon Kozlowski
02/08/2024, 3:55 PMk get pods | grep worker
prefect-worker-58dc454f98-cnth6 1/1 Running 0 42h
only 1 worker podNate
02/08/2024, 4:24 PMLeon Kozlowski
02/08/2024, 6:28 PMLeon Kozlowski
02/08/2024, 6:29 PMLeon Kozlowski
02/08/2024, 6:29 PMLeon Kozlowski
02/08/2024, 6:29 PMNate
02/08/2024, 6:39 PMSubmission failed. ValueError: Process cannot be run with empty command. See Less
no overridden command
Kevin Grismore
02/08/2024, 7:03 PMNate
02/08/2024, 7:04 PMKevin Grismore
02/08/2024, 7:06 PMLeon Kozlowski
02/08/2024, 7:07 PMNate
02/08/2024, 7:07 PMKevin Grismore
02/08/2024, 7:07 PMLeon Kozlowski
02/08/2024, 7:08 PMworker:
image:
prefectTag: 2.14.20-python3.10-kubernetes
Leon Kozlowski
02/08/2024, 7:09 PMk exec -it prefect-worker-77df78588d-qlhqh -- sh
$ prefect --version
$ 2.14.20
Leon Kozlowski
02/08/2024, 7:10 PM2.14.16
Leon Kozlowski
02/12/2024, 3:14 PMLeon Kozlowski
02/12/2024, 3:17 PMWORKDIR
Flow could not be retrieved from deployment.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/deployments/steps/core.py", line 122, in run_steps
step_output = await run_step(step, upstream_outputs)
File "/usr/local/lib/python3.10/site-packages/prefect/deployments/steps/core.py", line 93, in run_step
result = await from_async.call_soon_in_new_thread(
File "/usr/local/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 291, in aresult
return await asyncio.wrap_future(self.future)
File "/usr/local/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 315, in _run_sync
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.10/site-packages/prefect/deployments/steps/pull.py", line 28, in set_working_directory
os.chdir(directory)
FileNotFoundError: [Errno 2] No such file or directory: '/app'
whereas of schedule runs do not hit this error