Skip to content

Commit

Permalink
make execution id more random
Browse files Browse the repository at this point in the history
  • Loading branch information
goFrendiAsgard committed Nov 6, 2023
1 parent 66fb077 commit bf5e64c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/zrb/task/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ async def _run_and_check_all(
try:
self._start_timer()
if self.get_execution_id() == '':
self.set_execution_id(get_random_name())
self.set_execution_id(
get_random_name(add_random_digit=True, digit_count=5)
)
self.log_info('Set input and env map')
await self._set_keyval(kwargs=kwargs, env_prefix=env_prefix)
self.log_info('Set run kwargs')
Expand Down

0 comments on commit bf5e64c

Please sign in to comment.