You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by st...@apache.org on 2021/03/03 17:35:04 UTC
[sling-site] branch master updated: SLING-10181 : fix docu example
(jobManager.createJob instead of jobManager.startJob)
This is an automated email from the ASF dual-hosted git repository.
stefanegli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 6cc3deb SLING-10181 : fix docu example (jobManager.createJob instead of jobManager.startJob)
6cc3deb is described below
commit 6cc3deb43302f22d296d30eec9e02de875b81462
Author: stefan-egli <st...@apache.org>
AuthorDate: Wed Mar 3 18:34:55 2021 +0100
SLING-10181 : fix docu example (jobManager.createJob instead of jobManager.startJob)
---
.../documentation/bundles/apache-sling-eventing-and-job-handling.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md b/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md
index a97e844..4c9281c 100644
--- a/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md
+++ b/src/main/jbake/content/documentation/bundles/apache-sling-eventing-and-job-handling.md
@@ -87,7 +87,7 @@ An example code for scheduling a job looks like this:
private JobManager jobManager;
public void startScheduledJob() {
- ScheduleBuilder scheduleBuilder = jobManager.startJob("my/special/jobtopic").schedule();
+ ScheduleBuilder scheduleBuilder = jobManager.createJob("my/special/jobtopic").schedule();
scheduleBuilder.daily(0,0); // execute daily at midnight
if (scheduleBuilder.add() == null) {
// something went wrong here, use scheduleBuilder.add(List<String>) instead to get further information about the error