jpuris
06/10/2024, 3:41 PM❯ prefect --no-prompt deploy local-dev-jp
not enough values to unpack (expected 2, got 1)
The project is very simple..
❯ tree .
.
├── README.md
├── app
│ └── flow.py
└── prefect.yaml
I'm pretty sure there is a mistake in prefect.yaml
somewhere, though the lack of examples for a local process deployment and the rather non-verbose error message, makes me pull my hair out 😞
Will add the prefect.yaml
file in the thread
Any ideas?jpuris
06/10/2024, 3:41 PMname: servicenow-data-loader
prefect-version: 2.19.4
build: null
push: null
pull: null
deployments:
- name: local-dev-jp
description: JP's local development environment
schedule: null
entrypoint: app/flow.py:sn_data_loader
parameters: null
work_pool:
name: jp-local-dev-pool
work_queue_name: jp-local-dev-queue
edit: removed the parameters, still no cookie 😞jpuris
06/10/2024, 3:43 PMapp/flow.py
file looks like so
from prefect import flow
@flow
def sn_data_loader():
print("Hello, world!")
Nate
06/10/2024, 3:46 PM❯ prefect --no-prompt deploy local-dev-jp
this should be
❯ prefect --no-prompt deploy --name local-dev-jp
jpuris
06/10/2024, 3:47 PMjpuris
06/10/2024, 3:47 PM❯ prefect --no-prompt deploy --name local-dev-jp
This deployment configuration references work pool 'jp-local-dev-pool' which does not exist. This means no worker will be able to pick up its runs. You can create a work pool in the Prefect UI.
getting somewhere!Nate
06/10/2024, 3:48 PM