bugy / script-server

Web UI for your scripts with execution management
Other
1.55k stars 246 forks source link

Pass execution id to a script #599

Open bugy opened 1 year ago

bugy commented 1 year ago

Reported by @matiasrivera:

Is it somehow possible to get the running ID from the inside the running script? [...] I would love to know if it is possible to receive the running ID or read it from somewhere. I have a need to somehow allow my users to identify their runs from some of the parameters they choose or the script generated. [...] I have all these simultaneous runs of the same script from which I'd love to know some of the parameters I used to execute them from the history pane. Is it possible to expose some kind of information?

bugy commented 1 year ago

I added it via environment variable, EXECUTION_ID. Unfortunately passing it as a parameter is more complicated