()
| 210 | * @returns the earliest datetime at which the workspace can be automatically shut down. |
| 211 | */ |
| 212 | export function getMinDeadline(): dayjs.Dayjs { |
| 213 | return dayjs().add(deadlineExtensionMin); |
| 214 | } |
| 215 | |
| 216 | export const getDeadline = (workspace: Workspace): dayjs.Dayjs => |
| 217 | dayjs(workspace.latest_build.deadline).utc(); |
no test coverage detected