Skip to content

Commit e77880d

Browse files
authored
Merge pull request #12083 from dahorak/make-sure-run-id-is-unique-by-adding-random-number
Make sure run_id is unique by using miliseconds instead of only seconds
2 parents 4753482 + ba0f27e commit e77880d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocs_ci/utility/framework/fusion_fdf_init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def generate_run_id() -> int:
201201
202202
"""
203203
logger.debug("Generating run_id from timestamp")
204-
run_id = int(time.time())
204+
run_id = int(time.time() * 1000)
205205
config.RUN["run_id"] = run_id
206206
return run_id
207207

ocs_ci/utility/framework/initialization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def process_ocsci_conf(arguments):
209209
if args.flexy_env_file:
210210
framework.config.ENV_DATA["flexy_env_file"] = args.flexy_env_file
211211

212-
framework.config.RUN["run_id"] = int(time.time())
212+
framework.config.RUN["run_id"] = int(time.time() * 1000)
213213
bin_dir = framework.config.RUN.get("bin_dir")
214214
if bin_dir:
215215
framework.config.RUN["bin_dir"] = os.path.abspath(

0 commit comments

Comments
 (0)