cryo28 / sidekiq_status

Extension to Sidekiq to pass job execution metadata such as status and result back to the client
MIT License
152 stars 53 forks source link

must jobs be saved to db for status check? #28

Closed StephenOTT closed 10 years ago

StephenOTT commented 10 years ago

a few seconds after scheduling a job i run: status_container = SidekiqStatus::Container.load(jid)

But i get SidekiqStatus::Container::StatusNotFound:

Once the job completes the exact same command works.

Thoughts?

StephenOTT commented 10 years ago

Just ran a little test and BGsave does not help.

So when a job is scheduled is seems to not appear to the status container.

This expected? The readme docs seem to say other wise. Indicating that a status of "waiting" should be returned.

cryo28 commented 10 years ago

When a job is scheduled the expected behavior is "waiting" status returned immediately. Not sure what may cause the problem in your code.

StephenOTT commented 10 years ago

Thanks