PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
17.55k stars 1.65k forks source link

Runner Role not able to view full schedule context, leading one to believe it is enabled when it is disabled #15488

Open pdmthorsrud opened 1 month ago

pdmthorsrud commented 1 month ago

Bug summary

I can see a schedule toggle in a deployment, leading me to believe it is enabled. The deployment is however disabled, and there seems to be more schedule toggles laying around, which I cannot see. First image is what I as a runner role sees, and second is what someone with admin sees.

image bilde

Not sure if the difference is one are individual toggles, and the other is a higher level of toggle, or something else?

I'd like to be able to see the full context of a deployment's schedule, even though I am "only" a runner role, considering that is vital information when I am investigating an issue or similar.

Version info (prefect version output)

Running prefect cloud

Additional context

A similar issue was seen in https://github.com/PrefectHQ/prefect/issues/15071, and resolved in https://github.com/PrefectHQ/prefect-ui-library/pull/2692 giving me access to see the schedule toggle I'm now seeing, but I'm stilling missing the full context of a schedule

pdmthorsrud commented 1 month ago

After some digging I realise all of this has popped up as a problem when you switched from single schedule to support for multiple schedules (I'm guessing).

From what I gather you moved away from is_schedule_active to a paused functionality, and I'm assuming it is this paused functionality I'm not seeing in the UI.