rschmukler/agenda

View on GitHub
docs/agenda/4.x/classes/jobprocessor.html

Summary

Maintainability
Test Coverage
<!doctype html>
<html class="default no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>JobProcessor | @hokify/agenda</title>
    <meta name="description" content="Documentation for @hokify/agenda">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../assets/css/main.css">
</head>
<body>
<header>
    <div class="tsd-page-toolbar">
        <div class="container">
            <div class="table-wrap">
                <div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
                    <div class="field">
                        <label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
                        <input id="tsd-search-field" type="text" />
                    </div>
                    <ul class="results">
                        <li class="state loading">Preparing search index...</li>
                        <li class="state failure">The search index is not available</li>
                    </ul>
                    <a href="../index.html" class="title">@hokify/agenda</a>
                </div>
                <div class="table-cell" id="tsd-widgets">
                    <div id="tsd-filter">
                        <a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
                        <div class="tsd-filter-group">
                            <div class="tsd-select" id="tsd-filter-visibility">
                                <span class="tsd-select-label">All</span>
                                <ul class="tsd-select-list">
                                    <li data-value="public">Public</li>
                                    <li data-value="protected">Public/Protected</li>
                                    <li data-value="private" class="selected">All</li>
                                </ul>
                            </div>
                            <input type="checkbox" id="tsd-filter-inherited" checked />
                            <label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
                            <input type="checkbox" id="tsd-filter-externals" checked />
                            <label class="tsd-widget" for="tsd-filter-externals">Externals</label>
                            <input type="checkbox" id="tsd-filter-only-exported" />
                            <label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
                        </div>
                    </div>
                    <a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
                </div>
            </div>
        </div>
    </div>
    <div class="tsd-page-title">
        <div class="container">
            <ul class="tsd-breadcrumb">
                <li>
                    <a href="../globals.html">Globals</a>
                </li>
                <li>
                    <a href="jobprocessor.html">JobProcessor</a>
                </li>
            </ul>
            <h1>Class JobProcessor</h1>
        </div>
    </div>
