Data4Democracy / internal-displacement

Studying news events and internal displacement.
43 stars 27 forks source link

Atomic status update #106

Closed WanderingStar closed 7 years ago

WanderingStar commented 7 years ago

Only update the status of an article if you're correct about the status that you're updating it from. This means that if we have a process waiting for new articles to process (a queue worker), it won't accidentally grab an article that something else is already processing.