(schedule: string | undefined)
| 55 | }; |
| 56 | |
| 57 | export const autostartDisplay = (schedule: string | undefined): string => { |
| 58 | if (schedule) { |
| 59 | return ( |
| 60 | cronstrue |
| 61 | .toString(stripTimezone(schedule), { |
| 62 | throwExceptionOnParseError: false, |
| 63 | }) |
| 64 | // We don't want to keep the At because it is on the label |
| 65 | .replace("At", "") |
| 66 | ); |
| 67 | } |
| 68 | return "Manual"; |
| 69 | }; |
| 70 | |
| 71 | const isShuttingDown = (workspace: Workspace, deadline?: Dayjs): boolean => { |
| 72 | if (!deadline) { |
no test coverage detected