Reputation: 592
I have an azure wep app, with a couple of web jobs running inside it. I noticed one of these webjobs was running old code. It is also impossible to remove it, it keeps running no matter what I do.
I have tried: * Redeploying the code. * Stopping the webjob * Stopping the web app * Deleting the web job.
Even after deletion, the webjob is still running, and consuming from its queue.
There is no web app anywhere that is running a webjob with that old code anymore.
I have a suspicion that the webjob is running inside a deployment slot, but all deployment slots were deleted, so I do not know how to confirm this.
On the kudu dashboard, the webjob is not present in the process explorer.
How do I get rid of this rogue webjob?
Upvotes: 2
Views: 1102
Reputation: 27793
You could try to get specific job by name and check job runs history via WebJobs API, which could help you check whether job is indeed deleted/stopped. If the WebJob is deleted from current website, please make sure whether any other WebJob running on your other websites are consuming the queue. In addition please make sure whether Azure Functions are being used. Of cause, the tasks outside of Azure could consuming queue is also possible. If you worry someone is performing your storage maliciously, as you said, you could try to regenerate your storage account keys, but you may need to re-sync the access keys with your applications/services that are dependent on the storage account.
Upvotes: 0