This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix nni stop #368
Merged
Merged
Fix nni stop #368
Changes from 126 commits
Commits
Show all changes
127 commits
Select commit
Hold shift + click to select a range
dc780cd
Merge pull request #1 from Microsoft/master
SparkSnail 86243e7
Merge pull request #2 from Microsoft/master
SparkSnail 3d1e4e9
fix nnictl bug
6d09780
Merge pull request #4 from Microsoft/master
SparkSnail 0d24158
Merge branch 'master' of https://github.com/SparkSnail/nni
6d669c6
Merge pull request #6 from Microsoft/master
SparkSnail af2615d
Merge pull request #8 from Microsoft/master
SparkSnail f6b7c0a
Merge pull request #9 from Microsoft/master
SparkSnail a74febc
Merge pull request #10 from Microsoft/master
SparkSnail 334b0a4
Merge pull request #12 from Microsoft/master
SparkSnail efe93df
Merge pull request #13 from Microsoft/master
SparkSnail 0d9b074
Merge branch 'master' of https://github.com/SparkSnail/nni
421ad1a
Merge pull request #16 from Microsoft/master
SparkSnail 660a8f8
Merge branch 'master' of https://github.com/SparkSnail/nni
2b01089
fix install.sh
951e80e
Merge pull request #17 from Microsoft/master
SparkSnail 90fe674
Merge pull request #18 from Microsoft/master
SparkSnail 2ccf0ed
Merge pull request #19 from Microsoft/master
SparkSnail 77aacee
Merge pull request #20 from Microsoft/master
SparkSnail 9e23dfe
Merge pull request #22 from Microsoft/master
SparkSnail ca7bbe4
Merge pull request #24 from Microsoft/master
SparkSnail 346badd
add desc for Dockerfile.build.base
4af27d6
Merge pull request #27 from Microsoft/master
SparkSnail 46a8350
update document for Dockerfile
4e3697f
Merge pull request #29 from Microsoft/master
SparkSnail 4cd95aa
Merge pull request #30 from Microsoft/master
SparkSnail 405ce45
Merge pull request #31 from Microsoft/master
SparkSnail c3949e6
Merge pull request #32 from Microsoft/master
SparkSnail 22c78fd
Merge pull request #33 from Microsoft/master
SparkSnail a870817
update
b45268c
refactor port detect
59626ec
update
31ea28b
Merge pull request #34 from Microsoft/master
SparkSnail 2ca84c5
refactor NNICTLDOC.md
ab02c93
add document for pai and nnictl
5ff7b45
add default value for port
c1e835d
Merge pull request #35 from Microsoft/master
SparkSnail 5ae146d
add exception handling in trial_keeper.py
1dde461
fix port bug
fe6a188
Merge pull request #36 from Microsoft/master
SparkSnail f7a5228
Merge pull request #37 from Microsoft/master
SparkSnail 9fdf6d4
fix resume
c1285f8
fix nnictl resume and fix nnictl stop
af0d081
fix document
7ce8fd8
update
b29aaed
refactor nnictl
683833b
update
6149bf9
update doc
73bef2f
update
5c397f6
update nnictl
2c68171
fix comment
d0659d6
fix conflict
e64abbf
Merge branch 'Microsoft-master'
a70f7e7
Merge pull request #39 from Microsoft/master
SparkSnail 8d14ca9
revert dockerfile
aeb7c66
update
a256549
update
3fb0bca
update
e116af4
Merge pull request #40 from Microsoft/master
SparkSnail f4edebc
Merge pull request #41 from Microsoft/master
SparkSnail 9413d77
Merge pull request #42 from Microsoft/master
SparkSnail c0663e8
Merge pull request #43 from Microsoft/master
SparkSnail 357545b
Merge pull request #44 from Microsoft/master
SparkSnail e8dec33
Merge pull request #45 from Microsoft/master
SparkSnail 46bf7b4
fix nnictl error hit
7fd0ac3
Merge pull request #46 from Microsoft/master
SparkSnail 4cc7d92
Merge branch 'master' of https://github.com/SparkSnail/nni
55701a2
fix comments
25d1c22
Merge pull request #47 from Microsoft/master
SparkSnail b6b45d1
fix bash-completion
04c03a4
fix paramiko install
72f0e45
Merge pull request #48 from Microsoft/master
SparkSnail 7c91af9
quick fix resume logic
26ef462
update
8237228
Merge pull request #49 from Microsoft/master
SparkSnail 3404415
Merge pull request #52 from Microsoft/master
SparkSnail cbee322
fix nnictl in master
0d67eca
update
a982ed0
update
5d44f7b
update
88072dc
update
12a3e21
Merge pull request #53 from Microsoft/master
SparkSnail e4b2082
remove paramiko
53167b4
update
384a159
Merge pull request #57 from Microsoft/master
SparkSnail 96ad3ed
refactor requirement.txt of sklearn
cb9d74e
Merge branch 'master' into master
SparkSnail 8a026cc
update
369a303
Merge branch 'master' of https://github.com/SparkSnail/nni
7499de7
fix readme.md
78ee31c
update
e7245f8
update
775701a
update
1520a3e
fix conflict
0a3c103
Merge branch 'Microsoft-master'
4dbbb90
fix conflict
3eb8ea0
Merge branch 'Microsoft-master'
c34809d
add HowToContribute.md
cfca9f2
add port in experiment list
f31b27b
fix localTrainingService stop logic
84fe396
support pai port
b12ed90
update
0ebbb29
Merge pull request #61 from Microsoft/master
SparkSnail 5123ab1
update
9771511
update
66cecf4
Merge pull request #62 from Microsoft/master
SparkSnail 618860a
add sklearn version
bd4f431
add pytorch in dockerfile
24c7a8c
fix conflict
cac435e
fix conflict
c742f38
Merge branch 'Microsoft-master'
0a8e3ab
update
d4e41f8
update
1a6b7e6
fix conflict
9cbe353
Merge branch 'Microsoft-master'
88d33ea
Merge pull request #65 from Microsoft/master
SparkSnail 36c6bc2
update
ac6beb5
Merge pull request #66 from Microsoft/master
SparkSnail 9ffbe8d
fix Dockerfile
a39c8f3
fix conflict
c280ba5
Merge branch 'Microsoft-master'
898b469
Merge pull request #68 from Microsoft/master
SparkSnail 050d485
Merge pull request #69 from Microsoft/master
SparkSnail 2bcca69
fix nnictl stop
1fc4369
update
0f6b466
update
5106381
update
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ import { Deferred } from 'ts-deferred'; | |
import { getLogger, Logger } from './log'; | ||
import { getBasePort } from './experimentStartupInfo'; | ||
|
||
|
||
/** | ||
* Abstraction class to create a RestServer | ||
* The module who wants to use a RestServer could <b>extends</b> this abstract class | ||
|
@@ -90,6 +91,7 @@ export abstract class RestServer { | |
} else { | ||
this.startTask.promise.then( | ||
() => { // Started | ||
//server.close() will not be executed | ||
this.server.close().on('close', () => { | ||
this.log.info('Rest server stopped.'); | ||
this.stopTask.resolve(); | ||
|
@@ -103,7 +105,7 @@ export abstract class RestServer { | |
} | ||
); | ||
} | ||
|
||
this.stopTask.resolve() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why should we call this.stopTask.resolve() twice? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this.server.stop() may not be executed. refer https://nodejs.org/docs/latest/api/net.html#net_server_close_callback |
||
return this.stopTask.promise; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this comment mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refer https://nodejs.org/docs/latest/api/net.html#net_server_close_callback