diff --git a/internal/api/handlers_jobs.go b/internal/api/handlers_jobs.go index 22434f9..3c50088 100644 --- a/internal/api/handlers_jobs.go +++ b/internal/api/handlers_jobs.go @@ -1,6 +1,7 @@ package api import ( + "context" "database/sql" "encoding/json" "fmt" @@ -160,7 +161,7 @@ func (h *JobHandler) TriggerRun(w http.ResponseWriter, r *http.Request) { slog.Error("job run goroutine panicked", "job_id", jobID, "panic", r) } }() - h.engine.Run(r.Context(), jobID, pairID) + h.engine.Run(context.Background(), jobID, pairID) }() jobRepo := models.NewJobRepository(h.db)