Make the mget task claimer skip the claiming
phase and update the task document directly to running
#184739
Labels
Feature:Task Manager
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
The
claiming
status was added to tasks as a way to allow Kibana to fetch the documents that were updates during an update by query operation, given the operation doesn't return the updated tasks. In the mget strategy, we know which documents get successfully updated, so there is no need to update it again from claiming to running.Here is a prototype I did for mget that bypasses the claiming phase 1c2308c. The
task_runner.ts
would still need to look at the status of the task before determining if it can return early or if it needs to set the task to running. The mget claim strategy should re-use some code instead of re-defininggetRetryDelay
.Definition of Done
running
statusclaiming
tasks in case the previous code running while Kibana shut down was update by queryclaiming
statusThe text was updated successfully, but these errors were encountered: