You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I needed to run command (binary) in the background which will run during the k6 execution and found that (probably because of exec.Command) it will wait forever if I run it like:
console.log(exec.command("mycmd", ["&"]));
I found one way which is working for me as a workaround:
Does it make sense to include handling of background task functionality into this library?
@robooo Do you have a proposal for the API? I'm not sure how we could expose the output from this background process, or detect its finalization (or force the finalization when the test ends)
@robooo this daemon package is interesting, thanks for sharing. However I'm still unsure about how to integrate running a background process in the exec API:
I'm not sure how we could expose the output from this background process, or detect its finalization (or force the finalization when the test ends)
I needed to run command (binary) in the background which will run during the k6 execution and found that (probably because of
exec.Command
) it will wait forever if I run it like:I found one way which is working for me as a workaround:
but this way I'm loosing all logs or info about the activity.
Does it make sense to include handling of background task functionality into this library?
The text was updated successfully, but these errors were encountered: