Skip to content

feat: Add automated event finalization scheduled job#977

Merged
Olowodarey merged 1 commit into
Arena1X:mainfrom
gelluisaac:feat
Jun 17, 2026
Merged

feat: Add automated event finalization scheduled job#977
Olowodarey merged 1 commit into
Arena1X:mainfrom
gelluisaac:feat

Conversation

@gelluisaac

Copy link
Copy Markdown
Contributor
  • Add is_finalized and end_time columns to CreatorEvent entity
  • Add finalizeEvent method to SorobanService for calling contract's finalize_event
  • Create CreatorEventFinalizerService with @Cron decorator (every 5 minutes)
  • Query events past end_time with all matches resolved and not finalized
  • Cap finalization at 20 events per cron tick for safety
  • Add comprehensive unit tests for finalizer service
  • Register service in MatchesModule with ScheduleModule
  • Add @nestjs/websockets and socket.io dependencies

Closes #960

- Add is_finalized and end_time columns to CreatorEvent entity
- Add finalizeEvent method to SorobanService for calling contract's finalize_event
- Create CreatorEventFinalizerService with @Cron decorator (every 5 minutes)
- Query events past end_time with all matches resolved and not finalized
- Cap finalization at 20 events per cron tick for safety
- Add comprehensive unit tests for finalizer service
- Register service in MatchesModule with ScheduleModule
- Add @nestjs/websockets and socket.io dependencies

Closes Arena1X#6
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
insight-arena-4rll Ready Ready Preview, Comment Jun 17, 2026 10:53am

@Olowodarey Olowodarey merged commit 9b31fd2 into Arena1X:main Jun 17, 2026
5 checks passed
@gelluisaac gelluisaac deleted the feat branch June 17, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] — Scheduled auto-finalization of ended events

2 participants