Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nomad-FAIR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nomad-lab
nomad-FAIR
Commits
6f62b6d0
Commit
6f62b6d0
authored
6 years ago
by
Markus Scheidgen
Browse files
Options
Downloads
Patches
Plain Diff
Removed watchdog, which was not working properly.
parent
aaced66c
No related branches found
No related tags found
1 merge request
!33
Merge version 0.4.0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nomad/client/misc.py
+2
-11
2 additions, 11 deletions
nomad/client/misc.py
with
2 additions
and
11 deletions
nomad/client/misc.py
+
2
−
11
View file @
6f62b6d0
...
@@ -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_w
atched_api
)
loop
.
run_in_executor
(
executor
,
run_w
orker
)
@cli.command
(
help
=
'
Runs tests and linting. Useful before commit code.
'
)
@cli.command
(
help
=
'
Runs tests and linting. Useful before commit code.
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment