brinkmanlab / IslandCompare

Pipeline for detecting and annotating genomic islands and relationships between the respective genomes
Other
4 stars 2 forks source link

Worker errors out but is not reported in UI #123

Closed innovate-invent closed 5 years ago

innovate-invent commented 5 years ago
Exception caused by running celery on different copy of IslandCompare than was used to instantiate server ``` [2018-12-05 17:58:52,922: ERROR/PoolWorker-1] Task analysis.tasks.run_pipeline[bf1f01fb-f822-4f06-9f27-275c2438ee4e] raised unexpected: DoesNotExist('Analysis matching query does not exist.',) Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/celery/app/trace.py", line 367, in trace_task R = retval = fun(*args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/celery/app/trace.py", line 622, in __protected_call__ return self.run(*args, **kwargs) File "/vagrant/IslandCompare/analysis/tasks.py", line 74, in run_pipeline pipeline = PipelineSerializer.deserialize(serialized_pipeline, PipelineComponentFactory()) File "/vagrant/IslandCompare/analysis/pipeline.py", line 210, in deserialize pipeline.analysis = Analysis.objects.get(id=serialized_dict['analysis']) File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 85, in manager_method return getattr(self.get_queryset(), name)(*args, **kwargs) File "/usr/local/lib/python3.4/dist-packages/django/db/models/query.py", line 385, in get self.model._meta.object_name analysis.models.DoesNotExist: Analysis matching query does not exist. ```

I would expect that the front end would report any failure to schedule a worker.