BackPrevious Topic Next TopicNext

Managing Tasks

Usually, a task is a set of operations you perform on Logi Report Server to achieve a goal, such as publishing a folder, deleting a resource, and viewing resource properties. However, the tasks that Logi Report Server manages are those associated with report-running issues, the report-running tasks.

Logi Report Server allows you to quickly view a report result (Run), view a report result using selected options and parameters (Advanced Run), and schedule a report to run unattended at a specific time or periodically (Schedule). These are the fundamental modes that Logi Report Server uses to perform its report-running tasks.

You can view the status of these report-running tasks, such as scheduled tasks that are waiting to be performed by Logi Report Server, the tasks that are currently being performed, and the tasks that have already been performed.

Select the following links to view the topics:

Accessing the Task Information Tables

Logi Report Server collects task information and manages it in a set of tables.

  • Tasks that are scheduled
    • Scheduled table
      Shows the status information of scheduled tasks that are waiting to be performed, such as task ID, whether the task is enabled, previous running time, and next running time.
    • Running table
      Shows the status information of tasks that are currently being performed, such as task ID, time when the task was started, and engine status.
    • Completed table
      Shows the status information of tasks that have already been performed, such as task ID, time when the task was completed, whether or not the task was successfully performed, result files, and error messages.
  • Tasks that are performed in the Run, Advanced Run or Background Run mode
    • Background Tasks table
      Shows the status information of the tasks submitted using the Run, Advanced Run, or Background Run mode, such as report path and name, catalog path and name, running format, time when the task was started/completed, time elapsed since the task was performed, and the status of the task.

To access a specific table, in the Logi Report Server console select My Tasks on the system toolbar, then select the corresponding tab. You can also use URL commands to directly open a task table.

My Tasks Page

The following shows the columns that are contained in each table in detail.

Scheduled table

The Scheduled table consists of the following columns:

Column Description
Schedule Name The name of the schedule task.
Task ID The internal ID for this task, which is a unique time stamp.
Report The report path, name and its status.
Report Tabs The names of the report tabs in the report that are included in this task.
Next Run Time The next scheduled time for when this task is to be performed.
Last Run Time The last scheduled time this task was performed.
Task Type The type of task, such as Versioning System, File System, E-mail, or Printer.
Is Enabled Shows whether this task is enabled. Can be Enabled or Disabled.
Is Successful Shows whether or not the last running of this task was successfully performed. The value true means that the last running was performed successfully and false means the task failed. If the column is empty, the task has not been run before.
Catalog The catalog path and name that the report belongs to.
Launch Type The way in which this task is executed, such as Repeatedly or One Time.
Requester The user who submitted this task.

Running table

The Running table consists of the following columns:

Column Description
Schedule Name The name of the scheduled task.
Task ID The internal ID for this task (a unique time stamp).
Report The report path and name.
Report Tabs The names of the report tabs in the report that are included in this task.
Start Time The time when this task was started.
Task Type The type of the task, such as Versioning System, File System, E-mail, or Printer.
Catalog The catalog path and name that the report belongs to.
Launch Type The way in which this task is executed, such as Repeatedly, One Time, or Instant.
Requester The user who submitted this task.
Parameter File The parameter file name. You can select the underlined file name to view the parameter values.
Parameters The list of parameter values according to the size specified.

To specify the size, select Preferences on the task bar, then in the Preferences dialog box, set a value for the Parameter Display Size option as required.

Engine Status The current status of Logi Report Engine, such as record fetching, grouping, memory paging, and engine initializing.

Completed table

The Completed table consists of the following columns:

Column Description
Schedule Name The name of the scheduled task.
Task ID The internal ID for this task (a unique time stamp).
Is Successful Shows whether this task was successfully performed. The value true means that the task was performed successfully and false that the task failed.
Report The report path and name.
Report Tabs The names of the report tabs in the report that are included in this task.
Completed Time The time when this task was completed.
Task Type The type of task, such as Versioning System, File System, E-mail, or Printer.
Catalog The catalog path and name that the report belongs to.
Launch Type The way in which this task is executed, such as Repeatedly, One Time, or Instant.
Requester The user who submitted this task.
Parameter File The parameter file name. You can select the underlined file name to view the parameter values.
Parameters The list of parameter values according to the size specified.

To specify the size, select Preferences on the task bar, then in the Preferences dialog box, set a value for the Parameter Display Size option as required.

