BackPrevious Page Next PageNext

Managing Tasks

Accessing the task information tables

Managing tasks in the task tables

Task-level timeout for advanced run and schedule tasks

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

JReport 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 JReport 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 JReport Server, the tasks that are currently being performed, and the tasks that have already been performed.

Accessing the task information tables

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

To access a specific table, in the JReport Server console click My Tasks on the system toolbar, then click 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 click the underlined file name to view the parameter values.
Parameters The list of parameter values according to the size specified.

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

Engine Status The current status of the JReport 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 click the underlined file name to view the parameter values.
Parameters The list of parameter values according to the size specified.

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

Engine Status The status of the JReport 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

JReport 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:

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 click 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:

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 Click 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 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 click the Delete button Delete button on the floating toolbar.

Management operations for the Scheduled table

If you want to Then do
Create a new scheduled task Click New Schedule on the task bar of the My Tasks page, then in the New Schedule dialog, 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 click 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 click 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 click the Copy button Copy button on the floating toolbar.
Enable a task
  • Select the task row and click 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 click the Enable button Enable button on the floating toolbar.
Disable a task
  • Select the task row and click 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 click the Disable button Disable button on the floating toolbar.

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

Export a scheduled task to a script on disk See Importing and Exporting Scheduled Tasks for details.
Import a scheduled task from a script saved on disk See Importing and Exporting Scheduled Tasks for details.

Notes:

Management operations for the Running table:

If you want to Then do
Stop a task that is running
  • Select the task row and click 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 click 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
  • Click the schedule name of the task.
  • Select the task row and click 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 click 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 click the links to view the results. To view a page report result, necessary permissions are required. Click here 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 click 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 click the Stop button Stop button on the floating toolbar.
Restart a stopped task
  • Select the task row and click 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 click the Restart button Restart button on the floating toolbar.
View parameter information Refer to the Parameters column of the Background Tasks table.

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 JReport 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.
  2. Set task duration check frequency. By default, JReport Server checks task duration every 30 seconds. The period value can be reset by either of the following:

    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 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, check Notify by e-mail after the specified time and specify the mail address in the Mail To text box.
    3. If you want JReport Server to cancel the task when the task duration is up but the task is not finished yet, check 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,

Notes:

BackPrevious Page Next PageNext