Hello,
I have an issue with the Job queues.
In fact in case of error (exple : parameter missing or non authorized validation dates ) the status of the Job still "In Process" after job is finished, and is not reset to "Ready".
Also in case of error, even if the missing parameters are corrected the job still give the same last Error, i have to run manually the job for once, then next time it runs correctly with the NAS.
Does any one noticed this problem? Thanks for your help.
Best Regards.
0
Comments
I have an additionnal question about this issue :
When I see the codeunit 448 (function 'Handlerequest' (standard)):
WasSuccess := CODEUNIT.RUN(CODEUNIT::"Job Queue Start Codeunit",JobQueueEntry);
IF WasSuccess THEN BEGIN
IF JobQueueEntry."Recurring Job" THEN BEGIN
JobQueueEntry."No. of Attempts to Run" := 0;
JobQueueEntry.Status := JobQueueEntry.Status::Ready;
IF NOT JobQueueEntry.MODIFY THEN
JobQueueEntry.INSERT;
END;
END ELSE BEGIN
IF JobQueueEntry."Maximum No. of Attempts to Run" > JobQueueEntry."No. of Attempts to Run" THEN BEGIN
JobQueueEntry."No. of Attempts to Run" := JobQueueEntry."No. of Attempts to Run" + 1;
JobQueueEntry.Status := JobQueueEntry.Status::Ready;
IF NOT JobQueueEntry.INSERT THEN
JobQueueEntry.MODIFY;
END;
I understand that even if the status is not Success (Error) the job should also be at status "Ready".
Is my understanding right ?
Thank you for your help.