querysub 0.232.0 → 0.234.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -443,6 +443,7 @@ export async function machineApplyMain() {
|
|
|
443
443
|
onServiceConfigChange(resyncServices);
|
|
444
444
|
|
|
445
445
|
runInfinitePoll(timeInMinute, async () => {
|
|
446
|
+
console.log(magenta(`Quick outdated check at ${new Date().toISOString()}`));
|
|
446
447
|
if (await quickIsOutdated()) {
|
|
447
448
|
console.log(magenta("Likely outdated, resyncing now"));
|
|
448
449
|
await resyncServices();
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
- In some way communicate that we should shut down?
|
|
3
|
-
- ACTUALLY, we just ctrl+c, which... we might catch right now?
|
|
4
|
-
- So we might need to use ctrl+c multiple times, and callback to kill the service?
|
|
5
|
-
|
|
1
|
+
NOTE: Yarn
|
|
6
2
|
|
|
7
3
|
7.1) Better infinite poll support in shutdown
|
|
8
4
|
- Stop all loops
|
|
@@ -62,6 +62,7 @@ export async function shutdown() {
|
|
|
62
62
|
process.exit();
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
// IMPORTANT! Yarn detaches the processes, so they keep running when you ctrl+c, even though the shell shows back up. We can fix this by using `node -r ./node_modules/typenode/index.js ./test.ts`. However, it's probably fine, as we still run the shutdown code, it's just that the manager doesn't know if we've shutdown or not.
|
|
65
66
|
if (isNode()) {
|
|
66
67
|
let lineBuffer = "";
|
|
67
68
|
process.stdin.on("data", data => {
|