Skip to content

Commit

Permalink
Fixing load-script related to process_id and thread_id (#1051)
Browse files Browse the repository at this point in the history
* Fixing load-script related to process_id and thread_id

* Changing the sleep time default value to 0

* Changing sleep value to 5 seconds
  • Loading branch information
raj-prince authored Apr 10, 2023
1 parent 26bc07f commit a224b67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _thread_task(task, process_id, thread_id, num_executions_per_thread,
while cnt < num_executions_per_thread:
for curr_task, curr_queue in zip(tasks, queues):
start_time = time.time()
result = curr_task(thread_id, process_id)
result = curr_task(process_id, thread_id)
end_time = time.time()
curr_queue.put(
TaskExecutionResult(
Expand Down
4 changes: 2 additions & 2 deletions perfmetrics/scripts/load_tests/python/load_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def parse_args():
parser.add_argument(
'--start-delay',
type=int,
default=10,
default=5,
help='Time in seconds to wait before conducting load test on a task.')
parser.add_argument(
'--debug',
Expand Down Expand Up @@ -332,7 +332,7 @@ def main():
logging.info('Starting load generation...')
load_test_results = []
for task_obj in filtered_task_objs:
logging.info('\nSleeping for: %s', args.start_delay)
logging.info('\nSleeping for: %s seconds', args.start_delay)
time.sleep(args.start_delay)

logging.info('\nRunning pre load test task for: %s', task_obj.task_name)
Expand Down

0 comments on commit a224b67

Please sign in to comment.