Skip to content

Commit

Permalink
Do not apply skip-unless-changed for cron triggers.
Browse files Browse the repository at this point in the history
  • Loading branch information
afranchuk committed Nov 1, 2024
1 parent a37236a commit 3a259b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taskgraph/optimize/strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def check(self, files_changed, patterns):
return False

def should_remove_task(self, task, params, file_patterns):
# pushlog_id == -1 - this is the case when run from a cron.yml job or on a git repository
if params.get("repository_type") == "hg" and params.get("pushlog_id") == -1:
# skip-unless-changed should not apply to cron tasks (there will never be file changes)
if params.get("tasks_for") == "cron":
return False

changed = self.check(params["files_changed"], file_patterns)
Expand Down

0 comments on commit 3a259b8

Please sign in to comment.