We are quite new to NAV 2017. We are coming from 2009. The Job Queue is a cool feature, but one thing I don't understand.
We want to use the Job Queue to run Background-Jobs (formerly NAS-Jobs). We want them to be started with different technical Users with only the neccessary permissions.
The problem is that the user that runs the queue has to push the button "Ready" in the Job Queue Entry Page.
And this every time the queue stops or need to be restarted/rescheduled.
Is there any possibility to change it?
Sorry for my bad english
Answers
If a job has to be executed more often, you can check "run on monday" etc. and play with "No. of minutes between run"
Another option would be to enable this again by code.
We tried to solve this using Events, but there is no Event in our version which would help. There is an Event on COD453 called "OnBeforeScheduleTask", it would be nice to have the event "OnAfterScheduleTask", which would allow us to update the User ID field to "USERID" without modifying the standard codeunits.
Alas, there is no event so we had to resort to modifying the codeunit to update the User ID fields after the task has been scheduled. Hope this helps.
IF Rec."User ID" <> 'domain\user' THEN BEGIN
Rec."User ID" := 'domain\user';
Rec.MODIFY(FALSE);
END;
This will modify the Job Queue Entry, but the Scheduled Task will be left with an incorrect User ID.
It works for me.
xStepa