@opengeni/worker-bundle 0.6.0 → 0.7.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/dist/index.js CHANGED
@@ -5,6 +5,7 @@ import { createNatsEventBus as createNatsEventBus2 } from "@opengeni/events";
5
5
  import { createObservability as createObservability2, logStartupDependencyRetry } from "@opengeni/observability";
6
6
  import { Connection, ScheduleAlreadyRunning, ScheduleOverlapPolicy, Client as TemporalClient } from "@temporalio/client";
7
7
  import { NativeConnection, Worker } from "@temporalio/worker";
8
+ import { ensureModalRegistryImage } from "@opengeni/runtime";
8
9
 
9
10
  // src/activities.ts
10
11
  import { dbSearchPath, getSettings, resolveNatsControlPlaneAuth } from "@opengeni/config";
@@ -4785,6 +4786,14 @@ var SANDBOX_REAPER_SCHEDULE_ID = "opengeni-sandbox-lease-reaper";
4785
4786
  async function createOpenGeniWorker(options = {}) {
4786
4787
  const settings = options.settings ?? getSettings2();
4787
4788
  const observability = options.activityDependencies?.observability ?? createObservability2(settings, { component: "worker" });
4789
+ await retryStartupDependency(
4790
+ "Modal private-registry image",
4791
+ () => ensureModalRegistryImage(settings),
4792
+ {
4793
+ ...startupRetryOptions(settings),
4794
+ onRetry: (event) => logStartupDependencyRetry(observability, event)
4795
+ }
4796
+ );
4788
4797
  const connection = await retryStartupDependency(
4789
4798
  "Temporal",
4790
4799
  () => NativeConnection.connect({ address: settings.temporalHost }),