Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload configuration for standalone dag file processor #35725

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Nov 18, 2023

DAG file processor has special configuration that is triggered by CONFIG_PROCESSOR_MANAGER_LOGGER variable.

The variable is set temporarily when DAG file processor is started as scheduler's subprocess and settings are reloaded because the settings are generally loaded during importing of airflow package, so we need to reload the settings with CONFIG_PROCESSOR_MANAGER_LOGGER set. This did not happen when standalone dag file processor started which led to standalone DAG file processor not producing logs in "dag_processor_manager" folder..


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

DAG file processor has special configuration that is triggered
by CONFIG_PROCESSOR_MANAGER_LOGGER variable.

The variable is set temporarily when DAG file processor is started
as scheduler's subprocess and settings are reloaded because the
settings are generally loaded during importing of airflow package,
so we need to reload the settings with CONFIG_PROCESSOR_MANAGER_LOGGER
set. This did not happen when standalone dag file processor started
which led to standalone DAG file processor not producing
logs in "dag_processor_manager" folder..
@boring-cyborg boring-cyborg bot added area:CLI area:Scheduler Scheduler or dag parsing Issues labels Nov 18, 2023
@potiuk potiuk added this to the Airflow 2.7.4 milestone Nov 18, 2023
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Nov 18, 2023
@potiuk potiuk merged commit f9eb55f into apache:main Nov 18, 2023
46 checks passed
@potiuk potiuk deleted the reload-configuration-for-standalone-processor branch November 18, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:CLI area:Scheduler Scheduler or dag parsing Issues type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants