Bug #8679
closedDo not consider missed task as an error
100%
Description
During cancellation task solver can still trying send solution to the server and this is not an error. But Bridge always raise an exception:
==================================================
[19.Jan.2018 11:51:57] The task 21 was not found
Traceback (most recent call last):
File "/work/zakharov/src/klever/bridge/service/utils.py", line 564, in init
self.task = Task.objects.get(id=task_id)
File "/home/zakharov/.local/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/zakharov/.local/lib/python3.5/site-packages/django/db/models/query.py", line 385, in get
self.model._meta.object_name
service.models.DoesNotExist: Task matching query does not exist.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/work/zakharov/src/klever/bridge/service/views.py", line 218, in upload_solution
service.utils.SaveSolution(request.POST['task id'], archive, request.POST['description'])
File "/work/zakharov/src/klever/bridge/service/utils.py", line 566, in init
raise ServiceError('The task %s was not found' % task_id)
service.utils.ServiceError: The task 21 was not found