dispatchJob();
}
public void submit(String contestId, String userId, Task task, String language, File tmp,
String sourceFileName, JobRemovalNotified notified, boolean isAlwaysAccept) {
Job job = new Job();
job.setContestId(contestId);
job.setUserid(userId);
job.setType(JobType.SUBMIT);
job.setTask(task.getName());
job.setAlwaysAccept(isAlwaysAccept || (task.getType() == Task.PROBLEM_TYPE_OUTPUT));
if (task.getType() == Task.PROBLEM_TYPE_OUTPUT) {
job.setTestIndex(language);
job.setLanguage("N/A");
} else {
job.setLanguage(language);
}
job.srcFilename = sourceFileName;
job.src = tmp;
gradingQueueManager.push(job, notified);
dispatchJob();