Comment 3 for bug 1058069

Revision history for this message
Sammie S. Taunton (diemuzi) wrote :

Sorry for the delay but yes. That's why I was hoping I didn't submit this to the wrong area.

As for a reason for this request. I'd like to be able to do $job->sendFail($string);

Where of course $string would return a custom error message I have defined as to why the job actually failed.

A more literal example would be I sent a command to the queue to create a folder on the server. If that folder already exists, I want to return a failure message stating that the folder currently exists. Instead of simply returning that the job failed and then have to investigate as to why it failed. In this case, I'll know exactly why.

Thanks for looking into this and would really appreciate it if this could be added =)