Use xact advisory lock, and update remove_jobs