fj-sanchez commented on issue #9975: URL: https://github.com/apache/airflow/issues/9975#issuecomment-857822528
> > I've also tried creating the run with state SCHEDULED, but it's never run by the scheduler. (perhaps I'm doing it the wrong way - I'm still investigating that) > > Right now the only states for Dag Runs are None, "running", or "failed" -- that's why the scheduler is never picking up that dag run. It looks like the column in the DB actually is just a string and the model uses the generic `State` model which is also used for tasks instances (https://github.com/apache/airflow/blob/main/airflow/models/dagrun.py#L82), so I guess it's more about updating the logic used to determine the dag run state (https://github.com/apache/airflow/blob/main/airflow/models/dagrun.py#L473). Obviously, there might be other parts of the code that assume only these 3 states as valid, but it doesn't seem explicit in the model. -- 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. For queries about this service, please contact Infrastructure at: [email protected]
