Closed HyunjunA closed 1 year ago
Added a check for the recommender status in PR #622. @HyunjunA Could you please update your branch with the latest EpistasisLab/Aliro master branch so we can test this PR again?
After the update from master (commit 6b27b4e) the issue is partially resolved. The alert saying "dataset cannot be deleted" now pops up if the ai button is enabled. But still fails if an experiment is running manually. Since this PR adds frontend code and seems to work fine. I'm merging it and will troubleshoot issue #197 from master.
I checked out this commit got the HTTP 500 error message. These were my steps
DELETE
endpointStep 4 means that experiments were not recognized as 'running'. Maybe there's a split second where an experiment is finished and a new experiment is about to start (at this point in time it's possible there are no 'running' experiments).
Checking if the AI button is 'on' instead of checking if experiments are 'running' may work here. But this wouldn't handle cases where an experiment is launched manually, and then the user attempts to delete the dataset.
I'm going to try checking for both (the status of the AI and if experiments are 'runing') on the
DELETE
endpoint.