Skip to content

PUT to /worker/task stuck on 409, after a 404 #1480

@dan-fernandes

Description

@dan-fernandes

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:

  1. Set up system as in system tests as per the docs: https://diamondlightsource.github.io/blueapi/main/tutorials/local-auth.html
  2. PUT to /worker/task via the Swagger UI, eg:
{
  "task_id": "string"
}
  1. Observe 404 response
  2. PUT a valid task to /tasks eg:
{
  "name": "count",
  "params": {
    "detectors": [
      "sample_stage"
    ]
  },
  "instrument_session": "cm12345-1"
}
  1. PUT the outputted task_id to /worker/task
  2. Obsersve 409

Acceptance Criteria

  • Blueapi no longer 409's valid requests

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions