furious icon indicating copy to clipboard operation
furious copied to clipboard

_insert_tasks should condition re-insertion based on `Task.was_enqueued`...

Open jasonaguilon-wf opened this issue 11 years ago • 0 comments

...instead of trying to re-insert all tasks.

From Queue.add's docstring:

    If a list of more than one Tasks is given, a raised exception does not
    guarantee that no tasks were added to the queue (unless transactional is set
    to True). To determine which tasks were successfully added when an exception
    is raised, check the Task.was_enqueued property.

jasonaguilon-wf avatar Sep 30 '14 14:09 jasonaguilon-wf