From 7723fcefd7f26830706bc4daac546fbe5a9b121b Mon Sep 17 00:00:00 2001 From: Jens Vanhooydonck Date: Thu, 11 Apr 2019 16:31:47 +0200 Subject: [PATCH] Added Execute at in template. This will show the time when a delayed task will be executed. Only tested this with Bull. --- src/server/views/partials/dashboard/jobDetails.hbs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/server/views/partials/dashboard/jobDetails.hbs b/src/server/views/partials/dashboard/jobDetails.hbs index c8db1457..e1461ddc 100644 --- a/src/server/views/partials/dashboard/jobDetails.hbs +++ b/src/server/views/partials/dashboard/jobDetails.hbs @@ -28,6 +28,18 @@ {{moment this.timestamp "llll"}} {{/if}} + +
+ {{#if this.delay}} +
Execute at
+ {{#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}} +
Attempts Made
@@ -89,4 +101,4 @@ {{/eq}}
Data
-
{{json this.data true}}
\ No newline at end of file +
{{json this.data true}}