-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
No longer start and stop sentinel to stop/start transitions and run scheduled tasks. Instead make it listen to two kill signals. Kill the test process if API is down in the before hook. This way we might get logs when the process ends up hanging. #9585
- Loading branch information
1 parent
5157ee9
commit 4090a4b
Showing
25 changed files
with
346 additions
and
294 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const feed = require('./lib/feed'); | ||
const schedule = require('./schedule'); | ||
|
||
module.exports = { | ||
init: () => { | ||
process.on('SIGUSR1', () => { | ||
feed.toggle(); | ||
}); | ||
process.on('SIGUSR2', () => { | ||
schedule.runTasks(); | ||
}); | ||
} | ||
}; |
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
Oops, something went wrong.