How to get an instance of com.atlassian.scheduler.SchedulerService in Bamboo apps?

com.atlassian.sal.api.scheduling.PluginScheduler has been deprecated for a while now and we are suggested to instead go through

<dependency>
            <groupId>com.atlassian.scheduler</groupId>
            <artifactId>atlassian-scheduler-api</artifactId>
            <version>${scheduler.api.version}</version>
        </dependency>

But I wasn’t able to get hold of an instance of SchedulerService in Bamboo and had to revert to the old PluginScheduler to register a scheduled job.

com.atlassian.sal.bamboo.scheduler.BambooSchedulerServiceImpl seems to be a good candidate :

@Component
@ExportAsService(SchedulerService.class)
public class BambooSchedulerServiceImpl extends DelegatingSchedulerService implements SchedulerService, InitializingBean, DisposableBean
2 Likes

2 years later and we are currently facing the same issue. Not very excited about reverting back to SAL, which was deprecated years ago, according to the documentation.
Is this problem specific to the Bamboo platform? Has it been addressed somehow?