@colony2/jobdb 0.0.30 → 0.0.32

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.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -126,6 +126,30 @@ 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. The first successful read is cached for the live job attempt and shared
147
+ by its tasks. Whole-job retries and resumptions start fresh. Secrets use the same
148
+ scope, caching each requested name. See the
149
+ [cache lifecycle and migration guide](docs/MIGRATION-Workflow-Read-Caching.md) and the
150
+ [configuration contract](docs/SPEC-Tenant-Configuration-Store.md), including
151
+ replay rules and the companion Postgres runtime upgrade.
152
+
129
153
  ## Go Workflow Workers
130
154
 
131
155
  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.30",
4
+ "version": "0.0.32",
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.30_Darwin_arm64.tar.gz",
34
- "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.30/jobdb_0.0.30_Darwin_arm64.tar.gz",
33
+ "name": "jobdb_0.0.32_Darwin_arm64.tar.gz",
34
+ "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.32/jobdb_0.0.32_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": "6296c2eae9133aaf8e526231e432e6a4b6428f2be374bc664ce78ce08d1bfd31"
41
+ "digest": "f9f6066eb765e2eca0cfd9ea9dced189884a0428356688913211d7480c225402"
42
42
  }
43
43
  },
44
44
  "darwin-x64": {
45
- "name": "jobdb_0.0.30_Darwin_x86_64.tar.gz",
46
- "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.30/jobdb_0.0.30_Darwin_x86_64.tar.gz",
45
+ "name": "jobdb_0.0.32_Darwin_x86_64.tar.gz",
46
+ "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.32/jobdb_0.0.32_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": "975e68b25744f47904769bf3c6c370137d6c4b7db80576a1504febdcefa70eab"
53
+ "digest": "51214ebe0a1084930418e8361141f8c2919377cef0efba4167f7bebb501c8027"
54
54
  }
55
55
  },
56
56
  "linux-arm64": {
57
- "name": "jobdb_0.0.30_Linux_arm64.tar.gz",
58
- "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.30/jobdb_0.0.30_Linux_arm64.tar.gz",
57
+ "name": "jobdb_0.0.32_Linux_arm64.tar.gz",
58
+ "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.32/jobdb_0.0.32_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": "e329ec15b6bcd354b80fc5c46828f886ef5fe0e5cbd18bb57c633c2cd4d2f9d8"
65
+ "digest": "1ca3cdfaf4bcbfe06ba14de45aa7e2f7fa72117884f4c5d8dd454e9bc14f3b3e"
66
66
  }
67
67
  },
68
68
  "linux-x64": {
69
- "name": "jobdb_0.0.30_Linux_x86_64.tar.gz",
70
- "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.30/jobdb_0.0.30_Linux_x86_64.tar.gz",
69
+ "name": "jobdb_0.0.32_Linux_x86_64.tar.gz",
70
+ "url": "https://github.com/colony-2/jobdb/releases/download/v0.0.32/jobdb_0.0.32_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": "884b153a54b8d78fd9d4503f3bf4d53eabae800ac470913f37ea9e608a8143c4"
77
+ "digest": "2b29eeb0d2caa95b5e38333ba3b4222418621a71361ec4af294c9e041fcfc6dd"
78
78
  }
79
79
  }
80
80
  },