lblod / harvesting-singleton-job-service

Service that integrates in the harvesting stack that makes sure a job is only run once at a time for a specific subject.
MIT License
0 stars 0 forks source link

Add human error to display in frontend #2

Open aatauil opened 1 year ago

aatauil commented 1 year ago

In the frontend, it will display the error message attached to the task when a service fails (for most of the services). Currently for this service it doesnt display anything but only sets the status to failed in the frontend. Add a human readable error when singleton jobs fails because a duplicate exists (adding a the duplicate job URI is a plus) so we can distinguishe between intended errors (like duplicates) and unintended errors (eg 500)

The job failed because other identical jobs are already running:

identical jobs:
- URI1
- URI2
benjay10 commented 1 year ago

The error is already linked to the task as can be seen here, but the frontend is just not showing the error. I have never seen the frontend show an error message, so we'll have to look into that. This will be a debugging journey through Ember data, mu-cl-resources and the services that produces errors via the model from the job-controller.