How to deactivate an active job