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

Exclude start stage tasks from existing tasks #713

Open
wants to merge 2 commits into
base: release
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion taskcluster/translations_taskgraph/actions/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,13 @@ def train_action(parameters, graph_config, input, task_group_id, task_id):
# as `existing_tasks`. These map task labels (eg: train-backwards-ru-en) to
# task ids, and will be used instead of scheduling new tasks for any tasks with
# an identical name.
parameters["existing_tasks"] = get_ancestors(start_task_ids)
# Make sure not to include the tasks with the start_stage in existing_tasks
existing_tasks = {
label: task_id
for label, task_id in get_ancestors(start_task_ids).items()
if task_id not in start_task_ids
}
parameters["existing_tasks"] = existing_tasks

# Override the `existing_tasks` explicitly provided in the action's input
existing_tasks = input.pop("existing_tasks", {})
Expand Down