mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-11-10 13:24:05 +08:00
fix(syncer): retry startup task publication failures (#22101)
This commit is contained in:
1 parent
e2baf6d511
commit
c1711a2be1
1 file changed
+5
-1
@@ -143,7 +143,11 @@ func (s *Scheduler) publishStartupTasks(ctx context.Context) error {
|
||||
|
||||
for _, task := range tasks {
|
||||
if err = s.ScheduleTask(ctx, task); err != nil {
|
||||
return err
|
||||
if ctx.Err() != nil {
|
||||
return ctx.Err()
|
||||
}
|
||||
common.Warn("syncer scheduler startup task publish failed", zap.String("task_id", task.ID), zap.Error(err))
|
||||
s.ScheduleTaskAfter(ctx, task.ID, 3*time.Second)
|
||||
}
|
||||
}
|
||||
if len(tasks) < scheduledTaskStartupPageSize {
|
||||
|
||||
Reference in new issue
Block a user