(prefix = "job")
| 122 | } |
| 123 | |
| 124 | export function generateJobId(prefix = "job") { |
| 125 | const random = Math.random().toString(36).slice(2, 8); |
| 126 | return `${prefix}-${Date.now().toString(36)}-${random}`; |
| 127 | } |
| 128 | |
| 129 | export function upsertJob(cwd, jobPatch) { |
| 130 | return updateState(cwd, (state) => { |
no outgoing calls
no test coverage detected