Bug #1058069 reported by Sammie S. Taunton on 2012-09-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

This is more of a feature request, hopefully I'm not in the wrong spot.

But would it be possible in the future to have $job->sendFail(); be able to send back a string like $job->sendComplete(); does?

Brian Aker (brianaker) wrote :

I would look at exceptions.

Changed in gearmand:
importance: Undecided → Wishlist
Brian Aker (brianaker) wrote :

Was this in the PHP driver?

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 =)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers