feat: add retry configuration for failed save task

This commit is contained in:
krau
2025-01-07 10:30:33 +08:00
parent 4b5cabc76e
commit 8d0851f37a
3 changed files with 17 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import (
type Config struct {
Workers int `toml:"workers" mapstructure:"workers"`
Retry int `toml:"retry" mapstructure:"retry"` // Retry times for failed tasks
Temp tempConfig `toml:"temp" mapstructure:"temp"`
Log logConfig `toml:"log" mapstructure:"log"`