Hello fellow Conf devs,
I’ve got a pretty old plugin for Confluence I need to upgrade to work in Confluence 8.x. The issue is with one-time job scheduling.
During the initial installation, I’ve got an error:
createModuleDescriptor There was a problem loading the descriptor for module 'job' in plugin 'MyPlugin Confluence Connector'.\n Job module descriptors are no longer supported. Use JobConfig modules instead.
So, I also have a Jira version of this plugin which uses the JobRunner and com.atlassian.scheduler.SchedulerService to schedule a one-time job as well as cron jobs. This works fine.
In my Jira code that uses the atlassian-scheduler, I saw a comment like: “Uses SAL scheduler service, but Confluence doesn’t support that”.
I’m trying to get Confluence to use
com.atlassian.scheduler.JobRunner as well as
com.atlassian.scheduler.SchedulerService. So, I can essentially have the same functionality I have in Jira.
Is it still true that as of Confluence 8.x, it still doesn’t support SchedulerService?
If so, how do I schedule a one-off job, for example to pull data off my web app?
Currently when I tried JobRunner, it says that the job cannot be manually started as an error.
This is very confusing and the documentation on what type of scheduling Confluence 8.x supports is completely lacking.
Any help would be greatly appreciated.
I can provide stripped down code samples of what I had/have.