Hi,
Could you elaborate? Which Rundeck version are you using? Please share the API call to take a look.
By executing the same job like this example (on Rundeck 4.16):
curl -H "Accept: application/json" -X POST --data-urlencode "argString=-opt1 hello" http://localhost:4440/api/45/job/4e117fcf-33a7-4626-91d0-be767af031b7/run?authtoken=KUiUUSZ87KbbHG4AfAFUb6xhGA5MyeKC | jq curl -H "Accept: application/json" -X POST --data-urlencode "argString=-opt1 world" http://localhost:4440/api/45/job/4e117fcf-33a7-4626-91d0-be767af031b7/run?authtoken=KUiUUSZ87KbbHG4AfAFUb6xhGA5MyeKC | jqYou will obtain the following message:
{ "errorCode": "api.error.execution.conflict", "apiversion": 45, "error": true, "message": "Execution had a conflict: Job \"HelloWorld\" {{Job 4e117fcf-33a7-4626-91d0-be767af031b7}}: Limit of running executions has been reached." }So, the second job needs the first execution to start normally (becuase by default the job doesn’t admit multiple executions).
To avoid this and, if you need multiple executions capability on your job: Edit your job, go to the “other” tab, click “yes” on the “Multiple execitions” section, and save the job.
Regards.
curl -X POST \
-H "Content-Type: application/json" \
-H "X-Rundeck-Auth-Token: qLio5mLk8r4683628223113131133j" \
-d '{
"options": {
"RangeId": "cv8145",
"Json": "{\"key1\": \"value1\", \"key2\": \"value2\"}",
"Region": "eu-central-1"
}
}' \
http://localhost:4440/api/44/job/d83a11d2-d305-477f-83aa-14a429c6f6e4/run
curl -s -X GET "http://localhost:4440/api/41/execution/310/output" --header 'Accept: application/json' --header 'X-Rundeck-Auth-Token: qLio5mLk8r4683628223113131133j'
Hi,
I made a test to dispatch a lot of executions on Rundeck 5.0.1 / 5.8.0. I couldn’t see any rate limit or unauthorized message.
for i in $(seq 1 50); do curl --location --request POST 'http://localhost:4440/api/46/job/cf277608-eeda-4a38-ac36-852e1f99e0cf/run' \ --header 'Accept: application/json' \ --header 'X-Rundeck-Auth-Token: nUSDCHHdihsa9KWQAub8h5Y04vRVAEGW' \ --header 'Content-Type: application/json' --data '' | jq doneRegards!