Closed danfruehauf closed 9 years ago
I'd say something along the lines of TIMEOUT_EXPIRED= Maximum processing time limit exceeded, TOO_MANY_FILES = Maximum file limit exceeded
Did you want a suggestion for none as well? What is the context of a "none" job reason?
@kereid I think that's good. NONE is... when there are no problems :)
The 2 others are for when the actual aggregation fails in an unexpected manner. UNKNOWN, well :)
Oh right :) for unknown would it be worth having UNKNOWN = Unexpected error; please report to info@emii.org.au
@kereid No worries. I'll fix that too.
I'll review
@joness Ready again.
Fixes https://github.com/aodn/aodn-portal/issues/1728 by providing a reason to the user as to why the aggregation failed.
The crux was to find out when a timeout occurred I think. Since
waitForOrKill
could not tell if a timeout occurred or it's just another failure. So now it's measuring the time it took for the job to run. If it actually exceeded the expectation it shows a timeout error.gogoduck.sh now also returns a value of 3 when the file limit is reached. We can display that to the user in the nice error log, rather than let him figure it out from the report.
I hope that's the last GGD tweak we do before we rewrite in Java.