</header>
<div class="container container-main">
    <div class="row">
        <div class="col-8 col-content">
            <section class="tsd-panel tsd-comment">
                <div class="tsd-comment tsd-typography">
                </div>
            </section>
            <section class="tsd-panel tsd-hierarchy">
                <h3>Hierarchy</h3>
                <ul class="tsd-hierarchy">
                    <li>
                        <span class="target">JobProcessor</span>
                    </li>
                </ul>
            </section>
            <section class="tsd-panel-group tsd-index-group">
                <h2>Index</h2>
                <section class="tsd-panel tsd-index-panel">
                    <div class="tsd-index-content">
                        <section class="tsd-index-section ">
                            <h3>Constructors</h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-constructor tsd-parent-kind-class"><a href="jobprocessor.html#constructor" class="tsd-kind-icon">constructor</a></li>
                            </ul>
                        </section>
                        <section class="tsd-index-section tsd-is-private tsd-is-private-protected">
                            <h3>Properties</h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#agenda" class="tsd-kind-icon">agenda</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#islockingonthefly" class="tsd-kind-icon">is<wbr>Locking<wbr>OnThe<wbr>Fly</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#isrunning" class="tsd-kind-icon">is<wbr>Running</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#jobqueue" class="tsd-kind-icon">job<wbr>Queue</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#jobstatus" class="tsd-kind-icon">job<wbr>Status</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#jobstolock" class="tsd-kind-icon">jobs<wbr>ToLock</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#localqueueprocessing" class="tsd-kind-icon">local<wbr>Queue<wbr>Processing</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#lockedjobs" class="tsd-kind-icon">locked<wbr>Jobs</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#maxconcurrency" class="tsd-kind-icon">max<wbr>Concurrency</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#nextscanat" class="tsd-kind-icon">next<wbr>Scan<wbr>At</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#processevery" class="tsd-kind-icon">process<wbr>Every</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#processinterval" class="tsd-kind-icon">process<wbr>Interval</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#runningjobs" class="tsd-kind-icon">running<wbr>Jobs</a></li>
                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#totallocklimit" class="tsd-kind-icon">total<wbr>Lock<wbr>Limit</a></li>
                            </ul>
                        </section>
                        <section class="tsd-index-section ">
                            <h3>Methods</h3>
                            <ul class="tsd-index-list">
                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#enqueuejob" class="tsd-kind-icon">enqueue<wbr>Job</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#findandlocknextjob" class="tsd-kind-icon">find<wbr>And<wbr>Lock<wbr>Next<wbr>Job</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="jobprocessor.html#getstatus" class="tsd-kind-icon">get<wbr>Status</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#jobprocessing" class="tsd-kind-icon">job<wbr>Processing</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#jobqueuefilling" class="tsd-kind-icon">job<wbr>Queue<wbr>Filling</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="jobprocessor.html#lockonthefly" class="tsd-kind-icon">lock<wbr>OnThe<wbr>Fly</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="jobprocessor.html#process" class="tsd-kind-icon">process</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#runorretry" class="tsd-kind-icon">run<wbr>OrRetry</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="jobprocessor.html#shouldlock" class="tsd-kind-icon">should<wbr>Lock</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="jobprocessor.html#stop" class="tsd-kind-icon">stop</a></li>
                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="jobprocessor.html#updatestatus" class="tsd-kind-icon">update<wbr>Status</a></li>
                            </ul>
                        </section>
                    </div>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group ">
                <h2>Constructors</h2>
                <section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class">
                    <a name="constructor" class="tsd-anchor"></a>
                    <h3>constructor</h3>
                    <ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">new <wbr>Job<wbr>Processor<span class="tsd-signature-symbol">(</span>agenda<span class="tsd-signature-symbol">: </span><a href="agenda.html" class="tsd-signature-type">Agenda</a>, maxConcurrency<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, totalLockLimit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, processEvery<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="jobprocessor.html" class="tsd-signature-type">JobProcessor</a></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L90">src/JobProcessor.ts:90</a></li>
                                </ul>
                            </aside>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>agenda: <a href="agenda.html" class="tsd-signature-type">Agenda</a></h5>
                                </li>
                                <li>
                                    <h5>maxConcurrency: <span class="tsd-signature-type">number</span></h5>
                                </li>
                                <li>
                                    <h5>totalLockLimit: <span class="tsd-signature-type">number</span></h5>
                                </li>
                                <li>
                                    <h5>processEvery: <span class="tsd-signature-type">number</span></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <a href="jobprocessor.html" class="tsd-signature-type">JobProcessor</a></h4>
                        </li>
                    </ul>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group tsd-is-private tsd-is-private-protected">
                <h2>Properties</h2>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="agenda" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> agenda</h3>
                    <div class="tsd-signature tsd-kind-icon">agenda<span class="tsd-signature-symbol">:</span> <a href="agenda.html" class="tsd-signature-type">Agenda</a></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L93">src/JobProcessor.ts:93</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="islockingonthefly" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> is<wbr>Locking<wbr>OnThe<wbr>Fly</h3>
                    <div class="tsd-signature tsd-kind-icon">is<wbr>Locking<wbr>OnThe<wbr>Fly<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L86">src/JobProcessor.ts:86</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="isrunning" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> is<wbr>Running</h3>
                    <div class="tsd-signature tsd-kind-icon">is<wbr>Running<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L88">src/JobProcessor.ts:88</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="jobqueue" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> job<wbr>Queue</h3>
                    <div class="tsd-signature tsd-kind-icon">job<wbr>Queue<span class="tsd-signature-symbol">:</span> <a href="jobprocessingqueue.html" class="tsd-signature-type">JobProcessingQueue</a><span class="tsd-signature-symbol"> = new JobProcessingQueue(this.agenda)</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L78">src/JobProcessor.ts:78</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="jobstatus" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> job<wbr>Status</h3>
                    <div class="tsd-signature tsd-kind-icon">job<wbr>Status<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L19">src/JobProcessor.ts:19</a></li>
                        </ul>
                    </aside>
                    <div class="tsd-type-declaration">
                        <h4>Type declaration</h4>
                        <ul class="tsd-parameters">
                            <li class="tsd-parameter-index-signature">
                                <h5><span class="tsd-signature-symbol">[</span>name: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-symbol">{ </span>locked<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>running<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span></h5>
                            </li>
                        </ul>
                    </div>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="jobstolock" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> jobs<wbr>ToLock</h3>
                    <div class="tsd-signature tsd-kind-icon">jobs<wbr>ToLock<span class="tsd-signature-symbol">:</span> <a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L84">src/JobProcessor.ts:84</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="localqueueprocessing" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> local<wbr>Queue<wbr>Processing</h3>
                    <div class="tsd-signature tsd-kind-icon">local<wbr>Queue<wbr>Processing<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L23">src/JobProcessor.ts:23</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="lockedjobs" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> locked<wbr>Jobs</h3>
                    <div class="tsd-signature tsd-kind-icon">locked<wbr>Jobs<span class="tsd-signature-symbol">:</span> <a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L82">src/JobProcessor.ts:82</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="maxconcurrency" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> max<wbr>Concurrency</h3>
                    <div class="tsd-signature tsd-kind-icon">max<wbr>Concurrency<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L94">src/JobProcessor.ts:94</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="nextscanat" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> next<wbr>Scan<wbr>At</h3>
                    <div class="tsd-signature tsd-kind-icon">next<wbr>Scan<wbr>At<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Date</span><span class="tsd-signature-symbol"> = new Date()</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L76">src/JobProcessor.ts:76</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="processevery" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> process<wbr>Every</h3>
                    <div class="tsd-signature tsd-kind-icon">process<wbr>Every<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L96">src/JobProcessor.ts:96</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="processinterval" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> <span class="tsd-flag ts-flagOptional">Optional</span> process<wbr>Interval</h3>
                    <div class="tsd-signature tsd-kind-icon">process<wbr>Interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">typeof </span><span class="tsd-signature-type">setInterval</span><span class="tsd-signature-symbol">&gt;</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L90">src/JobProcessor.ts:90</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="runningjobs" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> running<wbr>Jobs</h3>
                    <div class="tsd-signature tsd-kind-icon">running<wbr>Jobs<span class="tsd-signature-symbol">:</span> <a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L80">src/JobProcessor.ts:80</a></li>
                        </ul>
                    </aside>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
                    <a name="totallocklimit" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> total<wbr>Lock<wbr>Limit</h3>
                    <div class="tsd-signature tsd-kind-icon">total<wbr>Lock<wbr>Limit<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                    <aside class="tsd-sources">
                        <ul>
                            <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L95">src/JobProcessor.ts:95</a></li>
                        </ul>
                    </aside>
                </section>
            </section>
            <section class="tsd-panel-group tsd-member-group ">
                <h2>Methods</h2>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
                    <a name="enqueuejob" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> enqueue<wbr>Job</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
                        <li class="tsd-signature tsd-kind-icon">enqueue<wbr>Job<span class="tsd-signature-symbol">(</span>job<span class="tsd-signature-symbol">: </span><a href="job.html" class="tsd-signature-type">Job</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L189">src/JobProcessor.ts:189</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Internal method that adds jobs to be processed to the local queue</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>job: <a href="job.html" class="tsd-signature-type">Job</a></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
                    <a name="findandlocknextjob" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> find<wbr>And<wbr>Lock<wbr>Next<wbr>Job</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
                        <li class="tsd-signature tsd-kind-icon">find<wbr>And<wbr>Lock<wbr>Next<wbr>Job<span class="tsd-signature-symbol">(</span>jobName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, definition<span class="tsd-signature-symbol">: </span><a href="../interfaces/ijobdefinition.html" class="tsd-signature-type">IJobDefinition</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">&gt;</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L274">src/JobProcessor.ts:274</a></li>
                                </ul>
                            </aside>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>jobName: <span class="tsd-signature-type">string</span></h5>
                                </li>
                                <li>
                                    <h5>definition: <a href="../interfaces/ijobdefinition.html" class="tsd-signature-type">IJobDefinition</a></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol">&gt;</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="getstatus" class="tsd-anchor"></a>
                    <h3>get<wbr>Status</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">get<wbr>Status<span class="tsd-signature-symbol">(</span>fullDetails<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/iagendastatus.html" class="tsd-signature-type">IAgendaStatus</a><span class="tsd-signature-symbol">&gt;</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L25">src/JobProcessor.ts:25</a></li>
                                </ul>
                            </aside>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5><span class="tsd-flag ts-flagDefault value">Default value</span> fullDetails: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/iagendastatus.html" class="tsd-signature-type">IAgendaStatus</a><span class="tsd-signature-symbol">&gt;</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
                    <a name="jobprocessing" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> job<wbr>Processing</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
                        <li class="tsd-signature tsd-kind-icon">job<wbr>Processing<span class="tsd-signature-symbol">(</span>handledJobs<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">IJobParameters</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">"_id"</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L363">src/JobProcessor.ts:363</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Internal method that processes any jobs in the local queue (array)
                                    handledJobs keeps list of already processed jobs</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5><span class="tsd-flag ts-flagDefault value">Default value</span> handledJobs: <span class="tsd-signature-type">IJobParameters</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">"_id"</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
                    <a name="jobqueuefilling" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> job<wbr>Queue<wbr>Filling</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
                        <li class="tsd-signature tsd-kind-icon">job<wbr>Queue<wbr>Filling<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L302">src/JobProcessor.ts:302</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Internal method used to fill a queue with jobs that can be run</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>fill a queue with specific job name</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="lockonthefly" class="tsd-anchor"></a>
                    <h3>lock<wbr>OnThe<wbr>Fly</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">lock<wbr>OnThe<wbr>Fly<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L199">src/JobProcessor.ts:199</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Internal method that will lock a job and store it on MongoDB
                                        This method is called when we immediately start to process a job without using the process interval
                                    We do this because sometimes jobs are scheduled but will be run before the next process time</p>
                                </div>
                            </div>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="process" class="tsd-anchor"></a>
                    <h3>process</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">process<span class="tsd-signature-symbol">(</span>extraJob<span class="tsd-signature-symbol">?: </span><a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L116">src/JobProcessor.ts:116</a></li>
                                </ul>
                            </aside>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5><span class="tsd-flag ts-flagOptional">Optional</span> extraJob: <a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
                    <a name="runorretry" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> run<wbr>OrRetry</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
                        <li class="tsd-signature tsd-kind-icon">run<wbr>OrRetry<span class="tsd-signature-symbol">(</span>job<span class="tsd-signature-symbol">: </span><a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L452">src/JobProcessor.ts:452</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Internal method that tries to run a job and if it fails, retries again!</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>job: <a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
                            <p>processed a job or not</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="shouldlock" class="tsd-anchor"></a>
                    <h3>should<wbr>Lock</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">should<wbr>Lock<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L159">src/JobProcessor.ts:159</a></li>
                                </ul>
                            </aside>
                            <div class="tsd-comment tsd-typography">
                                <div class="lead">
                                    <p>Returns true if a job of the specified name can be locked.
                                        Considers maximum locked jobs at any time if self._lockLimit is &gt; 0
                                    Considers maximum locked jobs of the specified name at any time if jobDefinition.lockLimit is &gt; 0</p>
                                </div>
                            </div>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                    <div class="tsd-comment tsd-typography">
                                        <p>name of job to check if we should lock or not</p>
                                    </div>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
                            <p>whether or not you should lock job</p>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
                    <a name="stop" class="tsd-anchor"></a>
                    <h3>stop</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
                        <li class="tsd-signature tsd-kind-icon">stop<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">[]</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L103">src/JobProcessor.ts:103</a></li>
                                </ul>
                            </aside>
                            <h4 class="tsd-returns-title">Returns <a href="../globals.html#jobwithid" class="tsd-signature-type">JobWithId</a><span class="tsd-signature-symbol">[]</span></h4>
                        </li>
                    </ul>
                </section>
                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
                    <a name="updatestatus" class="tsd-anchor"></a>
                    <h3><span class="tsd-flag ts-flagPrivate">Private</span> update<wbr>Status</h3>
                    <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
                        <li class="tsd-signature tsd-kind-icon">update<wbr>Status<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"locked"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"running"</span>, number<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">-1</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">1</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
                    </ul>
                    <ul class="tsd-descriptions">
                        <li class="tsd-description">
                            <aside class="tsd-sources">
                                <ul>
                                    <li>Defined in <a href="https://github.com/hokify/agenda/blob/bd6157a/src/JobProcessor.ts#L579">src/JobProcessor.ts:579</a></li>
                                </ul>
                            </aside>
                            <h4 class="tsd-parameters-title">Parameters</h4>
                            <ul class="tsd-parameters">
                                <li>
                                    <h5>name: <span class="tsd-signature-type">string</span></h5>
                                </li>
                                <li>
                                    <h5>key: <span class="tsd-signature-type">"locked"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"running"</span></h5>
                                </li>
                                <li>
                                    <h5>number: <span class="tsd-signature-type">-1</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">1</span></h5>
                                </li>
                            </ul>
                            <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
                        </li>
                    </ul>
                </section>
            </section>
        </div>
        <div class="col-4 col-menu menu-sticky-wrap menu-highlight">
            <nav class="tsd-navigation primary">
                <ul>
                    <li class="globals  ">
                        <a href="../globals.html"><em>Globals</em></a>
                    </li>
                </ul>
            </nav>
            <nav class="tsd-navigation secondary menu-sticky">
                <ul class="before-current">
                    <li class=" tsd-kind-class">
                        <a href="agenda.html" class="tsd-kind-icon">Agenda</a>
                    </li>
                    <li class=" tsd-kind-class tsd-has-type-parameter">
                        <a href="job.html" class="tsd-kind-icon">Job</a>
                    </li>
                    <li class=" tsd-kind-class">
                        <a href="jobdbrepository.html" class="tsd-kind-icon">Job<wbr>DbRepository</a>
                    </li>
                    <li class=" tsd-kind-class">
                        <a href="jobprocessingqueue.html" class="tsd-kind-icon">Job<wbr>Processing<wbr>Queue</a>
                    </li>
                </ul>
                <ul class="current">
                    <li class="current tsd-kind-class">
                        <a href="jobprocessor.html" class="tsd-kind-icon">Job<wbr>Processor</a>
                        <ul>
                            <li class=" tsd-kind-constructor tsd-parent-kind-class">
                                <a href="jobprocessor.html#constructor" class="tsd-kind-icon">constructor</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#agenda" class="tsd-kind-icon">agenda</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#islockingonthefly" class="tsd-kind-icon">is<wbr>Locking<wbr>OnThe<wbr>Fly</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#isrunning" class="tsd-kind-icon">is<wbr>Running</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#jobqueue" class="tsd-kind-icon">job<wbr>Queue</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#jobstatus" class="tsd-kind-icon">job<wbr>Status</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#jobstolock" class="tsd-kind-icon">jobs<wbr>ToLock</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#localqueueprocessing" class="tsd-kind-icon">local<wbr>Queue<wbr>Processing</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#lockedjobs" class="tsd-kind-icon">locked<wbr>Jobs</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#maxconcurrency" class="tsd-kind-icon">max<wbr>Concurrency</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#nextscanat" class="tsd-kind-icon">next<wbr>Scan<wbr>At</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#processevery" class="tsd-kind-icon">process<wbr>Every</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#processinterval" class="tsd-kind-icon">process<wbr>Interval</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#runningjobs" class="tsd-kind-icon">running<wbr>Jobs</a>
                            </li>
                            <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#totallocklimit" class="tsd-kind-icon">total<wbr>Lock<wbr>Limit</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#enqueuejob" class="tsd-kind-icon">enqueue<wbr>Job</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#findandlocknextjob" class="tsd-kind-icon">find<wbr>And<wbr>Lock<wbr>Next<wbr>Job</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="jobprocessor.html#getstatus" class="tsd-kind-icon">get<wbr>Status</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#jobprocessing" class="tsd-kind-icon">job<wbr>Processing</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#jobqueuefilling" class="tsd-kind-icon">job<wbr>Queue<wbr>Filling</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="jobprocessor.html#lockonthefly" class="tsd-kind-icon">lock<wbr>OnThe<wbr>Fly</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="jobprocessor.html#process" class="tsd-kind-icon">process</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#runorretry" class="tsd-kind-icon">run<wbr>OrRetry</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="jobprocessor.html#shouldlock" class="tsd-kind-icon">should<wbr>Lock</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class">
                                <a href="jobprocessor.html#stop" class="tsd-kind-icon">stop</a>
                            </li>
                            <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
                                <a href="jobprocessor.html#updatestatus" class="tsd-kind-icon">update<wbr>Status</a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <ul class="after-current">
                    <li class=" tsd-kind-interface">
                        <a href="../interfaces/iagendaconfig.html" class="tsd-kind-icon">IAgenda<wbr>Config</a>
                    </li>
                    <li class=" tsd-kind-interface">
                        <a href="../interfaces/iagendajobstatus.html" class="tsd-kind-icon">IAgenda<wbr>Job<wbr>Status</a>
                    </li>
                    <li class=" tsd-kind-interface">
                        <a href="../interfaces/iagendastatus.html" class="tsd-kind-icon">IAgenda<wbr>Status</a>
                    </li>
                    <li class=" tsd-kind-interface">
                        <a href="../interfaces/idatabaseoptions.html" class="tsd-kind-icon">IDatabase<wbr>Options</a>
                    </li>
                    <li class=" tsd-kind-interface">
                        <a href="../interfaces/idbconfig.html" class="tsd-kind-icon">IDb<wbr>Config</a>
                    </li>
                    <li class=" tsd-kind-interface tsd-has-type-parameter">
                        <a href="../interfaces/ijobdefinition.html" class="tsd-kind-icon">IJob<wbr>Definition</a>
                    </li>
                    <li class=" tsd-kind-interface tsd-has-type-parameter">
                        <a href="../interfaces/ijobparameters.html" class="tsd-kind-icon">IJob<wbr>Parameters</a>
                    </li>
                    <li class=" tsd-kind-interface">
                        <a href="../interfaces/imongooptions.html" class="tsd-kind-icon">IMongo<wbr>Options</a>
                    </li>
                    <li class=" tsd-kind-type-alias tsd-has-type-parameter">
                        <a href="../globals.html#definitionprocessor" class="tsd-kind-icon">Definition<wbr>Processor</a>
                    </li>
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#jobpriority" class="tsd-kind-icon">Job<wbr>Priority</a>
                    </li>
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#jobwithid" class="tsd-kind-icon">Job<wbr>With<wbr>Id</a>
                    </li>
                    <li class=" tsd-kind-type-alias">
                        <a href="../globals.html#tjobdatefield" class="tsd-kind-icon">TJob<wbr>Datefield</a>
                    </li>
                    <li class=" tsd-kind-variable">
                        <a href="../globals.html#agendaversion" class="tsd-kind-icon">agenda<wbr>Version</a>
                    </li>
                    <li class=" tsd-kind-variable">
                        <a href="../globals.html#datefields" class="tsd-kind-icon">datefields</a>
                    </li>
                    <li class=" tsd-kind-variable">
                        <a href="../globals.html#log" class="tsd-kind-icon">log</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#calculateprocessevery" class="tsd-kind-icon">calculate<wbr>Process<wbr>Every</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#computefrominterval" class="tsd-kind-icon">compute<wbr>From<wbr>Interval</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#computefromrepeatat" class="tsd-kind-icon">compute<wbr>From<wbr>Repeat<wbr>At</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#datefortimezone" class="tsd-kind-icon">date<wbr>For<wbr>Timezone</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#hasmongoprotocol" class="tsd-kind-icon">has<wbr>Mongo<wbr>Protocol</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#isvaliddate" class="tsd-kind-icon">is<wbr>Valid<wbr>Date</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#isvalidhumaninterval" class="tsd-kind-icon">is<wbr>Valid<wbr>Human<wbr>Interval</a>
                    </li>
                    <li class=" tsd-kind-function">
                        <a href="../globals.html#parsepriority" class="tsd-kind-icon">parse<wbr>Priority</a>
                    </li>
                    <li class=" tsd-kind-object-literal">
                        <a href="../globals.html#prioritymap" class="tsd-kind-icon">priority<wbr>Map</a>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</div>
<footer class="with-border-bottom">
    <div class="container">
        <h2>Legend</h2>
        <div class="tsd-legend-group">
            <ul class="tsd-legend">
                <li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
                <li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
            </ul>
            <ul class="tsd-legend">
                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
            </ul>
        </div>
    </div>
</footer>
<div class="container tsd-generator">
    <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="../assets/js/main.js"></script>
</body>
</html>