Engine Status The status of Logi Report Engine when the task was completed, such as record fetching, grouping, memory paging, and engine initializing. When a task fails to perform, here you can see the status of the engine at the time of the error.
Error Message The error message for when the task failed to complete the task.
Result Files The report result file names and links to the report result files.

Background Tasks table

Logi Report Server provides a background running system, which shows the status information of tasks submitted using the Run, Advanced Run, or Background Run mode.

The records saved in the background running system are cleared under the following conditions:

  • Logi Report Server is restarted.
  • The maximum time limit specified for the report result life is reached. By default it is 86400 seconds (24 hours).
  • The maximum time limit specified for the interval between a user logout and login is reached. By default it is 300 seconds.
  • If the number of records exceeds the number specified for the background task list (by default it is 100 records), the latest 100 records will be retained.

The Background Tasks table consists of the following columns:

Column Description
Report Tabs The names of the report tabs in the report that are included in this task.
Result The result in the format in which the report ran. You can select the format link to open the report result. For a Page Report result, the task is removed automcatically once the result is opened.
Report The path and name of the report that the report tabs belong to.
Start Time The time when this task was started.
Finish Time The time when this task was completed.
Status The status of the task.
Catalog The path and name of the catalog that the report belongs to.
Elapse Time The time elapsed since the start of this task.
Catalog Version Number The version number of the catalog that the report belongs to.
Report Version Number The version number of the report.
Parameters The parameters of the report.
Cancelled Shows whether the task is cancelled or not.

Tips:

  • You can customize the columns shown in the tables as follows: switch to the table, select Preferences on the task bar of the My Tasks page (for the Scheduled table, select Tools > Preferences on the task bar), select the corresponding items in the Preferences dialog box, then select OK to apply the settings.
  • You can make the records in each table sorted ascending or descending by any column title. To do this, select on the underlined column title on which you want the records to be sorted, you will then find a sort icon appear right after the title, showing the sort direction.
  • You can use the Search box above each of the tables to search for the desired tasks in this table. Type the text of the schedule names or report tabs in the box and the tasks containing the matched text will be listed.

Back to top

Managing Tasks in the Task Tables

You can manage tasks in the task tables according to your requirements. For example, you can run a scheduled task immediately, or stop a running task.

Management operations that are common to the task tables

If you want to Then do
Select a task Select in the row that the task is in.
Select multiple tasks Select the rows that the tasks are in while holding the Ctrl button.
Remove a task
  • Select the task row and select Edit > Delete on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Delete from the shortcut menu.
  • Put the mouse pointer over the task row and select the Delete button Delete button on the floating toolbar.

Management operations for the Scheduled table

If you want to Then do
Create a new schedule task Select New Schedule on the task bar of the My Tasks page, then in the New Schedule dialog box, specify how to create the task: by selecting a report or by importing a script file.
Run a task immediately
  • Select the task row and select Run on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Run from the shortcut menu.
  • Put the mouse pointer over the task row and select the Run button Run button on the floating toolbar.
Duplicate a task
  • Select the task row and click Edit > Copy on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Copy from the shortcut menu.
  • Put the mouse pointer over the task row and select the Copy button Copy button on the floating toolbar.
Enable a task
  • Select the task row and select Edit > Enable on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Enable from the shortcut menu.
  • Put the mouse pointer over the task row and select the Enable button Enable button on the floating toolbar.
Disable a task
  • Select the task row and select Edit > Disable on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Disable from the shortcut menu.
  • Put the mouse pointer over the task row and select the Disable button Disable button on the floating toolbar.

The disabled task will not be performed until you enable it again.

Export a schedule task to a script file on disk See Importing and Exporting Schedule Tasks for details.
Import a script file saved on disk to create a schedule task See Importing and Exporting Schedule Tasks for details.

Notes:

  • You can perform the Run action on a disabled scheduled task.
  • When copying a disabled scheduled task or exporting it to script, the disabled state will not be included since it is not a property of the task.

Management operations for the Running table:

If you want to Then do
Stop a task that is running
  • Select the task row and select Stop on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Stop from the shortcut menu.
  • Put the mouse pointer over the task row and select the Stop button Stop button on the floating toolbar.

Note: When you stop a bursting task from running, some sub tasks in the bursting task may have already been finished, so some results may have been sent to some recipients.

View parameter information Refer to the Parameters column of the Running table.

Management operations for the Completed table

