[
https://issues.apache.org/jira/browse/SLING-3028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13759264#comment-13759264
]
Alexander Klimetschek commented on SLING-3028:
----------------------------------------------
- I would call the JobExectionContext simply JobProgress or have it provide it
as a separate interface via a progress() method
- what does the "long eta" mean? an expected end time? IMHO this can be rarely
given in advance (but can't rule that out); maybe it's good to have the first
draft without it
- as mentioned, one should be able to update the total steps (I would call them
totalSteps instead of just steps, to make it more clear)
- agree with Mike's idea of tracking the timestamp upon each call, albeit this
has no effect on the progress API from the job side
- we should also allow for smart/usability optimized progress bars, i.e. ones
that start slow and become faster (in the UI), as that is what gives users a
good feel; in theory, this should be possible by the progress implementation to
calculate properly, but we should make sure that enough data can be passed for
that or is tracked; w/o having thought this through, I assume the last update
timestamp is important for that
> Support for progress tracking of jobs
> -------------------------------------
>
> Key: SLING-3028
> URL: https://issues.apache.org/jira/browse/SLING-3028
> Project: Sling
> Issue Type: Improvement
> Components: Extensions
> Reporter: Victor Saar
> Labels: jobs
>
> For long-running jobs, it would be useful to have some means to track
> progress, which can be shown in a console for the user. This should include
> the following:
> * ETA
> * Completeness value computed from (optional, defaults to 1.0) max and
> current value (e.g. 42% or 23/100)
> * Log output stream for detailed progress information
> * Failure reason in case job failed
> AFAICS this requires a few changes to the existing implementation:
> * Jobs need additional support for setting properties, e.g. max and current
> progress value
> * Jobs need to be kept at least for a while after they completed/failed to
> give access to failure information/log stream
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira