NAV2017 - TaskScheduler runs task multiple times OR tasks stopped
xStepa
Member Posts: 106
Hi, we have observed strange behaviour of the TaskScheduler on NAV2017 NSTs:

Thx
- By default - periodical tasks are not rescheduling and stay in InProcess status without executing the code - probably it happens when the Task Group is set to some value.
- Hotfixed - when remove the test HasScheduledTask, it works, but the tasks are run on each NST (e.g. every 10 minutes are processed 10 times) after service restart ...

Thx
Regards
xStepa
xStepa
0
Comments
-
yes, that's the actual workaround ... but I want to spread workload.Regards
xStepa0 -
You have removed code checking if a task for a given RECORDID is already scheduled so no wonder that tasks are executed multiple times on different NSTs.
Perhaps the original problem was not with scheduling code, but somewhere else. Maybe scheduled code did not exit cleanly, maybe you should add CANCELTASK at the end of the scheduled object to make sure that scheduler session does not hang around, etc.Slawek Guzek - www.yitron.co.uk
Business Central, MS SQL Server, Wherescape RED;0 -
By default - periodical tasks are not rescheduling and stay in InProcess status without executing the code - probably it happens when the Task Group is set to some value.
On which Cumulative Update are you running NAV 2017?
We have trouble with tasks stuck on status 'InProcess' without any session active for the task too. I hope this issue is resolved in NAV 2017 CU15 (platform fix).251614 Task scheduler causes deadlocks in a multiple service scenario that causes phantom running job queue entries.
It would make sense that the current work-around suggested by Juhl works.Try having only 1 nst where TS is activated.
I would expect that the issue is resolved when you're using CU 15 or higher. I'm really curious if this is true.0 -
Hi, thanks for suggestions - we are running CU15 from the beginning ...Regards
xStepa0 -
Okay, that's a shame.. I actually hoped that the problem would be resolved in that fix.
In NAV2017 CU 16 (application) there is a change for the task scheduler too. Might be worth a try to port back this fix in your application if you haven't already.262725 Task scheduler causes a heavy locking and deadlocks in the application that makes it impossible to port job queue scheduling from Dynamics NAV 2016. Administration COD 448 TAB 4720 -
yes, will try to move to CU18 in the next few days ...Regards
xStepa0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
