Running a Typescript script from within another Typescript script; runs forever, never returns #5854
Replies: 4 comments
-
So the obvious option to run other local scripts is as easy as in typescript itself. Doh! As noted in https://www.windmill.dev/docs/advanced/sharing_common_logic
Still does not really explain why the API call runs forever, never returns and does not generate an error of sort. |
Beta Was this translation helpful? Give feedback.
-
how many workers do you have? If just one then that's why, you can only execute one job at a time so the script calling the other is preventing the other to start for lack of worker. |
Beta Was this translation helpful? Give feedback.
-
Interesting idea ;-) Thanks, @rubenfiszel for the advice. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that calling scripts works well when having an available worker, ie you need a minimum of 2 :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two TS scripts.
One is a keystore script that has been extensively tested and runs will when run with test data.
It saves, retrieves or deletes keys. Just for background info.
I have written the following test script to see how and if I can call the keystore script from within my test script. I obviously can, but it never returns and runs forever and ever.
Test script:
Result:
Has anybody any idea of what is happening here? Obviously the script has started, because I have an ID. If there was an issue with the passed parameters, surely the thing should error out? But it does not.
I have checked the mysqlRes object, it is retrieved and is correct.
Dunno what to do from here.
Beta Was this translation helpful? Give feedback.
All reactions