You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When querying /worker/task via the API, the server returns 500 internal server error.
This is because the currently active task object holds a cached copy of the dynamically generated pydantic model of the plan's parameters. See blueapi.worker.task.Task. Pickling does not work on dynamically generated classes by default.
This also happens if trying to run more than one plan, as the previous task is pickled as part of the information displayed to the user, making the bug more severe
Activity
callumforrester commentedon Feb 7, 2024
This also happens if trying to run more than one plan, as the previous task is pickled as part of the information displayed to the user, making the bug more severe
callumforrester commentedon Feb 7, 2024
I suggest for now we stop caching, since that's a simple change and the overhead of generating the parameters twice is tiny: #370
Remove parameter caching inside task class (#370)
Remove parameter caching inside task class (#370)