anbaric-cloud-hosting 1.23.2 → 1.25.0

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/src/index.ts CHANGED
@@ -22,6 +22,7 @@ export * from "./app-admin/AdminServer";
22
22
  export * from "./app-admin/adminPing";
23
23
  export * from "./data-store/PostgresCliKeyStore";
24
24
  export * from "./data-store/PostgresJobPersistence";
25
+ export * from "./data-store/PostgresJobRunSchedulePersistence";
25
26
  export * from "./data-store/PostgresJsonStore";
26
27
  export * from "./data-store/Schema";
27
28
  export * from "./data-store/SecretsManagerSecretStore";
@@ -47,6 +48,7 @@ export * from "./plugins/PluginBundler";
47
48
  export * from "./plugins/PluginLoader";
48
49
  export * from "./plugins/PageDirectory";
49
50
  export * from "./hosting/handlers/QueueHandler";
51
+ export * from "./hosting/handlers/JobRunSchedulesHandler";
50
52
  export * from "./hosting/handlers/SecretsHandler";
51
53
  export * from "./hosting/handlers/StateMachinesHandler";
52
54
  export * from "./hosting/handlers/auth/AuthorizeCliHandler";
package/src/main.ts CHANGED
@@ -10,6 +10,7 @@ import {PostgresAuditRecordStore} from "./data-store/PostgresAuditRecordStore";
10
10
  import {PostgresCliKeyStore} from "./data-store/PostgresCliKeyStore";
11
11
  import {ensureSchema} from "./data-store/Schema";
12
12
  import {SecretsManagerSecretStore} from "./data-store/SecretsManagerSecretStore";
13
+ import {PostgresJobRunSchedulePersistence} from "./data-store/PostgresJobRunSchedulePersistence";
13
14
  import {PostgresJobPersistence} from "./data-store/PostgresJobPersistence";
14
15
  import {PostgresJsonStore} from "./data-store/PostgresJsonStore";
15
16
  import {PostgresQueue} from "./queuing/PostgresQueue";
@@ -82,7 +83,8 @@ const plugins = await new PluginLoader().load(process.env.ANBARIC_PLUGINS ?? "an
82
83
 
83
84
  const server = new HostingServer(new PostgresJobPersistence(pool), queue, registry, buildLayer,
84
85
  (appId, collection) => new PostgresJsonStore(pool, appId, collection), secretStoreFor, authenticator, cliAuthorizer,
85
- tokenAuthenticator, process.env.ANBARIC_TENANT, new PostgresAuditRecordStore(pool), plugins);
86
+ tokenAuthenticator, process.env.ANBARIC_TENANT, new PostgresAuditRecordStore(pool), plugins,
87
+ new PostgresJobRunSchedulePersistence(pool));
86
88
  const port = await server.listen(hostingPort);
87
89
  const internal = await server.listenInternal(internalPort);
88
90