Skip to content

Commit

Permalink
Update check for success state
Browse files Browse the repository at this point in the history
  • Loading branch information
scottx611x committed Sep 9, 2016
1 parent 416289e commit fca97c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion refinery/core/serializers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import logging

import celery
from rest_framework import serializers

import file_store
Expand Down Expand Up @@ -132,7 +134,7 @@ def _ready_for_igv_detail_view(self, obj):
return False

state = node.get_auxiliary_file_generation_task_state()
if not state.successful():
if not state == celery.states.SUCCESS:
ready_for_igv_detail_view = False

return ready_for_igv_detail_view
Expand Down

0 comments on commit fca97c9

Please sign in to comment.