anbaric 1.56.7 → 1.56.8

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.
@@ -49,6 +49,7 @@ Used by the store implementations the factories return:
49
49
  | `ANBARIC_SQL_DATABASE_URL` | PostgreSQL | connection string |
50
50
  | `ANBARIC_SQL_SCHEMA` | PostgreSQL | schema name (default `anbaric_app_data`) |
51
51
  | `ANBARIC_FILE_STORAGE_PATH` | local file storage | directory to keep files in (default `<temp dir>/anbaric/files`) |
52
+ | `ANBARIC_SCHEDULER_TICK_MS` | the job run scheduler | how often due runs are checked for, in milliseconds (default `10000`) |
52
53
 
53
54
  ## Platform-injected variables
54
55
 
@@ -73,6 +73,9 @@ processRun.run = async (job) => {
73
73
 
74
74
  ## Spreading the load
75
75
 
76
+ The scheduler checks for due runs every ten seconds (`ANBARIC_SCHEDULER_TICK_MS`
77
+ changes that), so a run starts within ten seconds of its planned time.
78
+
76
79
  Machines scheduled at the same time would otherwise all start on the same
77
80
  second. Each machine gets a small random offset — up to two minutes by default —
78
81
  applied **when the run is planned**, so the stored time is the time it really
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anbaric",
3
- "version": "1.56.7",
3
+ "version": "1.56.8",
4
4
  "description": "Everything needed to write an Anbaric app: state machines, jobs, document and secret stores, local in-memory implementations and the Anbaric Cloud clients",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,9 +24,9 @@
24
24
  "prepublishOnly": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "anbaric-impl-cloud": "^1.56.7",
28
- "anbaric-data-store": "^1.56.7",
29
- "anbaric-state-machine": "^1.56.7",
30
- "anbaric-tsapi": "^1.56.7"
27
+ "anbaric-impl-cloud": "^1.56.8",
28
+ "anbaric-data-store": "^1.56.8",
29
+ "anbaric-state-machine": "^1.56.8",
30
+ "anbaric-tsapi": "^1.56.8"
31
31
  }
32
32
  }