fix workflow app bugs

This commit is contained in:
takatost
2024-03-08 18:37:08 +08:00
parent 1a0b6adc2c
commit c152d55f68
7 changed files with 79 additions and 43 deletions

View File

@ -129,18 +129,14 @@ class DraftWorkflowRunApi(Resource):
args=args,
invoke_from=InvokeFrom.DEBUGGER
)
return compact_response(response)
except ValueError as e:
raise e
except Exception as e:
logging.exception("internal server error.")
raise InternalServerError()
def generate() -> Generator:
yield from response
return Response(stream_with_context(generate()), status=200,
mimetype='text/event-stream')
class WorkflowTaskStopApi(Resource):
@setup_required