I have found this `paused` property on a deploymen...
# ask-community
и
I have found this
paused
property on a deployment and hoped to
prefect deployment pause *-stg --version <myversion>
or some variation of it but its hard to find how to implement that in actuality
n
there's two things I would recommend • tags like you mention • separate work pools ◦ stg ◦ prd so the nice thing about the second thing is that you can disable the work pool wholesale to stop work in or the other
и
thanks! i should look into work pools. Meanwhile, can you point me in the right direction with the pseudo-command above? i cant find up to date info on how to pause stuff
n
you’re trying to pause deployment schedules ?
i think that’s all paused does at this point
и
yes trying to pause all schedules of a deployment
ideally all schedules of all staging deployments (name ends with -stg) with a given tag present
n
I think you'd have to hit the endpoint yourself until that PR gets released there might be a better thing to do, but im not super clear on the expected behavior you mentioned
и
after some googling it seems like that filtering isnt gonna be easy with globs (seems like prefect only supports them for
prefect deploy
) and grep isnt gonna play nicely with the output table, so, am i correct to think a python script is my best bet?
oh looking into the link
Okay seems like a good case for hitting /pause_deployment after some filtering with a python script. Am i seeing it right?
n
yeah if you do need to pause then hitting the endpoint from python is what i’d do
и
thank you so much!
👍 1