-
Notifications
You must be signed in to change notification settings - Fork 118
Fixing #1126 and#1128 - timeout is an explicit parameter hence kwargs(timeout) does not work, adding request_async_id in execute_process_with_return #1127
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
Conversation
|
@MariusWirtz please review. |
MariusWirtz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Thanks for the fix.
It would be nice to have a test case to verify that
- timeout works on unbound processes (should be easy to test with
sleepti function)
-return_async_idindeed returns the async_id on processes and unbound processes
Currently, we don't have tests on either. That's probably how we missed the bug.
https://github.com/cubewise-code/tm1py/blob/master/Tests/ProcessService_test.py
|
tests added |
MariusWirtz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work. Thank you!
|
@MariusWirtz would you mind releasing this as 2.0.4? :) |
|
Found it! #1130 Perhaps in your env, it wasn't reproducible because I will merge and do a release. |
|
2.0.4 is available on pypi. |
|
Yes I had Thanks for releasing to pypi! Ivan |


1126:
Timeout is a parameter in the request function, therefore the kwargs.get('timeout', self._timeout) would never get the specified value.
Also for consistency adding the timeout parser to default it to the class._timeout value if not provided.
1128:
Adding the return_async_id to the execute_process_with_return so that it has the same functionality and signature as the execute_with_return
linkages for github:
this fixes #1126 and adds #1128 as well.