@lage-run/cli 0.23.4 → 0.23.5

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/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@lage-run/cli",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 09 Oct 2024 17:20:17 GMT",
5
+ "date": "Thu, 10 Oct 2024 20:14:49 GMT",
6
+ "version": "0.23.5",
7
+ "tag": "@lage-run/cli_v0.23.5",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "kchau@microsoft.com",
12
+ "package": "@lage-run/cli",
13
+ "commit": "cad4d2b233433e70c2fd24cfa5a779d0715d778a",
14
+ "comment": "shutoff at 3 minutes"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 09 Oct 2024 17:20:33 GMT",
6
21
  "version": "0.23.4",
7
22
  "tag": "@lage-run/cli_v0.23.4",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @lage-run/cli
2
2
 
3
- <!-- This log was last generated on Wed, 09 Oct 2024 17:20:17 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Thu, 10 Oct 2024 20:14:49 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.23.5
8
+
9
+ Thu, 10 Oct 2024 20:14:49 GMT
10
+
11
+ ### Patches
12
+
13
+ - shutoff at 3 minutes (kchau@microsoft.com)
14
+
7
15
  ## 0.23.4
8
16
 
9
- Wed, 09 Oct 2024 17:20:17 GMT
17
+ Wed, 09 Oct 2024 17:20:33 GMT
10
18
 
11
19
  ### Patches
12
20
 
@@ -128,8 +128,15 @@ async function executeRemotely(options, command) {
128
128
  logger.info(`Starting server on http://${host}:${port}`);
129
129
  logger.info(`acquiring lock: ${lockfilePath}`);
130
130
  ensurePidFile(lockfilePath);
131
- const releaseLock = _properlockfile.default.lockSync(lockfilePath, {
132
- stale: 1000 * 60 * 1
131
+ const releaseLock = await _properlockfile.default.lock(lockfilePath, {
132
+ stale: 1000 * 60 * 1,
133
+ retries: {
134
+ retries: 10,
135
+ factor: 3,
136
+ minTimeout: 0.5 * 1000,
137
+ maxTimeout: 60 * 1000,
138
+ randomize: true
139
+ }
133
140
  });
134
141
  const pid = parseInt(_fs.default.readFileSync(lockfilePath, "utf-8"));
135
142
  const isServerRunning = pid && isAlive(pid);
@@ -167,7 +174,7 @@ async function executeRemotely(options, command) {
167
174
  pid: child.pid
168
175
  });
169
176
  }
170
- releaseLock();
177
+ await releaseLock();
171
178
  logger.info("Creating a client to connect to the background services");
172
179
  client = await tryCreateClientWithRetries(host, port, logger);
173
180
  if (!client) {
@@ -20,5 +20,5 @@ function _interop_require_default(obj) {
20
20
  const execCommand = new _commander.Command("exec");
21
21
  execCommand.option("-c|--concurrency <number>", "max jobs to run at a time", (v)=>parseInt(v), _os.default.cpus().length - 1);
22
22
  execCommand.option("-s|--server [host:port]", "lage server host");
23
- execCommand.option("-t|--timeout <seconds>", "lage server autoshutoff timeout", (v)=>parseInt(v), 1 * 60);
23
+ execCommand.option("-t|--timeout <seconds>", "lage server autoshutoff timeout", (v)=>parseInt(v), 3 * 60);
24
24
  (0, _addLoggerOptions.addLoggerOptions)(execCommand).action(_action.execAction);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cli",
3
- "version": "0.23.4",
3
+ "version": "0.23.5",
4
4
  "description": "Command Line Interface for Lage",
5
5
  "repository": {
6
6
  "type": "git",