Open mochic opened 2 months ago
@bjhardcastle @arjunsridhar12345 removed the typed dicts associated with the queue, please review when you have time. There's a lot of redundant code but I refactored out some of the redundancies. Factoring out all the redundancies seems like it goes out of the scope of this pr.
Switches from
aind-codeocean-api
tocodeocean
. We have redundant objects in the form ofJobStatus
CapsuleComputationAPI
that we should consider refactoring out. Thecodeocean
analog provided isComputation
. Some of our code relies onJobStatus
,CapsuleComputationAPI
being able to be iteratively serialized (all fields are optional) whereasComputation
doesn't allow for this (requires some values to be present for validation). We should consider how we want to change this. Either by using aComputation
subclass that allows us to do this or by changing the way we're creating/using these objects (ie: not iteratively serializing it). doctests for queue and codeocean_utils appear to be passing but we should identify what additional testing is necessary and perform it.