This website requires JavaScript.
Explore
Help
Register
Sign in
goffee
/
cup
Watch
1
Star
0
Fork
You've already forked cup
2
Code
Issues
Pull requests
Projects
Releases
17
Packages
Wiki
Activity
Actions
80
commits
3
branches
17
tags
4
MiB
1a7fc564ff
Commit graph
3 commits
Author
SHA1
Message
Date
Jose Cely
1a7fc564ff
scheduler
2026-06-23 18:15:08 -05:00
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