This is the first time I’m seeing the rate: Wait(n=1) would exceed context deadline error, please share some more details - which k6 version are you using, what is your OS, what is the full error stacktrace, etc.
Regarding gracefulStop, it’s only a valid option inside of a scenario definition, it’s not valid when it’s in the global options. The latest k6 version v0.32.0 would have printed a warning about that, so I assume you’re on a previous version.
OK so I THOUGHT that Docker would automatically pull the latest K6 image when I ran the Docker command but it actual fact it was still using an 8 month old image.
So I have now removed that and it then pulled the latest K6 image down and the problem is now resolved.