t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Kubernetes/fixtures/local-job.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

26 lines
665 B
TypeScript

import * as Kubernetes from "@/Kubernetes";
import * as Effect from "effect/Effect";
import { TestLocalCluster } from "./local.ts";
/**
* An Effect program run as a one-shot Job on the local cluster: bundled,
* built for the node architecture, pushed to the cluster's registry, and
* pulled by the node.
*/
export default Kubernetes.Job(
"LocalEffectJob",
Effect.gen(function* () {
const cluster = yield* TestLocalCluster;
return {
cluster,
main: import.meta.url,
name: "local-effect-job",
backoffLimit: 1,
};
}),
Effect.gen(function* () {
return {
run: Effect.log("local effect job ran"),
};
}),
);