If a non-existent task is PUT to /worker/task it correctly returns a 404.
However, any valid existing plans PUT to /worker/task following this return a 409, with a stack trace.
Steps To Reproduce
Steps to reproduce the behaviour:
- Set up system as in system tests as per the docs: https://diamondlightsource.github.io/blueapi/main/tutorials/local-auth.html
- PUT to
/worker/task via the Swagger UI, eg:
- Observe 404 response
- PUT a valid task to
/tasks eg:
{
"name": "count",
"params": {
"detectors": [
"sample_stage"
]
},
"instrument_session": "cm12345-1"
}
- PUT the outputted task_id to
/worker/task
- Obsersve 409
Acceptance Criteria
- Blueapi no longer 409's valid requests
If a non-existent task is PUT to
/worker/taskit correctly returns a 404.However, any valid existing plans PUT to
/worker/taskfollowing this return a 409, with a stack trace.Steps To Reproduce
Steps to reproduce the behaviour:
/worker/taskvia the Swagger UI, eg:/taskseg:/worker/taskAcceptance Criteria