If you want to Then do
View detailed task run information
  • Select the schedule name of the task.
  • Select the task row and select Edit > Details on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Details from the shortcut menu.
  • Put the mouse pointer over the task row and select the Details button Details button on the floating toolbar.

The Result Details table is then displayed which contains the following columns:

Column Description
Task ID Displays the task ID.
Report Displays on which report the task is based.
Publish Type Displays the publish types of the task.
Result Displays the results of the task. For results of the To Version publish type, you can select the format links to view the results. See Viewing Results Scheduled to Version for more information.
Is Successful Displays whether or not the task is successful.
Details Displays the locations of the results.
View parameter information Refer to the Parameters column of the Completed table.

Management operations for the Background Tasks table

If you want to Then do
Stop a running task submitted using Background Run mode
  • Select the task row and select Edit > Stop on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Stop from the shortcut menu.
  • Put the mouse pointer over the task row and select the Stop button Stop button on the floating toolbar.
Restart a stopped task
  • Select the task row and select Edit > Restart on the task bar of the My Tasks page.
  • Select the task row, right-click in the row and select Restart from the shortcut menu.
  • Put the mouse pointer over the task row and select the Restart button Restart button on the floating toolbar.
View parameter information Refer to the Parameters column of the Background Tasks table.

Back to top

Task-Level Timeout for Advanced Run and Schedule Tasks

A task-level timeout mechanism is introduced in order to avoid the never-finished running tasks consuming server resources and thus decreasing the server performance. With the mechanism, you can specify a time duration for a task, and ask Logi Report Server to cancel the task or to notify you or someone else of the task status via e-mail if the task has not yet finished running when the task duration is up. To do this:

  1. Do either of the following to enable the task-level timeout mechanism.
    • In the server.properties file located in <install_root>\bin, set the task.duration.enable property to true.
    • In the server console, point to Administration on the system toolbar, and then select Configuration > Advanced from the drop-down menu. In the Advanced page, select the Enable Task Duration option.
  2. Set task duration check frequency. By default, Logi Report Server checks task duration every 30 seconds. The period value can be reset by either of the following:
    • In the server.properties file, set the task.duration.check_cycle property.
    • In the Administration > Configuration > Advanced page, set the Status Refresh Interval option.

    The period value must be an integer greater than 0. Since task duration check frequency affects server performance, it is recommended that you set the value according to your system environment.

  3. Use the Duration tab in the Advanced Run or Schedule dialog box to specify task duration.

    Duration tab

    1. In the Timeout text box, specify the time limit for when the task can run before notifying of the timeout or canceling the task.
    2. If you want to notify someone of the task status if the task has not yet finished running when the task duration is up, select Notify by e-mail after the specified time and specify the mail address in the Mail To text box.
    3. If you want Logi Report Server to cancel the task when the task duration is up but the task is not finished yet, select Cancel the task after the specified time.
  4. Submit the task.

Then, when the specified task duration is up but the task has not finished running,

  • For an Advanced Run task
    • If you have specified to have server cancel the task when the task duration is up, the task will be cancelled automatically, however a record for the task will be still remained in the Background Tasks table of the My Tasks page, shown with a sign of cancellation.
    • In the Duration tab, if you haven't selected the option Cancel the task after the specified time, the task will be switched to run in background mode when the task duration is up, in which case, you can choose to cancel the task manually. To do this, in the Background Tasks table,
      • Select the task row and click Edit > Delete on the task bar of the My Tasks page.
      • Select the task row, right-click in the row and select Delete from the shortcut menu.
      • Put the mouse pointer over the task row and select the Delete button Delete button on the floating toolbar.
  • For a Schedule task
    • If you have specified to have server cancel the task when the task duration is up, the task will be cancelled automatically, and a task completed record will be added in the Completed table of the My Tasks page, with the Is Successful status shown as No.
    • In the Duration tab, if you haven't selected the option Cancel the task after the specified time, the task will still be listed in the Running table of the My Tasks page when the task duration is up. Then, if you want to cancel the task manually, in the Running table,
      • Select the task row and select Stop on the task bar of the My Tasks page.
      • Select the task row, right-click in the task row and select Stop from the shortcut menu.
      • Put the mouse pointer over the task row and select the Stop button Stop button on the floating toolbar.

Notes:

  • Logi Report Server may not cancel a task right after the specified task duration is up due to check frequency.
  • It is recommended that the task duration is set to about five times of the required time for finishing running the task.

Back to top

BackPrevious Topic Next TopicNext