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

dag pausing should pause queued tasks as well #1065

Merged
merged 2 commits into from
Feb 24, 2016
Merged

Conversation

mistercrunch
Copy link
Member

No description provided.

@@ -570,8 +570,8 @@ def prioritize_queued(self, session, executor, dagbag):
self.logger.info("Pickling DAG {}".format(dag))
pickle_id = dag.pickle(session).id

if dag.dag_id in overloaded_dags or dag.concurrency_reached:
overloaded_dags.add(dag.dag_id)
if dag.dag_id in dag_blacklist or dag.concurrency_reached:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need the first part of the if since they are already in the blacklist

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's for the or concurrency_reached, I can break it down as an elif, though dag_blacklist is a set so it won't grow anyways

@aoen
Copy link
Contributor

aoen commented Feb 23, 2016

LGTM

@mistercrunch
Copy link
Member Author

The previous setup would allow to queue to empty out even when the DAG was paused. No new tasks would get queued, but the ones in the queue were allowed to drain...

mistercrunch added a commit that referenced this pull request Feb 24, 2016
dag pausing should pause queued tasks as well
@mistercrunch mistercrunch merged commit 0d081fc into master Feb 24, 2016
@mistercrunch mistercrunch deleted the pause_queue branch February 24, 2016 01:44
mobuchowski pushed a commit to mobuchowski/airflow that referenced this pull request Jan 4, 2022
…sources (apache#1065)

* Refactor spark plan traversal to find input/output datasets from Datasources, including added BigQuery and JDBC relations

Signed-off-by: Michael Collado <mike@datakin.com>

* Add support for URIs in namespaces (add : and / as valid characters)

Signed-off-by: Michael Collado <mike@datakin.com>

* Refactored open lineage URIs to reference constant values

Signed-off-by: Michael Collado <mike@datakin.com>
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