+------------------------------------------------------------------------------+ | OBJECT Codeunit 453 Job Queue - Enqueue | +------------------------------------------------------------------------------+ ---------- Before (BEFORE) ---------- Codeunit 453 ---------- Function EnqueueJobQueueEntry IF DoNotScheduleTask THEN EXIT; - JobQueueEntry."System Task ID" := JobQueueEntry.ScheduleTask; - IF NOT ISNULLGUID(JobQueueEntry."System Task ID") THEN BEGIN - JobQueueEntry.Status := JobQueueEntry.Status::Ready; - JobQueueEntry.MODIFY; - END; COMMIT; END; ---------- After (AFTER) ------------------------------------------------------ IF DoNotScheduleTask THEN EXIT; + JobQueueEntry."System Task ID" := + TASKSCHEDULER.CREATETASK( + CODEUNIT::"Job Queue Dispatcher", + CODEUNIT::"Job Queue Error Handler", + TRUE, + COMPANYNAME, + JobQueueEntry."Earliest Start Date/Time", + JobQueueEntry.RECORDID); + JobQueueEntry.Status := JobQueueEntry.Status::Ready; + JobQueueEntry.MODIFY; COMMIT; END; --------------------------------------------------------------------------------
Answers
We did a quick fix by extending the filter in HasSheduledTask() (where, by the way, the name of the function is also wrong):
Not sure how this was intended to work behind the scenes, and what this fix was for, but it works for now until we get an official change.
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
Carsten
==> How To Ask Questions The Smart Way
This post is my own opinion and does not necessarily reflect the opinion or view of my employer.