Skip to content

Conversation

@ahal
Copy link
Collaborator

@ahal ahal commented May 9, 2025

No description provided.

@ahal ahal self-assigned this May 9, 2025
@ahal ahal force-pushed the ahal/push-pwrnwnyzlvwq branch from 888d92b to a821cc1 Compare May 9, 2025 20:37
@ahal ahal force-pushed the ahal/push-pwrnwnyzlvwq branch from a821cc1 to e02c251 Compare May 14, 2025 20:45
@ahal ahal marked this pull request as ready for review May 14, 2025 20:45
@ahal ahal requested a review from a team as a code owner May 14, 2025 20:45
@ahal ahal requested a review from Eijebong May 14, 2025 20:45
Copy link
Contributor

@hneiva hneiva left a comment

Choose a reason for hiding this comment

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

one nit, but LGTM


def load_task(task_id, remove=True):
def load_task(task_id, remove=True, user=None):
user = user or "worker"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just user="worker" in the arguments?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That way the caller can explicitly pass in None and it'll still work. E.g, they can do load_task(..., args.get("user")) or similar.

Just a little habit I picked up

@ahal ahal merged commit 75590be into taskcluster:main May 15, 2025
17 checks passed
@ahal ahal deleted the ahal/push-pwrnwnyzlvwq branch May 15, 2025 13:57
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.

2 participants