knowledge(performance): add job queue reliability guidance

This commit is contained in:
demiliani 2026-09-01 09:09:01 +02:00
parent 85ceaaa1a4
commit dbed0dc081
20 changed files with 488 additions and 2 deletions

View file

@ -0,0 +1,23 @@
codeunit 50115 "Scheduled Task Duplicate Good"
{
procedure EnsureCleanupTask()
var
TaskId: Guid;
StoredTaskId: Text;
begin
if IsolatedStorage.Get('CleanupTaskId', DataScope::Company, StoredTaskId) then
if Evaluate(TaskId, StoredTaskId) then
if TaskScheduler.TaskExists(TaskId) then
exit;
TaskId := TaskScheduler.CreateTask(Codeunit::"Scheduled Cleanup Work Good", 0, true, CompanyName());
IsolatedStorage.Set('CleanupTaskId', Format(TaskId), DataScope::Company);
end;
}
codeunit 50116 "Scheduled Cleanup Work Good"
{
trigger OnRun()
begin
end;
}