This repository has been archived by the owner on Sep 18, 2023. It is now read-only.
Task count should be updated as soon as task items are loaded. #170
Labels
bug
Something isn't working
Describe the bug
If
TaskProvider::complete
fails, theTask
record is never updated with the count of items.TaskProviders
share a lifecycle defined by the trait, with one main section of variable logic.TaskProvider
trait provides default logic for inserting aTask
record when aTask
starts, and for updating it with summary statistics and error logging when aTask
ends.count
field never gets updated.Task
should get updated with acount
as soon as that information is available.To Reproduce
Run any task locally and stop it before it completes.
Expected behavior
The
Task
document'scount
field should be updated in each task, as soon as the primary batch query successfully retrieves the set of items to process.The text was updated successfully, but these errors were encountered: