Skip to content
Snippets Groups Projects
Commit 1379bbdf authored by Eesaan Atluri's avatar Eesaan Atluri
Browse files

Parameterize the delay used to avoid dir_verify config issue

parent 1f080f3a
No related branches found
No related tags found
4 merge requests!147Merge previous default branch feat-cod-rmq into main,!85kill nginx process running under user from login node,!78Feat cod rmq,!60Use a single merged config file for all agents
...@@ -8,6 +8,7 @@ import argparse ...@@ -8,6 +8,7 @@ import argparse
import rc_util import rc_util
from os import popen from os import popen
from rc_rmq import RCRMQ from rc_rmq import RCRMQ
import rabbit_config as rcfg
task = 'create_account' task = 'create_account'
...@@ -37,7 +38,7 @@ def create_account(msg): ...@@ -37,7 +38,7 @@ def create_account(msg):
if not args.dry_run: if not args.dry_run:
popen(cmd) popen(cmd)
time.sleep(1) time.sleep(rcfg.Delay)
logger.info(f'Bright command to create user:{cmd}') logger.info(f'Bright command to create user:{cmd}')
except Exception: except Exception:
logger.exception("Fatal cmsh error:") logger.exception("Fatal cmsh error:")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment