I've hosted a NodeJS webjob on a webapp that has 5 running instances. I'm triggering the webjob using the Kudu API
https://xyz.scm.azurewebsites.net/api/triggeredwebjobs/webjobname/run
The first request is accepted and webjob starts running but any subsequent request is giving error because the job is in running state.
HTTP 409 Cannot start a new run since job is already running.
I expect that I should be able trigger using the REST endpoint 5 times and another instance of webapp hosting the "free" job should pick it up. Is that not possible? Can you only trigger a single webjob despite of number of webapp instances you're running?
Increased scaling of App service plan to 5 instances and tried triggering the 'triggered webjob' with KUDU API Expectations : Should be able to submit 5 requests since the 'free instance' will handle the request Actual : First request is submitted with HTTP 202, any other request fails with 409 until the first webjob finishes running.