File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,12 @@ async function main() {
2929 }
3030 } ) ;
3131
32+ // adding delayed jobs
33+ await queue
34+ . createJob ( { } )
35+ . delayUntil ( Date . now ( ) + 60 * 1000 )
36+ . save ( ) ;
37+
3238 Arena (
3339 {
3440 Bee,
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ async function main() {
2929 }
3030 } ) ;
3131
32+ // adding delayed jobs
33+ await queue . add ( { } , { delay : Date . now ( ) + 60 * 1000 } ) ;
34+
3235 Arena (
3336 {
3437 Bull,
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ const helpers = {
6161 return mapping ;
6262 } ,
6363
64+ getTimestamp ( job ) {
65+ return job . timestamp ? job . timestamp : job . options . timestamp ;
66+ } ,
67+
6468 encodeURI ( url ) {
6569 if ( typeof url !== 'string' ) {
6670 return '' ;
Original file line number Diff line number Diff line change 2626 <h5 >Timestamp</h5 >
2727 {{ #if this.options.timestamp }}
2828 {{ moment this.options.timestamp " llll" }}
29- {{ /if }}
30- {{ #if this.timestamp }}
29+ {{ else if this.timestamp}}
3130 {{ moment this.timestamp " llll" }}
3231 {{ /if }}
3332 </div >
4645 </div >
4746 {{ /if }}
4847
48+ {{ #if this.delay }}
49+ <div class =" col-sm-3" >
50+ <h5 >Executes At</h5 >
51+ {{ moment (add this.delay (getTimestamp this ) ) " llll" }}
52+ </div >
53+ {{ else if this.options.delay}}
54+ <div class =" col-sm-3" >
55+ <h5 >Executes At</h5 >
56+ {{ moment (add this.options.delay (getTimestamp this ) ) " llll" }}
57+ </div >
58+ {{ /if }}
59+
4960 <div class =" col-sm-3" >
5061 <h5 >Attempts Made</h5 >
5162 {{ this.attemptsMade }}
You can’t perform that action at this time.
0 commit comments