Add implementation for workflow and job cancelling.