Skip to main content

Viewing running OPC jobs and managing them

in General Issues
Authors list
Опубликованный: 18 июл. 2023 г.|Last updated: 18 июл. 2023 г.

How to view running tasks inthe OPCCopy link to How to view running tasks inthe OPC to clipboard

When a task is created or ran in the OPC, a job is created for it within the instance's database. The jobs run sequentially and queued jobs will not run whilst another job is currently running.

GUICopy link to GUI to clipboard

You can view the running tasks within the OPC GUI by clicking on the tasks icon in the top right of the OPC GUI.

image.png

Clicking on the down arrow will show more details for the tasks that are running.

image.png

Clicking on the running or queued task in the list will take you to the task page where you can view the status, review the progress and download the logs for the specific task that was selected

image.png

CLICopy link to CLI to clipboard

You can also view the currently running tasks on the command line with:

opc jobs in-progress list
copy

This will output a table giving you the id, affected instance (if applicable), the command that was run and the time the task was started

image.png

How to manage running tasks in the OPCCopy link to How to manage running tasks in the OPC to clipboard

Currently you cannot cancel running tasks in the GUI, this can only be done on the command line.

Warning

Cancelling a running task cause issues with your OPC / instance. Only cancel a running task if you know it will not cause any issues to your live OPC / instances

CLICopy link to CLI to clipboard

To cancel a running task you first need to get the associated id for it.

opc jobs in-progress list
copy

image.png

The id that we need to cancel the job is the 'Id' field, located in the first column.

opc jobs in-progress remove --id
copy

For the previous example, to cancel the running job we would use:

image.png

This will prompt you to confirm that you want to cancel the job, and after confirming you wish to remove the job you can run the list command again to confirm that it has been stopped.

image.png
ПолезноUnhelpful
next pageAccessing service information pages
previous pageSeeing "Failed to delete backup" when trying to remove backups in the OPC

Please log in or register to submit a comment.