File tree Expand file tree Collapse file tree 5 files changed +8
-13
lines changed
apps/supervisor/src/workloadManager
internal-packages/run-engine/src/engine/systems Expand file tree Collapse file tree 5 files changed +8
-13
lines changed Original file line number Diff line number Diff line change 55 type WorkloadManagerOptions ,
66} from "./types.js" ;
77import type { EnvironmentType , MachinePreset , PlacementTag } from "@trigger.dev/core/v3" ;
8- import { PlacementTagProcessor } from "@trigger.dev/core/v3" ;
8+ import { PlacementTagProcessor } from "@trigger.dev/core/v3/serverOnly " ;
99import { env } from "../env.js" ;
1010import { type K8sApi , createK8sApi , type k8s } from "../clients/kubernetes.js" ;
1111import { getRunnerId } from "../util.js" ;
Original file line number Diff line number Diff line change 11import type { BillingCache } from "../billingCache.js" ;
22import { startSpan } from "@internal/tracing" ;
33import { assertExhaustive } from "@trigger.dev/core" ;
4- import { DequeuedMessage , RetryOptions , placementTag } from "@trigger.dev/core/v3" ;
4+ import { DequeuedMessage , RetryOptions } from "@trigger.dev/core/v3" ;
5+ import { placementTag } from "@trigger.dev/core/v3/serverOnly" ;
56import { getMaxDuration } from "@trigger.dev/core/v3/isomorphic" ;
67import { PrismaClientOrTransaction } from "@trigger.dev/database" ;
78import { getRunWithBackgroundWorkerTasks } from "../db/worker.js" ;
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ export {
6969
7070export * from "./utils/imageRef.js" ;
7171export * from "./utils/interval.js" ;
72- export * from "./utils/placementTags.js" ;
7372
7473export * from "./config.js" ;
7574export {
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ export * from "./shutdownManager.js";
66export * from "./k8s.js" ;
77export * from "./jumpHash.js" ;
88export * from "../apiClient/version.js" ;
9+ export * from "./placementTags.js" ;
Original file line number Diff line number Diff line change 11import { type PlacementTag } from "../schemas/index.js" ;
2- import { SimpleStructuredLogger } from "./structuredLogger.js" ;
2+ import { SimpleStructuredLogger } from "../utils /structuredLogger.js" ;
33
44export interface PlacementConfig {
55 enabled : boolean ;
@@ -41,16 +41,10 @@ export class PlacementTagProcessor {
4141 private printTagWarnings ( tag : PlacementTag ) {
4242 if ( ! tag . values || tag . values . length === 0 ) {
4343 // No values provided
44- this . logger . warn (
45- "Placement tag has no values, using empty string" ,
46- tag
47- ) ;
44+ this . logger . warn ( "Placement tag has no values, using empty string" , tag ) ;
4845 } else if ( tag . values . length > 1 ) {
4946 // Multiple values provided
50- this . logger . warn (
51- "Placement tag has multiple values, only using first one" ,
52- tag
53- ) ;
47+ this . logger . warn ( "Placement tag has multiple values, only using first one" , tag ) ;
5448 }
5549 }
5650}
@@ -61,4 +55,4 @@ export class PlacementTagProcessor {
6155 */
6256export function placementTag ( key : string , value : string ) : PlacementTag {
6357 return { key, values : [ value ] } ;
64- }
58+ }
You can’t perform that action at this time.
0 commit comments