dispatchJob();
}
public void submit(String contestId, String userId, Task task, String language, File tmp,
String sourceFileName, JobRemovalNotified notified) {
Job job = new Job();
job.setContestId(contestId);
job.setUserid(userId);
if (task.isFeedbackEnabled()) {
job.setType(JobType.FEEDBACK);
} else {
job.setType(JobType.SUBMIT);
}
// TODO: remove HACK
if (task.getType() != Task.PROBLEM_TYPE_OUTPUT) {
job.setTask(task.getName());
} else {
job.setTask(task.getName() + language);
}
job.setLanguage(language);
job.srcFilename = sourceFileName;
job.src = tmp;
gradingQueueManager.push(job, notified);
dispatchJob();
}