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

Getting some errors with Rushti 1.4 #81

Open
atifxhameed opened this issue Aug 8, 2024 · 2 comments
Open

Getting some errors with Rushti 1.4 #81

atifxhameed opened this issue Aug 8, 2024 · 2 comments

Comments

@atifxhameed
Copy link

Hi, I am getting the following errors with RushTi 1.4. Same with 1.3. With 1.2 the process runs but not multithreaded. Am i doing some wrong. Please advise. Thank you

E:\rushti>python RushTI.py Tasks.txt 4
Traceback (most recent call last):
File "E:\rushti\RushTI.py", line 829, in
tm1_service_by_instance = setup_tm1_services(maximum_workers, tasks_file_path, execution_mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\rushti\RushTI.py", line 92, in setup_tm1_services
tm1_instances_in_tasks = get_instances_from_tasks_file(execution_mode, max_workers, tasks_file_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\rushti\RushTI.py", line 145, in get_instances_from_tasks_file
tasks = get_ordered_tasks_and_waits(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\rushti\RushTI.py", line 466, in get_ordered_tasks_and_waits
return extract_ordered_tasks_and_waits_from_file_type_norm(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\rushti\RushTI.py", line 271, in extract_ordered_tasks_and_waits_from_file_type_norm
original_tasks = [extract_task_or_wait_from_line(line) for line in file.readlines() if not line.startswith('#')]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\rushti\RushTI.py", line 189, in extract_task_or_wait_from_line
instance_name=line_arguments.pop("instance"),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'instance'

@MariusWirtz
Copy link
Collaborator

Your line in the tasks file misses the instance argument

@atifxhameed
Copy link
Author

Thanks for the help Marius. I was able to fix the instance issue. Now the process runs but it does not use multiple threads. It just runs as a normal process with one thread. Is this due to a Tm1 setting ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants