Cancel Job Execution Using $job.updateStatusMessage() in Serverless App

Hi Team,

Is it possible to stop or cancel a job event execution while the job method is still running?

I’m specifically looking to handle this outside of the job method. I came across the method await $job.updateStatusMessage(), and I wanted to check if it can be used to interrupt or stop the execution of the job midway.

If not, is there any recommended approach to achieve this?