Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3676

[Schedulables] Add a way to get some information about a runnable status from JS

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.0
    • None
    • None
    • None
    • 4.5 RC1

      Some tools depend on the status of runnables (running, success, fail, waiting, deactivate).

      To do so, we need some API in Scheduler, callable from the JS.

          [RUNTIME-3676] [Schedulables] Add a way to get some information about a runnable status from JS

          Problems on loading JS and rights needed to check the job status.
          For example, on launching a pilotage report, I get this error:

          The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang.String>) throws org.quartz.SchedulerException] without sufficient rights
          org.ametys.runtime.authentication.AccessDeniedException: The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [public java.util.List<java.util.Map<java.lang.String, java.lang.Object>> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang.String>) throws org.quartz.SchedulerException] without sufficient rights
              at org.ametys.core.ui.ExecuteClientCallsAction._checkAccess(ExecuteClientCallsAction.java:224)
              at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:203)
              at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:182)
             [...]

          Bérénice Maurel added a comment - Problems on loading JS and rights needed to check the job status. For example, on launching a pilotage report, I get this error: The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [ public java.util.List<java.util.Map<java.lang. String , java.lang. Object >> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang. String >) throws org.quartz.SchedulerException] without sufficient rights org.ametys.runtime.authentication.AccessDeniedException: The user UserIdentity [login=admin, population=ametys-demo-users] tried to access the callable method [ public java.util.List<java.util.Map<java.lang. String , java.lang. Object >> org.ametys.plugins.core.schedule.Scheduler.getTasksInformation(java.util.List<java.lang. String >) throws org.quartz.SchedulerException] without sufficient rights at org.ametys.core.ui.ExecuteClientCallsAction._checkAccess(ExecuteClientCallsAction.java:224) at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:203) at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:182) [...]

            bmaurel Bérénice Maurel
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: