Skip to content

Don't operate directly on pending tasks during statusUpdate#1726

Merged
ssalinas merged 1 commit into
masterfrom
status_update_pending_tasks
Feb 20, 2018
Merged

Don't operate directly on pending tasks during statusUpdate#1726
ssalinas merged 1 commit into
masterfrom
status_update_pending_tasks

Conversation

@ssalinas

Copy link
Copy Markdown
Contributor

This was causing a race condition with the new locking setup where a pending task could be selected for offer scheduling, then deleted by statusUpdate while it was still being processed for offers. This PR updates the code to:

  • Save the pending request to the queue instead of directly calling scheduleTasks
  • Update tests that check pending tasks to call scheduler.drainPendingQueue() after calling statusUpdate

/cc @baconmania

@baconmania

Copy link
Copy Markdown
Contributor

🚢

@ssalinas ssalinas merged commit c58abe8 into master Feb 20, 2018
@ssalinas ssalinas deleted the status_update_pending_tasks branch February 20, 2018 19:46
@ssalinas ssalinas added this to the 0.19.0 milestone Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants