publicclassCleanupScheduler{privatefinalScheduledExecutorServiceexecutor;publicvoidstart(Durationinterval){executor.scheduleAtFixedRate(this::runCleanup,interval.toMinutes(),interval.toMinutes(),TimeUnit.MINUTES);}privatevoidrunCleanup(){// Find and remove old jobs based on config}}
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Imported from GitHub samson-media/barn#15 — opened by @daniel-samson on 2026-01-21 12:40:42 UTC
Overview
Implement the service daemon main loop that orchestrates all service components.
Context
README.md(service overview),docs/config.md(service settings)Requirements
1. Service Daemon
com.samsonmedia.barn.service.BarnService.java:2. Startup Sequence
3. Shutdown Sequence
4. Signal Handling
5. Cleanup Scheduler
com.samsonmedia.barn.service.CleanupScheduler.java:6. Health Check
7. Tests Required
BarnServiceTest.java: Test startup/shutdown sequenceSignalHandlerTest.java: Test signal handlingCleanupSchedulerTest.java: Test periodic cleanupAcceptance Criteria
mvn verifypassesImplementation Notes
Blocking main thread until shutdown:
Graceful shutdown timeout:
Definition of Done
@daniel-samson commented on 2026-01-21 14:29:25 UTC:
Implemented service daemon main loop with tests