The task might remain being executed when information inconsistency of an async task under execution occurs between the database and AP server.

 
[Symptom]
The task might remain being executed when information inconsistency of an async task under execution occurs between the database and AP server.
Subsequent tasks will never be executed if this event happens in a serial queue. 

[Conditions]
The symptom occurs when all the following conditions are fulfilled.
・ Using 2015 Spring or later versions
・ Cases where an execution process disappears during the task execution for the reason such as: 
    ・ OS shutdown
    ・ Process termination order via OS
    ・ Application termination by non-regular measures, and the like

[Handling methods (for 2016 Spring or earlier versions)]
Task cannot be completed successfully when trying to terminate a task on the task detail screen, with the following error message showing up.
 
“The task does not exist. The process might already be completed.”

In this case, directly operate the system database to deal with the problem.
 
update im_async_task_info
set status = 'wait'
where message_id = '{message_id}'
and status = 'processing'

Specify the task message ID of a task which remains executed to {message_id}.
The task under execution will be re-registered in the head of a queue to be re-executed.
Subsequent tasks are to be executed serially after the re-execution.
 
[Handling methods (for 2016 Summer or later versions)]
Complete the task on the task detail screen.
The task can be completed even though the following warning message is shown up.
“The task does not exist. The process might already be completed.”
Specify “YES” to “Re-register in the head of the queue” when re-execution is necessary.

-- Target -----------------------------------------------------------------------
iAP/Accel Platform
---------------------------------------------------------------------------------

FAQID:568
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk