kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
13.1k stars 1.15k forks source link

Ensure that we don't display triggers with "flow source not found" #5998

Open anna-geller opened 2 days ago

anna-geller commented 2 days ago

Feature description

Automatically remove such triggers — it's quite confusing to display them if the flow no longer exists - we can consider some background cleanup process to avoid showing them

To reproduce: on the preview, we have tens of those zombie triggers https://preview-ee-kafka.kestra.io/ui/admin/triggers?size=100&page=1

image

anna-geller commented 2 days ago

From the team:

There should not be a trigger if the flow is deleted, we should delete the trigger so this may be a bug. We could add defensive code to asynchronously delete triggers that are no longer relevant when they are queried (and fix the root cause). the main issue is probably that somewhere in the code, we are deleting flow, without deleting triggers