github-actions[bot] opened a new pull request, #66985:
URL: https://github.com/apache/airflow/pull/66985

   * Mark Dags stale when their bundle is removed from config
   
   When a Dag bundle is removed from the bundle config, sync_bundles_to_db
   flipped the bundle's active flag to False but left its Dags with
   is_stale=False. The processor stops parsing files for inactive bundles,
   so the time-based check in deactivate_stale_dags never fired for them.
   
   deactivate_stale_dags now reads the set of active bundles from the
   DagBundleModel table and treats any non-stale Dag whose bundle is not
   active as stale, in addition to the existing last_parsed_time check for
   Dags in active bundles. If the bundle reappears in config later, the
   existing parse path resets is_stale to False per Dag.
   
   * Apply suggestions from code review
   
   Co-authored-by: Wei Lee <[email protected]>
   
   ---------
   (cherry picked from commit 01be07a4571e58c311048246788f76f837b145fb)
   
   Co-authored-by: Ephraim Anierobi <[email protected]>
   Co-authored-by: Wei Lee <[email protected]>


-- 
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]

Reply via email to