anbaric-cloud-hosting 1.21.3 → 1.21.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anbaric-cloud-hosting",
3
- "version": "1.21.3",
3
+ "version": "1.21.5",
4
4
  "description": "Anbaric Cloud hosting service: Postgres-backed job persistence and queuing exposed over an HTTP API",
5
5
  "license": "MIT",
6
6
  "author": "chris@anbaric.ai",
@@ -18,18 +18,18 @@
18
18
  "@aws-sdk/client-s3": "^3.1110.0",
19
19
  "@aws-sdk/client-secrets-manager": "^3.700.0",
20
20
  "@aws-sdk/client-servicediscovery": "^3.1110.0",
21
- "anbaric-data-store": "^1.21.3",
22
- "anbaric-plugins": "^1.21.3",
23
- "anbaric-tsapi": "^1.21.3",
24
- "anbaric-web": "^1.21.3",
21
+ "anbaric-data-store": "^1.21.5",
22
+ "anbaric-plugins": "^1.21.5",
23
+ "anbaric-tsapi": "^1.21.5",
24
+ "anbaric-web": "^1.21.5",
25
25
  "esbuild": "^0.28.2",
26
26
  "pg": "^8.16.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^26.2.0",
30
30
  "@types/pg": "^8.15.0",
31
- "anbaric-impl-cloud": "^1.21.3",
32
- "anbaric-state-machine": "^1.21.3",
31
+ "anbaric-impl-cloud": "^1.21.5",
32
+ "anbaric-state-machine": "^1.21.5",
33
33
  "tsx": "^4.20.0",
34
34
  "typescript": "^7.0.2"
35
35
  },
@@ -72,6 +72,8 @@ const ensureSchema = async (pool : Pool) : Promise<void> => {
72
72
  )
73
73
  `);
74
74
  await pool.query("ALTER TABLE queue ADD COLUMN IF NOT EXISTS app_id TEXT");
75
+ await pool.query("ALTER TABLE queue ADD COLUMN IF NOT EXISTS retry_at TIMESTAMPTZ");
76
+ await pool.query("ALTER TABLE queue ADD COLUMN IF NOT EXISTS attempts INT NOT NULL DEFAULT 0");
75
77
  await pool.query(`UPDATE queue
76
78
  SET app_id = split_part(workflow_id, '/', 1),
77
79
  workflow_id = substring(workflow_id from position('/' in workflow_id) + 1)
@@ -4,7 +4,7 @@ import {AuditRecordStore} from "../auditing/AuditRecordStore";
4
4
  import {Authenticator} from "../auth/Authenticator";
5
5
  import {CliAuthorizer} from "../auth/CliAuthorizer";
6
6
  import {TokenAuthenticator} from "../auth/TokenAuthenticator";
7
- import {ConfirmableQueue} from "../queuing/ConfirmableQueue";
7
+ import {RemoteQueue} from "../queuing/RemoteQueue";
8
8
  import {ConsumerRegistry} from "../queuing/ConsumerRegistry";
9
9
  import {AppProxyHandler} from "./handlers/AppProxyHandler";
10
10
  import {AppLinkFallbackHandler} from "./handlers/AppLinkFallbackHandler";
@@ -42,7 +42,7 @@ class HostingServer {
42
42
  private publicServer : Server;
43
43
  private internalServer : Server;
44
44
 
45
- constructor(persistence : JobPersistence, queue : ConfirmableQueue,
45
+ constructor(persistence : JobPersistence, queue : RemoteQueue,
46
46
  registry : ConsumerRegistry = new ConsumerRegistry(),
47
47
  buildLayer? : BuildLayer,
48
48
  documentStoreFor? : (appId : string, collection : string) => JsonStore,
@@ -1,10 +1,10 @@
1
- import {ConfirmableQueue} from "../../queuing/ConfirmableQueue";
1
+ import {RemoteQueue} from "../../queuing/RemoteQueue";
2
2
  import {Request} from "../Request";
3
3
  import {RequestHandler} from "../RequestHandler";
4
4
 
5
5
  class QueueHandler implements RequestHandler {
6
6
 
7
- constructor(private queue : ConfirmableQueue) {}
7
+ constructor(private queue : RemoteQueue) {}
8
8
 
9
9
  async handle(request : Request) : Promise<void> {
10
10
  if (request.subresource) return request.notFound();