jobqueue: return if a job was requeued or not
This commit is contained in:
parent
64f479092d
commit
056b3c5ea6
5 changed files with 60 additions and 47 deletions
|
|
@ -55,8 +55,9 @@ func testDeleteJob(t *testing.T, d db, q *dbjobqueue.DBJobQueue) {
|
|||
|
||||
res, err := json.Marshal(result)
|
||||
require.NoError(t, err)
|
||||
err = q.RequeueOrFinishJob(id, 0, res)
|
||||
requeued, err := q.RequeueOrFinishJob(id, 0, res)
|
||||
require.NoError(t, err)
|
||||
require.False(t, requeued)
|
||||
|
||||
_, _, r, _, _, _, _, _, _, err := q.JobStatus(id)
|
||||
require.NoError(t, err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue