use new utility

This commit is contained in:
Robin Olsen
2026-02-23 12:26:48 +01:00
parent 67e16265ab
commit a3a9b8293c

View File

@@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"os" "os"
"strings" "strings"
"time"
"github.com/LazyBachelor/LazyPM/internal/service" "github.com/LazyBachelor/LazyPM/internal/service"
"github.com/LazyBachelor/LazyPM/pkg/task" "github.com/LazyBachelor/LazyPM/pkg/task"
@@ -99,5 +100,5 @@ func (t *CodingTask) Validate(ctx context.Context) (bool, error) {
return false, fmt.Errorf("the function does not contain a return statement") return false, fmt.Errorf("the function does not contain a return statement")
} }
return true, nil return EndTaskWithTimeout(nil, "Task completed!", 5*time.Second)
} }