cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Setting SMQ2 queue status manually

bshafiqrahman
Discoverer
0 Kudos
528

Hello experts, I am registering a custom function in BACKGROUND TASK as a queue in SMQ2. The scheduler picks it and executes it. Inside the custom function I want to check a lock on a object and if the object is locked then i want the put the queue back to RETRY status so that scheduler can retry after some time. How to put the queue to RETRY status from my function? Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Daniil
Active Contributor
0 Kudos

Hi you can do it with

CALL FUNCTION 'RESTART_OF_BACKGROUNDTASK'.

bshafiqrahman
Discoverer
0 Kudos

Thank you. It works.

Answers (0)