package space.nstart.pcp.complan.service

import org.springframework.boot.ApplicationArguments
import org.springframework.boot.ApplicationRunner
import org.springframework.stereotype.Component

@Component
class DynamicPlanRunStartupRecovery(
    private val dynamicPlanRunService: DynamicPlanRunService
) : ApplicationRunner {

    override fun run(args: ApplicationArguments) {
        dynamicPlanRunService.recoverInterruptedRuns()
    }
}
