ephraimbuddy opened a new pull request, #66948:
URL: https://github.com/apache/airflow/pull/66948

   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.
   


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