bcquality/microsoft/knowledge/performance/store-scheduled-task-id-to-avoid-duplicate-tasks.bad.al
Stefano Demiliani 8c26ba4e76
Some checks are pending
Validate knowledge index / validate-index (push) Waiting to run
Validate AL review fixtures / validate-review-fixtures (push) Waiting to run
Validate frontmatter and structure / validate (push) Waiting to run
Add Job Queue reliability and scheduling guidance (#148)
* knowledge(performance): add job queue reliability guidance

* Address Job Queue review feedback

* Address Job Queue routing review feedback

* Encode job queue conflict in fixtures
2026-09-14 12:44:30 +02:00

15 lines
No EOL
358 B
AL

codeunit 50115 "Scheduled Task Duplicate Bad"
{
procedure EnsureCleanupTask()
begin
// Every call creates another task for the same cleanup work.
TaskScheduler.CreateTask(Codeunit::"Scheduled Cleanup Work Bad", 0, true, CompanyName());
end;
}
codeunit 50116 "Scheduled Cleanup Work Bad"
{
trigger OnRun()
begin
end;
}