occam-ra / occam

OCCAM Reconstructability Analysis Tools
Other
20 stars 14 forks source link

Fix long notification time for background job #7

Open gdcutting opened 5 years ago

gdcutting commented 5 years ago

Marty said that it "takes too long for the browser to tell the user that a background job has been submitted." Look into that and fix.

gdcutting commented 5 years ago

OCCAM is on a shared server so sometimes occam mail script might just have to wait on other jobs. occambatch.py uses nice to set relatively low process priority of 10 (on scale of -20 to 19 where -20 is the HIGHEST) when calling occammail.py. Can try just raising process priority (maybe to 0). Any reason not to do this (easy to do but wasn't sure if I should change this on the working OCCAM yet. Shouldn't cause any problems but want to tread lightly on the CAT server).