This website requires JavaScript.
Explore
Help
Register
Sign in
diana
/
cup
Watch
1
Star
0
Fork
You've already forked cup
0
forked from
goffee/cup
Code
Pull requests
Activity
79
commits
2
branches
2
tags
14
MiB
a5a9f4ba50
Commit graph
2 commits
Author
SHA1
Message
Date
Jose Cely
a5a9f4ba50
add maxruns and option for loop forever
2026-06-22 11:46:36 -05:00
Jose Cely
3d051e9617
Wires the scheduler into the cup application following the exact conventions of the Asynq queue integration. A new testmac/config/scheduler.go file provides GetSchedulerConfig() with enable flag, polling interval, and rate limit. A new testmac/register-scheduler.go file registers task handlers (send_email and flaky_task as samples) on the Schedulermux, creates the DB-backed store via core.ResolveGorm(), and launches the scheduler in a goroutine — only when EnableScheduler: true. The scheduler tables are migrated alongside other models in run-auto-migrations.go via db.AutoMigrate(&scheduler.QueueItem{}, &scheduler.ProcessedItem{}).
2026-06-13 18:59:06 -05:00