furious
furious copied to clipboard
_insert_tasks should condition re-insertion based on `Task.was_enqueued`...
...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.