We're updating the issue view to help you get more done. 

Downloads sometimes fail due to multiple processes working in the same directory

Description

In the download model, we define the tmp directory we use when generating a work's downloads.

This directory name should be changed to contain the file type and the current time, i.e. "/tmp/{work.id}#{file_type}#{current_time}" instead of "/tmp/#{work.id}", so download generation doesn't fail if multiple processes are attempting to generate the same download at the same time.

To test, make sure downloads still work.

Environment

None

Status

Assignee

redsummernight

Reporter

Sarken

Roadmap

Export

Priority

High

Affects versions

0.9.237

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

None

Milestone

Internal 0.9