Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Oct 23, 2024
1 parent 6b1d291 commit 4339df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/prefect/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,9 @@ async def create_run(
dynamic_key = (
_dynamic_key_for_task_run(context=flow_run_context, task=self)
if flow_run_context
else str(uuid4().hex)
else f"{self.task_key}-{str(uuid4().hex)}"
)
task_run_name += f"-{str(dynamic_key)[:3]}"
task_run_name += f"-{dynamic_key}"

if deferred:
state = Scheduled()
Expand Down

0 comments on commit 4339df9

Please sign in to comment.