Scheduler maintenance REST API is designed to provide the possibility to interfere when running blueriq on single or multi-nodes environments.
This REST API must be used when:
These two endpoint are described below:
Cancel started tasks is the mechanism of recovering the abandoned tasks that were not completed due to unexpected runtime nodes shutdowns.
Blueriq provides two ways for enabling this mechanism:
Setting the property blueriq.processengine.cancel-started-tasks to true when running in a multi-node environment might cause unexpected behavior. For example while the cancellation of started tasks triggered on one runtime node is running, a specific task could be still in progress on another runtime node and it might be reopen.
When unexpected runtime nodes shutdowns occur:
|
|
By calling this endpoint, all started manual tasks across all nodes will be reset to open and all started automatic tasks will executed.
This endpoint is needed in case you already ran a process enabled project and find out that you have to rename the model name and/or version. Renaming the model in studio doesn't change the cases and jobs references to the model in the database; they still use the old, previous model. The result is that the previously created timers cannot be used anymore, priority algorithm won't be called anymore and tasks with expiration will not expire anymore. To get it back working normally the application name and/or version have to be changed to the new name and/or version (as provided in the studio model) in the database. This can be done by using this endpoint.
By calling one of these endpoint, the application ids for cases matching the application name from the url will be updated with new values. Every job registered to these cases will be updated as well.
|
Validations
Steps:
Request examples:
Update application name
The application ids, for the cases with the current application id "export-TestOldProject:0.0-Trunk", are updated to "export-TestNewProject:0.0-Trunk".
|
Update application version
The application ids, for the cases with the current application id "export-TestOldProject:0.0-Trunk", are updated to "export-TestOldProject:0.1-Trunk".
|
Update application id (both name and version)
The application ids, for the cases with the current application id "export-TestOldProject:0.0-Trunk", are updated to "export-TestNewProject:0.1-Trunk".
|
The application id, for the case with the current application id "export-TestOldProject:0.0-Trunk" and case id 1, is updated to "export-TestNewProject:0.0-Trunk".
|
The application id, for the case with the current application id "export-TestOldProject:0.0-Trunk" and case id 1, is updated to "export-TestOldProject:0.1-Trunk".
|
The application id, for the case with the current application id "export-TestOldProject:0.0-Trunk" and case id 1, is updated to "export-TestNewProject:0.1-Trunk".
|
The following steps should be followed for using this endpoint:
Access Runtime Swagger Interface:
http://<server>:<port>/<runtime>/api/v1/docs/index.html |