Skip to content
Snippets Groups Projects
Commit 6f62b6d0 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Removed watchdog, which was not working properly.

parent aaced66c
Branches
Tags
1 merge request!33Merge version 0.4.0
...@@ -17,7 +17,6 @@ import os ...@@ -17,7 +17,6 @@ import os
import sys import sys
import click import click
import asyncio import asyncio
from watchgod import run_process
from concurrent.futures import ProcessPoolExecutor from concurrent.futures import ProcessPoolExecutor
from nomad import config from nomad import config
...@@ -60,20 +59,12 @@ def run_worker(): ...@@ -60,20 +59,12 @@ def run_worker():
processing.app.worker_main(['worker', '--loglevel=INFO']) processing.app.worker_main(['worker', '--loglevel=INFO'])
def run_watched_worker():
run_process('./nomad', run_worker)
def run_watched_api():
run_process('./nomad', run_api)
@run.command(help='Run both api and worker with watchdog.') @run.command(help='Run both api and worker with watchdog.')
def apiworker(): def apiworker():
executor = ProcessPoolExecutor(2) executor = ProcessPoolExecutor(2)
loop = asyncio.get_event_loop() loop = asyncio.get_event_loop()
loop.run_in_executor(executor, run_watched_worker) loop.run_in_executor(executor, run_api)
loop.run_in_executor(executor, run_watched_api) loop.run_in_executor(executor, run_worker)
@cli.command(help='Runs tests and linting. Useful before commit code.') @cli.command(help='Runs tests and linting. Useful before commit code.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment