Heya! I'm struggling with with a seemingly very simple thing.. create and push a local process depl...
j
Heya! I'm struggling with with a seemingly very simple thing.. create and push a local process deployment. Here is the issue
Copy code
❯ prefect --no-prompt deploy local-dev-jp
not enough values to unpack (expected 2, got 1)
The project is very simple..
Copy code
❯ 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?
1
prefect.yaml
Copy code
name: 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 😞
app/flow.py
file looks like so
Copy code
from prefect import flow


@flow
def sn_data_loader():
    print("Hello, world!")
n
Copy code
❯ prefect --no-prompt deploy local-dev-jp
this should be
Copy code
❯ prefect --no-prompt deploy --name local-dev-jp
🙌 1
j
oh my god.. thank you!!!
Copy code
❯ 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!
n
catjam