querysub 0.300.0 → 0.301.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.300.0",
3
+ "version": "0.301.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -340,6 +340,13 @@ const runScreenCommand = measureWrap(async function runScreenCommand(config: {
340
340
  if (rollingObj) {
341
341
  rollingObj.pinnedDuration = config.rollingWindow;
342
342
  }
343
+ // Without this check we might have only 1 service up for a long period of time. I guess even with it we can still have only 1 service up for a long period of time (if the rolling window is alive, but barely), but... idk... this seems better?
344
+ if (rollingObj && rollingObj.pinnedTime + rollingObj.pinnedDuration < Date.now()) {
345
+ console.log(red(`Rolling screen ${screenName} is finished, deleting it, it should be killed shortly`));
346
+ rollingKeepScreenAlive.delete(screenName);
347
+ rollingScreens.delete(rollingObj.rollingScreenName);
348
+ rollingObj = undefined;
349
+ }
343
350
  let existingScreen = screens.find(x => x.screenName === screenName);
344
351
  if (existingScreen && !rollingObj) {
345
352
  let nodeIdPath = os.homedir() + "/" + SERVICE_FOLDER + screenName + "/" + SERVICE_NODE_FILE_NAME;
@@ -1,5 +1,3 @@
1
- Hmm... our cyoa servers are dying very fast... why?
2
-
3
1
  1) Verify clientside notifications work when we rolling update cyoa
4
2
  2) Verify edge nodes are removed when we rolling update cyoa
5
3
  3) Update cyoa rolling time back to 4 hours