@certik/skynet 0.10.29 → 0.10.30
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.md +4 -0
- package/app.js +7 -1
- package/deploy.d.ts +2 -0
- package/deploy.js +4 -1
- package/examples/api +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/app.js
CHANGED
|
@@ -655,7 +655,13 @@ function api({ name, routes, serve, beforeListen, env = {}, region = "us-east-1"
|
|
|
655
655
|
selector,
|
|
656
656
|
region,
|
|
657
657
|
env,
|
|
658
|
-
|
|
658
|
+
type: "service",
|
|
659
|
+
restart: {
|
|
660
|
+
attempts: 3,
|
|
661
|
+
delay: "15s",
|
|
662
|
+
mode: "fail",
|
|
663
|
+
interval: "30m",
|
|
664
|
+
},
|
|
659
665
|
count: serve.instances,
|
|
660
666
|
cpu: serve.cpu,
|
|
661
667
|
mem: serve.mem,
|
package/deploy.d.ts
CHANGED
package/deploy.js
CHANGED
|
@@ -52,12 +52,13 @@ const genConfig = ({
|
|
|
52
52
|
mem,
|
|
53
53
|
service,
|
|
54
54
|
additionalEnv = [],
|
|
55
|
+
type = "batch",
|
|
55
56
|
region = "us-east-1",
|
|
56
57
|
isProduction,
|
|
57
58
|
}) => `job "${jobName}" {
|
|
58
59
|
datacenters = ["${region}"]
|
|
59
60
|
|
|
60
|
-
type = "
|
|
61
|
+
type = "${type}"
|
|
61
62
|
|
|
62
63
|
${
|
|
63
64
|
cron
|
|
@@ -523,6 +524,7 @@ function createDeploy({
|
|
|
523
524
|
bin = "bin/indexer",
|
|
524
525
|
selector = {},
|
|
525
526
|
region = "us-east-1",
|
|
527
|
+
type = "batch",
|
|
526
528
|
env = {},
|
|
527
529
|
count,
|
|
528
530
|
check,
|
|
@@ -560,6 +562,7 @@ function createDeploy({
|
|
|
560
562
|
workingDirectory,
|
|
561
563
|
additionalEnv: env,
|
|
562
564
|
region,
|
|
565
|
+
type,
|
|
563
566
|
cmd: `${bin} ${args}`,
|
|
564
567
|
cpu,
|
|
565
568
|
mem,
|
package/examples/api
CHANGED