Skip to content

Commit

Permalink
remove dynamic key from non-flow task run name (#13902)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekaplan committed Jun 10, 2024
1 parent 3861ea7 commit 8c7fc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prefect/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ async def create_run(
async with client:
if not flow_run_context:
dynamic_key = f"{self.task_key}-{str(uuid4().hex)}"
task_run_name = f"{self.name}-{dynamic_key[:NUM_CHARS_DYNAMIC_KEY]}"
task_run_name = self.name
else:
dynamic_key = _dynamic_key_for_task_run(
context=flow_run_context, task=self
Expand Down

0 comments on commit 8c7fc24

Please sign in to comment.