orchestration server is no real "server" anymore, does not expose any REST API, only starts all the msg queues and waits for incoming requests.
This commit is contained in:
@@ -1,28 +1,4 @@
|
||||
import threading
|
||||
|
||||
import requests
|
||||
from flask import Flask
|
||||
from orchestrator import Orchestrator
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route('/')
|
||||
def hello_world():
|
||||
return 'Hello World'
|
||||
|
||||
|
||||
@app.route('/api1')
|
||||
def api1():
|
||||
return 'api1'
|
||||
|
||||
|
||||
@app.route('/api2')
|
||||
def api2():
|
||||
return 'api2'
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
orc = Orchestrator()
|
||||
threading.Thread(target=orc.setup_msg_queues).start()
|
||||
threading.Thread(target=app.run, args=('0.0.0.0', 5003)).start()
|
||||
Orchestrator().setup_msg_queues()
|
||||
|
||||
Reference in New Issue
Block a user