Added announcement
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-19 03:30:42 +02:00
parent fdacc7a36d
commit 072981f1eb

View File

@ -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):