API which enables the execution of external scripts #545
Replies: 4 comments
-
Good idea! Would it be possible to use a standard Sense external reload task (available from 2021 May and later, I believe) with Butler's REST API for starting tasks? That way you could define the call to Python or similar via the external task, then call that task from the load script using Butler's API. Should work..? |
Beta Was this translation helpful? Give feedback.
-
Hi, It's a good idea for workaroud. I will try it. Thanks! |
Beta Was this translation helpful? Give feedback.
-
True, but that scenario is also handled by Butler, at least to a fashion.
Butler has a built-in (optional) key-value store.
It's intended for passing parameters between reload tasks, but can just as
well be used to pass parameters between a reload script and some external
process, as long as that external process can do a REST call to pull out
the parameters that the load script pushed into the key-value store.
Example here:
https://butler.ptarmiganlabs.com/docs/examples/reload-chaining/
…On Fri, 19 Aug 2022 at 11:24, Rumen Vasilev ***@***.***> wrote:
It would be great if I could pass also a parameter by calling the external
program task using the Butler's REST API for starting tasks.
—
Reply to this email directly, view it on GitHub
<#545 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH3JDW3Z4TOCSDSPJSKEX3VZ5HFFANCNFSM565L7CAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Closing due to inactivity. |
Beta Was this translation helpful? Give feedback.
-
Hello Göran,
It would be grateful if there is an API (similar to the APIs for file system operations delete, move, copy) which enables the load script to execute an external script file (e.g. python script) in standard mode.
BR,
Rumen
Beta Was this translation helpful? Give feedback.
All reactions