potiuk commented on PR #37087: URL: https://github.com/apache/airflow/pull/37087#issuecomment-1980011456
How about adding a flag "kind of manual" dag run ? I think "manual" is not as bad as it is for all that kinds of ways DAG can be run "manually". I think it will be far easier to keep single run type, and keep the extra flag next to it. This has the nice benefit that it keeps 100% backwards compatiblity - with APIS. UIs etc. - and only when you really want you can start distibguishing betweeen the different types (and do it gradually - for example add different colors or even just borders for different types of manual tasks in grid view, maybe display kind of manual trigger in a few places, etc. etc. Nice thing with this approach is that for example API users will be completely unaffected. If you add another DAG run type, maintaining 100%. backwards compatibility will be difficult or even impossible. And we promised compatibility. Adding extra type as new field returned in the output is - by definition - compatible, you would get the same dag runs even if you filter them by type, but you will be able to specify another filter "kind of manual type" and with this new filter you could do the same as with new "dag run type" essentially. I think that is a way better approach. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
