@colony2/jobdb 0.0.30 → 0.0.31
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/README.md +22 -0
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -126,6 +126,28 @@ runtime, err := remoteruntime.New("http://127.0.0.1:9047", nil)
|
|
|
126
126
|
See [pkg/jobdb/README.md](pkg/jobdb/README.md) for the Go runtime API, data
|
|
127
127
|
types, and runtime package reference.
|
|
128
128
|
|
|
129
|
+
## Tenant Configuration
|
|
130
|
+
|
|
131
|
+
Every backend provides a tenant configuration store and public administration API.
|
|
132
|
+
Set or remove JSON values through a running server:
|
|
133
|
+
|
|
134
|
+
```sh
|
|
135
|
+
printf '%s' '{"region":"eu-west-1","parallelism":4}' | jobdb config set build.defaults -t tenant-a -f -
|
|
136
|
+
jobdb config add build.defaults -t tenant-a -f ./defaults.json
|
|
137
|
+
jobdb config remove build.defaults -t tenant-a
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
`--url` (`-u`) selects the server (default `http://127.0.0.1:9047`). Set
|
|
141
|
+
`JOBDB_BEARER_TOKEN` if deployment authentication requires it. `--if-match`
|
|
142
|
+
accepts a quoted ETag for conditional writes. Configuration is ordinary JSON
|
|
143
|
+
application data; use the secrets API for credentials.
|
|
144
|
+
|
|
145
|
+
Go workers call `ctx.GetConfiguration(context.Background())` on job or task
|
|
146
|
+
contexts. Each explicit call fetches a fresh, complete tenant snapshot under the
|
|
147
|
+
current lease. Nothing is prefetched or cached. See the
|
|
148
|
+
[configuration contract](docs/SPEC-Tenant-Configuration-Store.md), including
|
|
149
|
+
replay rules and the companion Postgres runtime upgrade.
|
|
150
|
+
|
|
129
151
|
## Go Workflow Workers
|
|
130
152
|
|
|
131
153
|
Workflow workers are intentionally documented separately from the server. If you
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colony2/jobdb",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.31",
|
|
5
5
|
"description": "jobdb job system",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node install.js",
|
|
@@ -30,51 +30,51 @@
|
|
|
30
30
|
},
|
|
31
31
|
"archives": {
|
|
32
32
|
"darwin-arm64": {
|
|
33
|
-
"name": "jobdb_0.0.
|
|
34
|
-
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.
|
|
33
|
+
"name": "jobdb_0.0.31_Darwin_arm64.tar.gz",
|
|
34
|
+
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.31/jobdb_0.0.31_Darwin_arm64.tar.gz",
|
|
35
35
|
"bins": [
|
|
36
36
|
"jobdb"
|
|
37
37
|
],
|
|
38
38
|
"format": "tar.gz",
|
|
39
39
|
"checksum": {
|
|
40
40
|
"algorithm": "sha256",
|
|
41
|
-
"digest": "
|
|
41
|
+
"digest": "2f4ebd26ede4c31916ea3c741aee4c3f3a005a6688227f6b16dc55519a34d477"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"darwin-x64": {
|
|
45
|
-
"name": "jobdb_0.0.
|
|
46
|
-
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.
|
|
45
|
+
"name": "jobdb_0.0.31_Darwin_x86_64.tar.gz",
|
|
46
|
+
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.31/jobdb_0.0.31_Darwin_x86_64.tar.gz",
|
|
47
47
|
"bins": [
|
|
48
48
|
"jobdb"
|
|
49
49
|
],
|
|
50
50
|
"format": "tar.gz",
|
|
51
51
|
"checksum": {
|
|
52
52
|
"algorithm": "sha256",
|
|
53
|
-
"digest": "
|
|
53
|
+
"digest": "aeecd4f0a4afd636f01d74704ad3a232d3f325978cff91f4374de9acc3523192"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"linux-arm64": {
|
|
57
|
-
"name": "jobdb_0.0.
|
|
58
|
-
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.
|
|
57
|
+
"name": "jobdb_0.0.31_Linux_arm64.tar.gz",
|
|
58
|
+
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.31/jobdb_0.0.31_Linux_arm64.tar.gz",
|
|
59
59
|
"bins": [
|
|
60
60
|
"jobdb"
|
|
61
61
|
],
|
|
62
62
|
"format": "tar.gz",
|
|
63
63
|
"checksum": {
|
|
64
64
|
"algorithm": "sha256",
|
|
65
|
-
"digest": "
|
|
65
|
+
"digest": "7af2930970eb47267a8638f17ae8af3397321f8708f2405c1e7d716a727d0226"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"linux-x64": {
|
|
69
|
-
"name": "jobdb_0.0.
|
|
70
|
-
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.
|
|
69
|
+
"name": "jobdb_0.0.31_Linux_x86_64.tar.gz",
|
|
70
|
+
"url": "https://github.com/colony-2/jobdb/releases/download/v0.0.31/jobdb_0.0.31_Linux_x86_64.tar.gz",
|
|
71
71
|
"bins": [
|
|
72
72
|
"jobdb"
|
|
73
73
|
],
|
|
74
74
|
"format": "tar.gz",
|
|
75
75
|
"checksum": {
|
|
76
76
|
"algorithm": "sha256",
|
|
77
|
-
"digest": "
|
|
77
|
+
"digest": "8c2348994201214a501403c41f72a7214e54d19e801fda6a25de538db496e829"
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
},
|