Page MenuHome

__init__.py
No OneTemporary

__init__.py

import os
from threading import Thread
from worker import controllers
controllers.app.config.update(
DEBUG=False,
HOST='127.0.0.1',
PORT=5000,
BRENDER_SERVER='localhost:9999'
)
# Use multiprocessing to register the client the worker to the server
# while the worker app starts up
def run(user_config=None):
config = controllers.app.config
if user_config:
config.from_object(user_config)
controllers.BRENDER_SERVER = config['BRENDER_SERVER']
if os.environ.get('WERKZEUG_RUN_MAIN') != 'true':
register_thread = Thread(target=controllers.register_worker)
register_thread.setDaemon(False)
register_thread.start()
controllers.app.run(config['HOST'], config['PORT'])

File Metadata

Mime Type
text/x-python
Expires
Sun, Oct 2, 5:45 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/a9/a6073fc957d33e49fe4c96879952

Event Timeline