MCPcopy Index your code
hub / github.com/coder/coder / getMinDeadline

Function getMinDeadline

site/src/utils/schedule.tsx:212–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

schedule.test.tsFile · 0.90
AutostopDisplayFunction · 0.90

Calls 1

addMethod · 0.45

Tested by

no test coverage detected