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

Documenting the cluster policy feature #1046

Merged
merged 1 commit into from
Feb 21, 2016
Merged

Documenting the cluster policy feature #1046

merged 1 commit into from
Feb 21, 2016

Conversation

mistercrunch
Copy link
Member

This feature has been around for months but was never documented.

mistercrunch added a commit that referenced this pull request Feb 21, 2016
Documenting the cluster policy feature
@mistercrunch mistercrunch merged commit 5d3cb5f into master Feb 21, 2016
@mistercrunch mistercrunch deleted the policy branch February 21, 2016 15:55
@r39132
Copy link
Contributor

r39132 commented Feb 23, 2016

Hmn.. When does this policy get applied? Is a restart required across the cluster or is it automatically applied with the config file is reloaded? How does it get applied in a distributed deployment?

@aoen
Copy link
Contributor

aoen commented Feb 24, 2016

Policy gets applied on the scheduler when the dagbag is loaded, it is automatically picked up when the config file is modified. If by distributed deployment you mean not using local executors then it should still be run when the dagbag is loaded.

Not sure if those were questions or things you wanted to add to the PR comments, but they should be added either way.

@mistercrunch
Copy link
Member Author

Yes, since this policy policy is meant to mutate tasks, it actually applies when the airflow run subprocess gets executed by the executor, meaning that all tasks that start after the settings file is changed should be impacted.

For the changes to be visible on the web server (most likely on the Task Details page), you'll need to refresh the DAG (rightmost button on the icon list in the DAGs view).

@mistercrunch
Copy link
Member Author

If you were to mutate something that affect the scheduler (the queue for instance), by default it fully refreshes the DagBag every 10 runs, though refreshing from the UI should do it here and affect the very next scheduling cycle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants