This commit is contained in:
parent
fdacc7a36d
commit
072981f1eb
@ -6,6 +6,7 @@ from marshmallow import ValidationError
|
||||
from utils import storage
|
||||
from schemas import DescriptionSchema
|
||||
import opentracing
|
||||
from utils import magic_amqp
|
||||
|
||||
|
||||
class ObjectView(FlaskView):
|
||||
@ -70,6 +71,9 @@ class ObjectView(FlaskView):
|
||||
except ResponseError: # TODO: Check if object already exists... somehow
|
||||
raise
|
||||
|
||||
with opentracing.tracer.start_active_span('announceSampleReady'):
|
||||
magic_amqp.publish({"tag": description['tag']}) # publish sample-ready, so that cnn can start working
|
||||
|
||||
return jsonify({"status": "200"}), 200 # TODO: 200 should be OK but that would be inconsistent with the errors
|
||||
|
||||
def get(self, tag: str):
|
||||
|
Loading…
Reference in New Issue
Block a user