feat!(backend): unify script run and ad-hoc job run
ci-agent / build (push) Failing after 5m25s

This commit is contained in:
2026-04-05 04:10:59 +03:00
parent add1242b97
commit e5724f0611
4 changed files with 69 additions and 74 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ func main() {
log.Printf("Warning: failed to initialize script interpreters table: %v", err)
}
scriptSvc := service.NewScriptServiceWithInterpreters(h.Repo, scriptRepo)
scriptHandlers := handlers.NewScriptHandlers(scriptSvc, cmdTracker)
scriptHandlers := handlers.NewScriptHandlers(scriptSvc, cmdTracker,
os.Getenv("WHEREAMI"))
jobsHandlers := handlers.NewJobsHandlers(cmdTracker, scriptSvc,
os.Getenv("WHEREAMI"), /* our address for redirects */
jobRepo,