contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.76k stars 230 forks source link

Tracking API - State unknown, but all other values present #293

Closed scottrobertson closed 4 years ago

scottrobertson commented 4 years ago
{"jid"=>"78400e2720b61d75741996bf", "percent"=>100, "desc"=>"[#44] Processing (100%) (1/1)", "state"=>"unknown", "updated_at"=>"2020-03-27T18:20:35.375362851Z"}

Any idea how this can happen?

mperham commented 4 years ago

https://github.com/contribsys/faktory/wiki/Ent-Tracking#the-dreaded-unknown-job-state

Any of these true? Did you mark the job with track:1?

On Mar 27, 2020, at 11:30, Scott Robertson notifications@github.com wrote:

 {"jid"=>"78400e2720b61d75741996bf", "percent"=>100, "desc"=>"[#44] Processing (100%) (1/1)", "state"=>"unknown", "updated_at"=>"2020-03-27T18:20:35.375362851Z"} Any idea how this can happen?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

scottrobertson commented 4 years ago

If it wasn't, wouldn't the rest of the values be missing?

mperham commented 4 years ago

You can still call track_progress and faktory will save the values. It just won’t track the state of the job internally.

On Mar 27, 2020, at 12:07, Scott Robertson notifications@github.com wrote:

 If it wasn't, wouldn't the rest of the values be missing?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

scottrobertson commented 4 years ago

Ah ok.

I don't really need that state anyway, so I'll just ignore this. Track is set in the code, but I don't really have time to debug.

On Fri, 27 Mar 2020, 19:12 Mike Perham, notifications@github.com wrote:

You can still call track_progress and faktory will save the values. It just won’t track the state of the job internally.

On Mar 27, 2020, at 12:07, Scott Robertson notifications@github.com wrote:

 If it wasn't, wouldn't the rest of the values be missing?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/contribsys/faktory/issues/293#issuecomment-605221918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQWCMJGYETLNOGAYXUJ4LRJT3ATANCNFSM4LVGSOLQ .