diff --git a/background-methods/calling-methods-with-delay.rst b/background-methods/calling-methods-with-delay.rst index 9f62f0b..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>` 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. +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# @@ -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.