jobqueue: Introduce jobqueue backed by a postgres database
Co-authored-by: sanne <sanne.raymaekers@gmail.com>
This commit is contained in:
parent
871c6e9cbb
commit
9c2c92f729
419 changed files with 98376 additions and 956 deletions
|
|
@ -265,7 +265,6 @@ func (q *fsJobQueue) FinishJob(id uuid.UUID, result interface{}) error {
|
|||
|
||||
delete(q.heartbeats, j.Token)
|
||||
delete(q.jobIdByToken, j.Token)
|
||||
j.Token = uuid.Nil
|
||||
|
||||
// Write before notifying dependants, because it will be read again.
|
||||
err = q.db.Write(id.String(), j)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue