Skip to content
Discussion options

You must be logged in to vote

A delayed heartbeat isn't a perfect mechanism, but yes, you can decide a threshold you think is reasonable to indicate that a job is now stale and won't ever complete.

Just bear in mind that there's no implicit guarantee that a job won't complete between this query and whatever you do next. Put differently, it's up to you to ensure that property.

This is where distributed systems start to become hard, "here be dragons" etc.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@victoronascimento
Comment options

@maxcountryman
Comment options

Answer selected by victoronascimento
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants