[Backgroundrb-devel] querying status of worker with job_key
hemant kumar
gethemant at gmail.com
Tue Dec 18 12:20:11 EST 2007
On Tue, 2007-12-18 at 12:10 -0500, Reynard wrote:
>
> You should use register_status() from your worker - this works
> for
> me (using job_key as you describe). Of course, code is not yet
> well
> tested, but at least the status part is working fine :)
>
> I did register the status from the worker just like this
>
> register_status('success')
>
> do you have to pass the job key again when registering the status?
>
> and how do you ask_status for that job_key? is this the right way?
>
> MiddleMan.ask_status(:worker => :auth_worker, :job_key=>'1')
>
> anyway, everytime I call ask_status with job_key it returns nil, If I
> don't pass the job_key it returns something (which is the default
> process I think)
Sync with upto the minute latest code of backgroundrb. paste your worker
code. What you are doing, seem to be correct. I would like to see, what
can go wrong.
--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.
http://gnufied.org
More information about the Backgroundrb-devel
mailing list