There is this
A string specifying the total duration a test run should be run for
During this time each VU will execute the script in a loop
Except as you can see it runs in a loop, which is not ideal for me.
I want my script to only run once, store the metrics and start again later (via cronjob or other means)
There is another option called
A number specifying a fixed number of iterations to execute of the script, as opposed to specifying a duration of time during which the script would run in a loop.
But it looks like this would overwrite the duration option.
Is there any option that makes sure my script stops after X seconds, even if it is not yet finished (and ideally makes the test fail) ?