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

bug: Unable to use Python Client to run Script synchronously #3631

Open
jthree2001 opened this issue Apr 29, 2024 · 1 comment
Open

bug: Unable to use Python Client to run Script synchronously #3631

jthree2001 opened this issue Apr 29, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jthree2001
Copy link

Describe the bug

When calling python client wmill.run_script, the client library errors out with `File "/tmp/windmill/cache/pip/wmill==1.320.3/wmill/client.py", line 593, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^

File "/tmp/windmill/cache/pip/wmill==1.320.3/wmill/client.py", line 914, in run_script
return _client.run_script(
^^^^^^^^^^^^^^^^^^^

File "/tmp/windmill/cache/pip/wmill==1.320.3/wmill/client.py", line 145, in run_script
return self.wait_job(
^^^^^^^^^^^^^^

File "/tmp/windmill/cache/pip/wmill==1.320.3/wmill/client.py", line 177, in wait_job
success = result_res["success"]`

To reproduce

Create 2 default simple scripts.

Trigger one from the other using using the run_script client library example:wmill.run_script(path="u/michael/impeccable_script", args={})

Expected behavior

The Script called by the run_script code should trigger the job, run, complete, and return values.

Screenshots

image

Browser information

No response

Application version

No response

Additional Context

No response

@jthree2001 jthree2001 added the bug Something isn't working label Apr 29, 2024
@rubenfiszel
Copy link
Contributor

@jthree2001 I'm unable to reproduce and I think it's not a bug and likely an issue with your setup, but the error is very non helpful and that is fixed in: 0e022c9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants