No video

Sessions, Tasks or Job Queue, what to use in AL and Business Central?

  Рет қаралды 3,485

Erik Hougaard

Erik Hougaard

Күн бұрын

Find more information at my blog www.hougaard.com or follow me on / ehougaard
Source code can be found here: github.com/hou...

Пікірлер: 21
@hadtogiveyouacareertodestroyit
@hadtogiveyouacareertodestroyit Жыл бұрын
Nice one Eric, it would be really awesome if you do videos for all of them.
@TheJulietteCharlie
@TheJulietteCharlie Жыл бұрын
It’s all about the specific requirement in a particular use case. You shouldn’t use background flows because you can. As programmer you must be aware, that you leave flow of control on a piece of code. If your function (and it’s callers) do not rely on results, then go for startsession. TaskScheduler gives by design feedback (Callbacks) of the result. JobQueue does by throwing events you can subscribe. And JobQ sends failures to user‘s Role Center if setup adequately. JobQ does retry automatically, if setup. But on failures you cannot unlike TaskScheduler define a certain Codeunit you want to address for post processings or clean ups. I got issues with TaskScheduler on different server instances on a database.
@eduschimu
@eduschimu Жыл бұрын
Good video! I would be interested in a deep dive of StartSession
@Stefan_21
@Stefan_21 6 ай бұрын
Hi Erik! I would like to see a video about SessionStart(). Especially about proper error handling when using it.
@davidhofschneider7842
@davidhofschneider7842 Жыл бұрын
Please deep dive to all of these options
@thomastarp
@thomastarp Жыл бұрын
Agreed 😊
@GooseMugs
@GooseMugs Жыл бұрын
Erik you're videos are always bred ymer! Have you ever run into issues with the rate limitations of BC's API's? (i.e 600 req/min) If so what have you done to mitigate that?
@erproerpro903
@erproerpro903 Жыл бұрын
Good stuff Erik!
@robertkirsten2990
@robertkirsten2990 Жыл бұрын
Hi Eric, great video! How did you open the layer which tells you what param to put next into the function call at 5:33? I am desparately in need of this. :)
@Hougaard
@Hougaard Жыл бұрын
Shift+ctrl+space
@sowmyasridhar77
@sowmyasridhar77 Жыл бұрын
Nice video Eric! We are using BC 22 On Prem. We are new to BC (still in the implementation stage). We have custom reports and codeunits scheduled in the job scheduler. I have set to run once in 5 minutes. It is not triggering the job to run automatically. It works fine when I click "Run Once (foreground)". Do we need to change anything in the sever (NASStartupCodeunit and NASStartupMethod)? I don't know if we are missing anything. Do we need a separate NAS service like NAV 2016 (we don't have a separate NAS Service in BC)?
@Hougaard
@Hougaard Жыл бұрын
You don't need a separate nas service with bc22. "NAS" is not longer used.
@sowmyasridhar77
@sowmyasridhar77 Жыл бұрын
@@Hougaard Thank you Erik. I am not sure what am I missing. It is not running automatically. Do I need to specify /update any parameters in the Server?
@Hougaard
@Hougaard Жыл бұрын
Make sure your service tier is configured for background sessions and tasks: learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/configure-server-instance#PBT
@joy9497
@joy9497 Жыл бұрын
how does microsoft manage the resources since BC cloud has a fixed rate users and if we are using sessions it's going to use more resources to compute? is there also a duration limit per session which stops the session/process if they exceed the duration limit? Great video by the way.
@Hougaard
@Hougaard Жыл бұрын
8 hours.
@radojkica
@radojkica Жыл бұрын
@@Hougaard In my case, I get a timeout after 6 hours. I have a report which takes 10 hours to finish. When the user runs it, I create 3 job queues in the background with the use of the Parameter String field to pass 3 different filters. What would you recommend in this situation? The report cannot be optimized, meaning it cannot be finished in one session.
@RubenParente
@RubenParente Жыл бұрын
Hi Eric, i know this is not the best video for it. But i would like to ask you if you know something about microsoft killing BC onpre. wht are your thoughts about it. thank you
@Hougaard
@Hougaard Жыл бұрын
They're not, but the onpremise version will continue to be the lesser version. When people stop buying it they will stop selling it... But they still sell GP so....
Finding duplicates with AL in Business Central
17:04
Erik Hougaard
Рет қаралды 1,6 М.
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 17 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 32 МЛН
Please Help Barry Choose His Real Son
00:23
Garri Creative
Рет қаралды 23 МЛН
Bony Just Wants To Take A Shower #animation
00:10
GREEN MAX
Рет қаралды 7 МЛН
What all Customers want: A Job Queue Restarter
11:32
Erik Hougaard
Рет қаралды 2,1 М.
Collectible Errors in AL and Business Central
26:46
Business Central Musings
Рет қаралды 144
Task Scheduler - Everything You Need to Know about Job Queue - Part 1.
32:42
Print a PDF from Business Central, that's easy, isn't it?
29:17
Erik Hougaard
Рет қаралды 2 М.
Understanding Cloud Tasks for Async Tasks - Jonathan Lin
42:55
Google Developers Space
Рет қаралды 16 М.
I have never seen Business Central integrate with Excel like this!
18:58
Blue Food VS Red Food Emoji Mukbang
00:33
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 17 МЛН