[
https://issues.apache.org/jira/browse/SYNCOPE-660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14563115#comment-14563115
]
ASF GitHub Bot commented on SYNCOPE-660:
----------------------------------------
Github user ilgrosso commented on a diff in the pull request:
https://github.com/apache/syncope/pull/6#discussion_r31246859
--- Diff:
console/src/main/java/org/apache/syncope/console/rest/ReportRestClient.java ---
@@ -105,4 +108,24 @@ public void deleteExecution(final long reportExecId) {
public Response exportExecutionResult(final Long executionId, final
ReportExecExportFormat fmt) {
return
getService(ReportService.class).exportExecutionResult(executionId, fmt);
}
+
+ @Override
+ public boolean isJobRunning(final long reportId) {
+ for (ReportExecTO reportExecTO :
getService(ReportService.class).listJobs(JobStatusType.RUNNING)) {
+ if (reportExecTO.getReport() == reportId) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @Override
+ public void startJob(final long taskId) {
--- End diff --
reportId
> Extend control over asynchronous job execution
> ----------------------------------------------
>
> Key: SYNCOPE-660
> URL: https://issues.apache.org/jira/browse/SYNCOPE-660
> Project: Syncope
> Issue Type: Improvement
> Reporter: Francesco Chicchiriccò
> Assignee: Giacomo Lamonaco
> Fix For: 1.2.5, 2.0.0
>
>
> Asynchronous job execution, generally delegated to Quartz, can currently be
> checked only at completion, and only by indirectly checking the status on
> related JPA entities (TaskExec, ReportExec, ...).
> A REST endpoint should be provided for reporting on jobs execution and
> providing the ability to control (e.g. stop / pause / resume / ...) .
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)