DAMPLAB / damplab-aquarium

The Aquarium Lab Operating System
http://www.aquarium.bio/
Other
2 stars 0 forks source link

Check the Status of Frozen "Scheduled" Protocols to Cancel #4

Open rychen58 opened 4 years ago

rychen58 commented 4 years ago

Summary & Context

Currently, there are 39 frozen "Scheduled" protocols inside Aquarium, and these protocols are frozen so they can't run and complete. Two for Order Primer protocol (Plan # 20717), five for PCR protocol (Plan # 20767, 207774), 12 Upload Sequencing Results protocol (Plan # 20679), 4 Confirm Sequencing Results protocol (Plan # 20670 and 20671), and 16 Make Miniprep + Glycerol Stock (Plan # 20698, 20699, and 20700).

Expected Behavior

Normally if a protocol is scheduled, an associated job will be generated, and the user can run the job to complete the protocol.

Current Behavior

There is no job associated with these frozen "scheduled" plans, which means these protocols can't be run.

Possible Solution

!!!!Before trying the possible solution below, check with Rita to see anyone is currently "scheduling" new protocols!!!! According to Ben from Klavins Lab: You'll have to run this in the rails console within the Aquarium container. From the Aquarium directory, run docker-compose exec app /bin/sh rails c Operation.where(status: 'scheduled').select {|op| op.jobs.empty?}.each {|op| op.error(:no_job,'operations scheduled without jobs') }

Steps to Reproduce

  1. Run any of the job listed in Summary & Context

Environment

Chrome

bjkeller commented 4 years ago

If there is an Aquarium bug here, it is that Aquarium let you do something that you should not have been able to do.

@rychen58 do you still have these frozen protocols?

rychen58 commented 4 years ago

Yes, these protocols are still frozen in Aquarium.