You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of our imports temporarily store a file while running. The #clear_tmp_files method in app/jobs/application_job is designed to clear out these tmp files before and after the integrations run. If there's an error while an integration is running, there's the chance the temporarily stored file is still open. So when we go to delete the file we get this error:
Device or resource busy @ apply2files
We should make sure the file to be deleted is closed before deleting with something like this:
f.close unless f.nil? or f.closed?
There may be instances other than #clear_tmp_files where temporary files are deleted. We should do the same there.
The text was updated successfully, but these errors were encountered:
Some of our imports temporarily store a file while running. The
#clear_tmp_files
method inapp/jobs/application_job
is designed to clear out these tmp files before and after the integrations run. If there's an error while an integration is running, there's the chance the temporarily stored file is still open. So when we go to delete the file we get this error:We should make sure the file to be deleted is closed before deleting with something like this:
There may be instances other than
#clear_tmp_files
where temporary files are deleted. We should do the same there.The text was updated successfully, but these errors were encountered: