Skip to content

Commit

Permalink
Added Execute at in template.
Browse files Browse the repository at this point in the history
This will show the time when a delayed task will be executed.

Only tested this with Bull.
  • Loading branch information
JensVanhooydonck authored Apr 11, 2019
1 parent ae39d90 commit 7723fce
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/server/views/partials/dashboard/jobDetails.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
{{moment this.timestamp "llll"}}
{{/if}}
</div>

<div class="col-sm-3">
{{#if this.delay}}
<h5>Execute at</h5>
{{#if this.options.timestamp}}
{{moment (plus this.options.timestamp this.delay) "llll"}}
{{/if}}
{{#if this.timestamp}}
{{moment (plus this.timestamp this.delay) "llll"}}
{{/if}}
{{/if}}
</div>

<div class="col-sm-3">
<h5>Attempts Made</h5>
Expand Down Expand Up @@ -89,4 +101,4 @@
{{/eq}}

<h5>Data</h5>
<pre><code class="json">{{json this.data true}}</code></pre>
<pre><code class="json">{{json this.data true}}</code></pre>

0 comments on commit 7723fce

Please sign in to comment.