(ctx context.Context, jobID int64)
| 427 | } |
| 428 | |
| 429 | func (s *SkillLibraryService) RunAsyncImportJob(ctx context.Context, jobID int64) { |
| 430 | if jobID <= 0 { |
| 431 | return |
| 432 | } |
| 433 | go func() { |
| 434 | defer func() { |
| 435 | if r := recover(); r != nil { |
| 436 | logger.Warnf(ctx, "【技能运行】导入任务异步执行panic并已恢复: job_id=%d panic=%v stack=%s", jobID, r, string(debug.Stack())) |
| 437 | } |
| 438 | }() |
| 439 | _ = s.runImportWorker(context.Background(), jobID) |
| 440 | }() |
| 441 | } |
| 442 | |
| 443 |
no test coverage detected