private static void update(MSubmission submission) {
double progress = -1;
Counters counters = null;
String externalId = submission.getExternalId();
SubmissionStatus newStatus = submissionEngine.status(externalId);
String externalLink = submissionEngine.externalLink(externalId);
if(newStatus.isRunning()) {
progress = submissionEngine.progress(externalId);
} else {
counters = submissionEngine.stats(externalId);
}