open-reaction-database / ord-schema

Schema for the Open Reaction Database
https://open-reaction-database.org
Apache License 2.0
95 stars 27 forks source link

Solve a race crash in temp-dir creation. #473

Closed antonkast-google closed 4 years ago

antonkast-google commented 4 years ago

I observed a crash in a gunicorn thread where both threads tried to create the TEMP directory and the second one raised FileExistsError.

codecov[bot] commented 4 years ago

Codecov Report

Merging #473 into editor will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           editor     #473   +/-   ##
=======================================
  Coverage   75.72%   75.72%           
=======================================
  Files          22       22           
  Lines        2010     2010           
  Branches      449      449           
=======================================
  Hits         1522     1522           
  Misses        347      347           
  Partials      141      141