MCPcopy Create free account
hub / github.com/53AI/53AIHub / RunAsyncImportJob

Method RunAsyncImportJob

api/service/skill_library_service.go:429–441  ·  view source on GitHub ↗
(ctx context.Context, jobID int64)

Source from the content-addressed store, hash-verified

427}
428
429func (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

Callers 1

submitSkillImportJobMethod · 0.95

Calls 2

runImportWorkerMethod · 0.95
WarnfMethod · 0.80

Tested by

no test coverage detected