https://prefect.io logo
Title
s

Shivan Trivedi

02/03/2023, 3:32 PM
Hi, I am getting 500 internal server error in deployment api while applying deployment to the cloud , below is attached the screenshot for reference
a

Arturo Martínez Pacheco

02/03/2023, 3:47 PM
it happened the same to me when I gave the work queue another name, I changed the name of it to test and it worked, could you paste your deploy command?
s

Shivan Trivedi

02/04/2023, 5:22 AM
prefect deployment build flows_with_tasks_v2.py:api_flow -n flows_with_tasks -q poc
It worked @Arturo Martínez Pacheco, I don't know how but api is working now and created custom work queue
But I am not able to connect to docker container block to execute my flow , Can you please help me in that @Arturo Martínez Pacheco
a

Arturo Martínez Pacheco

02/04/2023, 5:37 PM
@Shivan Trivedi you have to also specify your docker container block, for example I created a docker block in prefect cloud UI called: docker-reddit, you use the flag -ib
prefect deployment build ./proto-project/proto_main.py:scrape_reddit \
  -n docker-reddit \
  -q test \
  -sb github/git-docker \
  -ib docker-container/docker-reddit \
  -o docker-reddit \
  --apply
the -sb refers to storage block. which is code saved in github, and from there docker pulls the code
🙌 1