Hi Everyone, can anyone help me on this why i am g...
# ask-community
n
Hi Everyone, can anyone help me on this why i am getting "worker not available"
n
hi @Nimesh Kumar - which version of prefect do you have there?
n
2.7.7
n
gotcha, are you able to upgrade?
n
Yes, i can
n
cool, workers are no longer experimental in the newer versions of prefect, so you wont have to flip a feature flag to use them (which I think is what was missing above)
n
Ohh okay thanks Also had one ques, was trying to create work queue using an api, it get created but in a unhealty state, is there any way i can make it healthy without gioimg through prefect agent —work queue “name” I wanted to create a queue dynamically.
n
in general you have to run a worker (or agent) so that it can listen for and pick up work you want to do. if nothing is listening via
prefect worker start --pool my-pool
or via (legacy) agents then that work pool (work queue) will reflect that unhealthy state https://docs.prefect.io/latest/guides/upgrade-guide-agents-to-workers/?h=workers+age
n
No other way to create queue dynamically?
n
im not sure I understand what you're asking, a queue is not useful without a process listening to it and picking up submitted work if you're trying to avoid having to run a worker, you should check out our push pools
a
Hey Nate, Along the same lines are there plans to deprecate agents in future? We rely on them heavily so wondering how our migration plan should be.
n
yes agents will be deprecated at some point in the future, but once we announce it there will be a 6 month window before we stop supporting them https://docs.prefect.io/latest/guides/upgrade-guide-agents-to-workers/?h=workers+age
thank you 1