Skip to content

Commit 80f2fc8

Browse files
authored
Add scheduled at timestamp to created run containers (#1722)
* add scheduled at timestamp to k8s provider * add scheduled at timestamp to docker provider
1 parent bf43fd4 commit 80f2fc8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/docker-provider/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class DockerTaskOperations implements TaskOperations {
122122
`--env=POD_NAME=${containerName}`,
123123
`--env=COORDINATOR_HOST=${COORDINATOR_HOST}`,
124124
`--env=COORDINATOR_PORT=${COORDINATOR_PORT}`,
125+
`--env=SCHEDULED_AT_MS=${Date.now()}`,
125126
`--name=${containerName}`,
126127
];
127128

apps/kubernetes-provider/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@ class KubernetesTaskOperations implements TaskOperations {
517517
},
518518
},
519519
},
520+
{
521+
name: "SCHEDULED_AT_MS",
522+
value: Date.now().toString(),
523+
},
520524
...this.#coordinatorEnvVars,
521525
];
522526
}

0 commit comments

Comments
 (0)