Commit 59aa35f7 authored by David Sikter's avatar David Sikter
Browse files

Merge branch 'print_traceback_appworker_952' into 'develop'

print traceback appworker (#952)

See merge request !759
parents 8cd9f02c 2290f17c
Pipeline #138031 passed with stages
in 80 minutes and 34 seconds
......@@ -17,9 +17,9 @@
import click
from nomad import config
from .admin import admin
from nomad import utils'Run a nomad service locally (outside docker).')
......@@ -78,6 +78,22 @@ def run_hub():
sys.exit(main(argv=['-f', 'nomad/', '--Application.log_level=INFO']))
def task_app():
logger = utils.get_logger('app')
except Exception as error:
def task_worker():
logger = utils.get_logger('worker')
except Exception as error:
@run.command(help='Run both app and worker.')
def appworker():
from concurrent import futures as concurrent_futures
......@@ -85,5 +101,5 @@ def appworker():
executor = concurrent_futures.ProcessPoolExecutor(2)
loop = asyncio.get_event_loop()
loop.run_in_executor(executor, run_app)
loop.run_in_executor(executor, run_worker)
loop.run_in_executor(executor, task_app)
loop.run_in_executor(executor, task_worker)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment