MCPcopy
hub / github.com/google/clusterfuzz / set_task_id_vars

Function set_task_id_vars

src/clusterfuzz/_internal/system/environment.py:1064–1069  ·  view source on GitHub ↗

Sets environment vars for task name and ID.

(task_name, task_id=None)

Source from the content-addressed store, hash-verified

1062
1063
1064def set_task_id_vars(task_name, task_id=None):
1065 """Sets environment vars for task name and ID."""
1066 if not task_id:
1067 task_id = uuid.uuid4()
1068 set_value('CF_TASK_ID', task_id)
1069 set_value('CF_TASK_NAME', task_name)
1070
1071
1072def set_value(environment_variable, value, env=None):

Callers 2

test_cron_log_contextMethod · 0.90

Calls 1

set_valueFunction · 0.70

Tested by 2

test_cron_log_contextMethod · 0.72