From c06a82c0856fe277ab8514252491890ecdc56655 Mon Sep 17 00:00:00 2001 From: Rob Hux Date: Thu, 23 Apr 2015 11:51:45 -0400 Subject: [PATCH 1/2] Update calling-methods-with-delay.rst The second paragraph is a little hard to read. I think you mean to talk about changing the polling interval of the server. If I am incorrect in my assumption, please ignore this request --- background-methods/calling-methods-with-delay.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/background-methods/calling-methods-with-delay.rst b/background-methods/calling-methods-with-delay.rst index 9f62f0b..687030f 100644 --- a/background-methods/calling-methods-with-delay.rst +++ b/background-methods/calling-methods-with-delay.rst @@ -9,7 +9,7 @@ Sometimes you may want to postpone a method invocation, for example, to send an () => Console.WriteLine("Hello, world"), TimeSpan.FromDays(1)); -:doc:`Hangfire Server <../background-processing/processing-background-jobs>` periodically check the schedule to enqueue scheduled jobs to their queues, allowing workers to perform them. By default, check interval is equal to ``15 seconds``, but you can change it, just pass the corresponding option to the ``BackgroundJobServer`` ctor. +:doc:`Hangfire Server <../background-processing/processing-background-jobs>` will periodically check the various job queues. The default intreval for this check is ``15 seconds``, but you can change it. To do this pass the corresponding option to the ``BackgroundJobServer`` ctor. .. code-block:: c# @@ -20,7 +20,7 @@ Sometimes you may want to postpone a method invocation, for example, to send an var server = new BackgroundJobServer(options); -If you are processing your jobs inside an ASP.NET application, you should be warned about some setting that may prevent your scheduled jobs to be performed in-time. To avoid that behavour, perform the following steps: +If you are processing your jobs inside an ASP.NET application, you should be warned that some settings (i.e. increasing the queue polling) may prevent your scheduled jobs from being performed in-time (before the ASP.Net thread spins down). To avoid this behavour, perform the following steps: * `Disable Idle Timeout `_ – set its value to ``0``. -* Use the `application auto-start `_ feature. \ No newline at end of file +* Use the `application auto-start `_ feature. From 54da97c45a2da0a4626ed8fd2c3026c35fd57dd6 Mon Sep 17 00:00:00 2001 From: Rob Hux Date: Thu, 23 Apr 2015 15:17:34 -0400 Subject: [PATCH 2/2] Update calling-methods-with-delay.rst changed the second paragraph to express my new understanding of what is happening. --- background-methods/calling-methods-with-delay.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background-methods/calling-methods-with-delay.rst b/background-methods/calling-methods-with-delay.rst index 687030f..ce2ba4e 100644 --- a/background-methods/calling-methods-with-delay.rst +++ b/background-methods/calling-methods-with-delay.rst @@ -9,7 +9,7 @@ Sometimes you may want to postpone a method invocation, for example, to send an () => Console.WriteLine("Hello, world"), TimeSpan.FromDays(1)); -:doc:`Hangfire Server <../background-processing/processing-background-jobs>` will periodically check the various job queues. The default intreval for this check is ``15 seconds``, but you can change it. To do this pass the corresponding option to the ``BackgroundJobServer`` ctor. +Delayed jobs are placed in a separate set than message jobs. The :doc:`Hangfire Server <../background-processing/processing-background-jobs>` periodically checks this set to see if their are any jobs to be placed onto a message queue. If their are, the Server removes the job from the set and sends it to the appropriate queue. The default interval for this periodic check is ``15 seconds``, but you can change it. To do this pass the corresponding option to the ``BackgroundJobServer`` ctor. .. code-block:: c#