Greetings,
This used to work for me, but I've had a heck of a time with it recently. I am trying to kick off a batch job through the salt api, but it doesn't seem to be batching.
Here's the json I'm working with:
[{"arg": ["sleep 4; echo testing"],"batch":"1","client":"local_batch","expr_form":"glob","fun":"cmd.run","tgt":"*"}]
and here's the post:
It looks like that command comes back for two hosts in ~5 seconds. Since it should be running with a batch size of 1, and each host should sleep for 4 seconds, it doesn't appear to be working.
I can run salt '*' -b 1 cmd.run 'sleep 4; echo done' which takes about 9 seconds, so I know it is capable of working. Additionally, I seem to be able to post that json to localhost:8000/ (without the minions endpoint) and it comes back in just over 8 seconds. That's expected, but I would also think that /minions should queue up the job and return a jid.
Might this be a bug, or am I doing something wacky?
Thanks all!