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

DM-41978: Switch logic used to exclude tasks #25

Merged
merged 2 commits into from Dec 20, 2023
Merged

Conversation

leeskelvin
Copy link
Collaborator

No description provided.

not_excluded_tasks.add(task_label)
if len(not_excluded_tasks) > 0:
grammar = "Task" if len(not_excluded_tasks) == 1 else "Tasks"
all_tasks = {taskDef.label for taskDef in pipeline.toExpandedPipeline()}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Does this need to be toExpandedPipeline? (A question for @natelust)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For context: here we're just looping over all tasks in the pipeline to get a set of task names. No actual task/config manipulation is performed in this block.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's never quite clear for me when I need to expand my pipeline, and when I can get away with using the base pipeline object. I.e., I want to be sure that I'm including all the tasks from imported pipeline YAMLs as well.

Copy link
Contributor

@jtmccann jtmccann left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@leeskelvin leeskelvin merged commit 6eba1e9 into main Dec 20, 2023
7 checks passed
@leeskelvin leeskelvin deleted the tickets/DM-41978 branch December 20, 2023 01:56
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.

None yet

2 participants