(ctx context.Context, mgr *jobmgr.Manager, moduleName string)
| 360 | } |
| 361 | |
| 362 | func waitForJobs(ctx context.Context, mgr *jobmgr.Manager, moduleName string) error { |
| 363 | for { |
| 364 | if len(mgr.GetJobNames(moduleName)) > 0 { |
| 365 | return nil |
| 366 | } |
| 367 | select { |
| 368 | case <-ctx.Done(): |
| 369 | return fmt.Errorf("no jobs started for module '%s'", moduleName) |
| 370 | case <-time.After(100 * time.Millisecond): |
| 371 | } |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | func writeFunctionError(status int, format string, args ...any) { |
| 376 | resp := map[string]any{ |
no test coverage detected
searching dependent graphs…