Closed jordanmurray35 closed 2 years ago
Hello!
By default, the
key
(or future_key) is the SHA1 sum of thecommand + args
POSTed to the API. This is done as a rate limiting measure so as to prevent multiple jobs with same parameters, if one such job is already running. Ifforce_unique_key
is set to true, the API will bypass this default behaviour and a psuedorandom key will be returned instead.
-- docs
Simply put: add "force_unique_key:" true
to your JSON request body.
Hello, I'm using flask-shell2http for communication and launching commands across docker containers. I'm trying to run a very simple script on one container from another container just to get the capability working. When I first ran the command from one container, I didn't have my permissions set on the script that was located on the other container but a key was still given to that command. Once I fixed the permissions on the script and tried to run the command again, it tried to give the same key value and I get an error in return saying
future_key already exists
How can I fix this? Thank you and I am finding this application extremely useful.