Job that runs hourly and in finish(), uses Andrew Fawcett's Custom Metadata Services to update Custom Metadata with some job details.
This works fine in one sandbox and in PROD but for some reason in the QA sandbox, the hourly job has dozens of pending deploys, one per hour, going back months - see screen shot.
I'd like to cancel these deployments but using the UI to cancel 1x1 is sooo painful that there has to be an easier way.
There is a method in the Metadata API (
cancelDeploy(jobId)) that does the trick but I haven't found a tool that will allow me to invoke this (not supported by Workbench, nor ApexWrapper for MD API for example)
The 0Af prefix is apparently a
DeployRequest object - not documented anywhere. Trying to query in Tooling API: