We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e7f3a9 commit e28a3e3Copy full SHA for e28a3e3
api/src/shared/common/gcp_utils.py
@@ -83,7 +83,11 @@ def create_http_task_with_name(
83
logging.info("Queue parent path: %s", parent)
84
85
task = tasks_v2.Task(
86
- name=f"{parent}/tasks/{task_name}",
+ # If task_name is provided, it will be used; otherwise, a unique name will be generated.
87
+ # The task_name should be unique to avoid conflicts.
88
+ # If task_name is None, the Cloud Tasks service will generate a unique name.
89
+ # This is useful for deduplication purposes.
90
+ name=f"{parent}/tasks/{task_name}" if task_name else None,
91
schedule_time=task_time,
92
http_request=tasks_v2.HttpRequest(
93
url=url,
0 commit comments