mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-05 22:56:55 +01:00
* knowledge(performance): add job queue reliability guidance * Address Job Queue review feedback * Address Job Queue routing review feedback * Encode job queue conflict in fixtures
23 lines
No EOL
672 B
AL
23 lines
No EOL
672 B
AL
codeunit 50115 "Scheduled Task Duplicate Good"
|
|
{
|
|
internal 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;
|
|
} |