effectai/force-frontend

Handle "task already completed" error

jeisses opened this issue · 0 comments

When multiple users are trying to claim a task at the same time, the following error is shown:
image

The app should gracefully handle that and reserve the next task for you, but instead is throwing this error.

This is a natural race condition of claiming the same task. What is the best way to handle this?