-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
Slivka rejects jobs for a few different reasons. Most of these are at submission time - with a 422 status code in response to the POST. When there are no slivka runners available to accept the job, however, a job can later on be marked rejected.
Right now there's no way to report the reason for rejection - it probably ought to be written into the db and reported in the response, e.g.:
curl https://www.compbio.dundee.ac.uk/slivka/api/jobs/Z8B_rXSW7n_yviqt
responds currently with:
{"@url":"/slivka/api/jobs/Z8B_rXSW7n_yviqt","completionTime":null,"finished":true,"id":"Z8B_rXSW7n_yviqt","parameters":{"dealign":null,"full-distance":null,"full-distance-iteration":null,"input":"Z8B_rXSW7n_yviqs","iterations":"1","max-guidetree-iterations":"1","max-hmm-iterations":"1"},"service":"clustalo","status":"REJECTED","submissionTime":"2025-02-27T15:07:25"}
but could instead be:
{"@url":"/slivka/api/jobs/Z8B_rXSW7n_yviqt","completionTime":null,"finished":true,"id":"Z8B_rXSW7n_yviqt","parameters":{"dealign":null,"full-distance":null,"full-distance-iteration":null,"input":"Z8B_rXSW7n_yviqs","iterations":"1","max-guidetree-iterations":"1","max-hmm-iterations":"1"},"service":"clustalo","status":"REJECTED",statusDetail:{"Too many sequences.","No runner could accept this job."},"submissionTime":"2025-02-27T15:07:25"}