Add "Execute at" in template for delayed jobs.#166
Conversation
This will show the time when a delayed task will be executed. Only tested this with Bull.
|
can we get this in? |
|
screenshot of how it shows you can use this patch-package for now https://gist.github.com/sibelius/a597174b1ff58c2883566693edb1fa15 until this lands |
| </div> | ||
|
|
||
| <div class="col-sm-3"> | ||
| {{#if this.delay}} |
There was a problem hiding this comment.
Will this work for bee-queue jobs? this.delay would be falsy, so it wouldn't ever enter this if clause - right?
There was a problem hiding this comment.
Right, I can only test this with Bull. I don't know how bee-queue will pass it's delay?
I could put the if this.delay around the div class, so it would not show any white space when there is no delay.
| {{#if this.options.timestamp}} | ||
| {{moment (plus this.options.timestamp this.delay) "llll"}} | ||
| {{/if}} | ||
| {{#if this.timestamp}} |
There was a problem hiding this comment.
If this.delay is truthy and this.timestamp is falsy, then there would just be a weird "Execute at" section with no content - right? Maybe this could be structured as:
There was a problem hiding this comment.
I have altered this piece. I added the same logic to the timestamp part so the code is consistent.
Also moved Execute at column in if statement. Do not show if no delay present. bee-queue#166 (comment)
|
We don't have the bandwidth to test these changes against |
|
@JensVanhooydonck could you try last version #340 was merged |
|
I believe this was added in #340 |
Sorry for the late reply. |

This will show the time when a delayed task will be executed.
Only tested this with Bull.
Closes #145