Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing load-script related to process_id and thread_id #1051

Merged
merged 3 commits into from
Apr 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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