Logo
Explore Help
Register Sign in
goffee/cup
1
0
Fork
You've already forked cup
2
Code Issues Pull requests Projects Releases 17 Packages Wiki Activity Actions

Wires the scheduler into the cup application following the exact conventions of the Asynq queue integration #18

Merged
zeni merged 1 commit from jacs/cup:scheduler into develop 2026-06-21 22:15:47 -04:00
Conversation 0 Commits 1 Files changed 6 +203

1 commit

Author SHA1 Message Date
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
Powered by Forgejo Version: 11.0.1 Page: 38ms Template: 2ms
English
Bahasa Indonesia Dansk Deutsch English Español Esperanto Filipino Français Italiano Latviešu Magyar nyelv Nederlands Plattdüütsch Polski Português de Portugal Português do Brasil Slovenščina Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API