Simplify workers and fix metrics

This commit is contained in:
2025-08-13 11:37:05 +03:00
parent eb0dea6113
commit 900c7ecb51
4 changed files with 29 additions and 104 deletions

View File

@@ -10,3 +10,11 @@ type JobNotFoundError struct {
func (e *JobNotFoundError) Error() string {
return fmt.Sprintf("%s - %s", e.State, e.Message)
}
type NoopJobError struct {
State string
}
func (e *NoopJobError) Error() string {
return fmt.Sprintf("%s: no op job occur", e.State)
}