Im trying to get a resque job stopped certain condition,
but without the job getting an failed status in the resque web interface.
Tried exit() and return which both throw an failed status for the job.
How to gracefully stop code execution in a resque job?
To stop execution without reporting a failed status:
raise Resque::Job::DontPerformin a before_perform hook.
This isn’t well documented, but you can find a reference in the code.
Update: Resque hooks documentation