feat: adding background jobs ui page and apis - requires user is_admin to be set to true

This commit is contained in:
allanice001
2025-11-04 23:52:37 +00:00
parent 91686c1ea4
commit c41af60b26
97 changed files with 11135 additions and 138 deletions

View File

@@ -89,7 +89,7 @@ var serveCmd = &cobra.Command{
bg.BastionBootstrapArgs{},
archer.WithMaxRetries(3),
// while debugging, avoid extra schedule delay:
archer.WithScheduleTime(time.Now().Add(10*time.Second)),
archer.WithScheduleTime(time.Now().Add(60*time.Second)),
)
if err != nil {
log.Printf("failed to enqueue bootstrap_bastion: %v", err)
@@ -119,7 +119,7 @@ var serveCmd = &cobra.Command{
}
}()
r := api.NewRouter(rt.DB)
r := api.NewRouter(rt.DB, jobs)
addr := fmt.Sprintf("%s:%s", cfg.Host, cfg.Port)