Skip to content
Merged
Changes from all commits
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
4 changes: 3 additions & 1 deletion api/src/shared/common/gcp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def create_http_task_with_name(
logging.info("Queue parent path: %s", parent)

task = tasks_v2.Task(
name=f"{parent}/tasks/{task_name}",
# If task_name is provided, it will be used; otherwise, a unique name will be generated.
# This is useful for deduplication purposes.
name=f"{parent}/tasks/{task_name}" if task_name else None,
schedule_time=task_time,
http_request=tasks_v2.HttpRequest(
url=url,
Expand Down
Loading