[ 
https://issues.apache.org/jira/browse/SLING-7666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

indra kumar gurjar updated SLING-7666:
--------------------------------------
    Description: 
The sling sling-eventing-and-job-handling bundle documentation doesn't include 
information of  "JobExecutor" , it describes only "JobConsumer".

If consumer needs more features like providing progress information or adding 
more information of the processing, JobExecutor should be implemented. 

 

  was:
The sling 

Currently, when a JobConsumer fails, it's supposed to return a 
JobResult.CANCEL, but there is no way to set an error message.

Looking at the JCR, we see that such (failed/canceled) jobs are saved to 
/var/eventing/jobs/cancelled/ with a property "slingevent:finishedState=ERROR".

It would be beneficial to add a method to the Job interface to set an error 
String or List<String> for multiple errors (to save stacktrace perhaps). That 
way if a job fails we can debug the issue.


> Update sling site documentation for bundle - sling-eventing-and-job-handling
> ----------------------------------------------------------------------------
>
>                 Key: SLING-7666
>                 URL: https://issues.apache.org/jira/browse/SLING-7666
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>            Reporter: indra kumar gurjar
>            Priority: Minor
>
> The sling sling-eventing-and-job-handling bundle documentation doesn't 
> include information of  "JobExecutor" , it describes only "JobConsumer".
> If consumer needs more features like providing progress information or adding 
> more information of the processing, JobExecutor should be implemented. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to