From 834a759680a7eb32dc5795a27c0550c6fe7b6230 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Mon, 28 Feb 2022 06:40:10 -0800 Subject: [PATCH] Update ui build --- ui/build/asset-manifest.json | 6 +++--- ui/build/index.html | 4 +--- ui/build/static/js/main.9ab02e37.chunk.js | 2 ++ ui/build/static/js/main.9ab02e37.chunk.js.map | 1 + ui/build/static/js/main.d28c39a7.chunk.js | 2 -- ui/build/static/js/main.d28c39a7.chunk.js.map | 1 - 6 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 ui/build/static/js/main.9ab02e37.chunk.js create mode 100644 ui/build/static/js/main.9ab02e37.chunk.js.map delete mode 100644 ui/build/static/js/main.d28c39a7.chunk.js delete mode 100644 ui/build/static/js/main.d28c39a7.chunk.js.map diff --git a/ui/build/asset-manifest.json b/ui/build/asset-manifest.json index 5776388..fa52bfd 100644 --- a/ui/build/asset-manifest.json +++ b/ui/build/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { - "main.js": "/[[.RootPath]]/static/js/main.d28c39a7.chunk.js", - "main.js.map": "/[[.RootPath]]/static/js/main.d28c39a7.chunk.js.map", + "main.js": "/[[.RootPath]]/static/js/main.9ab02e37.chunk.js", + "main.js.map": "/[[.RootPath]]/static/js/main.9ab02e37.chunk.js.map", "runtime-main.js": "/[[.RootPath]]/static/js/runtime-main.4c7af7c1.js", "runtime-main.js.map": "/[[.RootPath]]/static/js/runtime-main.4c7af7c1.js.map", "static/js/2.5eff4c2a.chunk.js": "/[[.RootPath]]/static/js/2.5eff4c2a.chunk.js", @@ -12,6 +12,6 @@ "entrypoints": [ "static/js/runtime-main.4c7af7c1.js", "static/js/2.5eff4c2a.chunk.js", - "static/js/main.d28c39a7.chunk.js" + "static/js/main.9ab02e37.chunk.js" ] } \ No newline at end of file diff --git a/ui/build/index.html b/ui/build/index.html index 1c7bed4..fb84f0b 100644 --- a/ui/build/index.html +++ b/ui/build/index.html @@ -1,3 +1 @@ -Asynq - Monitoring
\ No newline at end of file +Asynq - Monitoring
\ No newline at end of file diff --git a/ui/build/static/js/main.9ab02e37.chunk.js b/ui/build/static/js/main.9ab02e37.chunk.js new file mode 100644 index 0000000..abf935f --- /dev/null +++ b/ui/build/static/js/main.9ab02e37.chunk.js @@ -0,0 +1,2 @@ +(this.webpackJsonpui=this.webpackJsonpui||[]).push([[0],{806:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),c=a(30),s=a.n(c),i=a(899),o=a(25),l=a(19),u=a(2),d=a(5),j=a(39),b=a(45),p=a(852),h=a(887),O=a(896),f=a(897),m=a(883),x=a(816),g=a(817),v=a(880),k=a(881),y=a(898),S=a(821),_=a(106),T=a(809),E=a(820),A=a(357),C=a.n(A),R=a(359),w=a.n(R),I=a(362),q=a.n(I),N=a(364),P=a.n(N),D=a(361),L=a.n(D),B=a(365),H=a.n(B),U=a(363),z=a.n(U),K=a(360),G=a.n(K),M=a(358),V=a.n(M);console.log("DEBUG: ROOT_PATH",window.ROOT_PATH);var F=function(){return{HOME:"".concat(window.ROOT_PATH,"/"),SETTINGS:"".concat(window.ROOT_PATH,"/settings"),SERVERS:"".concat(window.ROOT_PATH,"/servers"),SCHEDULERS:"".concat(window.ROOT_PATH,"/schedulers"),QUEUE_DETAILS:"".concat(window.ROOT_PATH,"/queues/:qname"),REDIS:"".concat(window.ROOT_PATH,"/redis"),TASK_DETAILS:"".concat(window.ROOT_PATH,"/queues/:qname/tasks/:taskId"),QUEUE_METRICS:"".concat(window.ROOT_PATH,"/q/metrics")}};function Q(e,t){var a=F().QUEUE_DETAILS.replace(":qname",e);return t?"".concat(a,"?status=").concat(t):a}function Y(e,t){return F().TASK_DETAILS.replace(":qname",e).replace(":taskId",t)}var W=a(366),J="POLL_INTERVAL_CHANGE",$="THEME_PREFERENCE_CHANGE",X="TOGGLE_DRAWER",Z="TASK_ROWS_PER_PAGE_CHANGE",ee="DAILY_STATS_KEY_CHANGE";function te(e){return{type:Z,value:e}}var ae=a(854),ne=a(47),re=a(245),ce=a.n(re),se=a(247),ie=a.n(se),oe=a(246),le=a.n(oe),ue=a(244),de=a.n(ue),je=a(1),be=Object(p.a)((function(e){return Object(ae.a)({root:{flexShrink:0,marginLeft:e.spacing(2.5)}})}));var pe=function(e){var t=be(),a=Object(ne.a)(),n=e.count,r=e.page,c=e.rowsPerPage,s=e.onPageChange;return Object(je.jsxs)("div",{className:t.root,children:[Object(je.jsx)(T.a,{onClick:function(e){s(e,0)},disabled:0===r,"aria-label":"first page",children:"rtl"===a.direction?Object(je.jsx)(de.a,{}):Object(je.jsx)(ce.a,{})}),Object(je.jsx)(T.a,{onClick:function(e){s(e,r-1)},disabled:0===r,"aria-label":"previous page",children:"rtl"===a.direction?Object(je.jsx)(le.a,{}):Object(je.jsx)(ie.a,{})}),Object(je.jsx)(T.a,{onClick:function(e){s(e,r+1)},disabled:r>=Math.ceil(n/c)-1,"aria-label":"next page",children:"rtl"===a.direction?Object(je.jsx)(ie.a,{}):Object(je.jsx)(le.a,{})}),Object(je.jsx)(T.a,{onClick:function(e){s(e,Math.max(0,Math.ceil(n/c)-1))},disabled:r>=Math.ceil(n/c)-1,"aria-label":"last page",children:"rtl"===a.direction?Object(je.jsx)(ce.a,{}):Object(je.jsx)(de.a,{})})]})},he=[10,20,30,60,100],Oe=a(876),fe=a(877),me=a(149),xe=a(162),ge=a.n(xe),ve=a(901),ke=a(878),ye=a(10),Se=a(4),_e=a.n(Se),Te=a(21),Ee=a.n(Te),Ae=a(80),Ce=a.n(Ae),Re=function(){return console.log("DEBUG: production? ",!0),"".concat(window.ROOT_PATH,"/api")};function we(){return Ie.apply(this,arguments)}function Ie(){return(Ie=Object(ye.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(Re(),"/queues")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qe(e){return Ne.apply(this,arguments)}function Ne(){return(Ne=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pe(e){return De.apply(this,arguments)}function De(){return(De=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,":pause")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return Be.apply(this,arguments)}function Be(){return(Be=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,":resume")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(){return Ue.apply(this,arguments)}function Ue(){return(Ue=Object(ye.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(Re(),"/queue_stats")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ze(e,t){return Ke.apply(this,arguments)}function Ke(){return(Ke=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/tasks/").concat(a),e.next=3,Ee()({method:"get",url:n});case 3:return r=e.sent,e.abrupt("return",r.data);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ge(e,t){return Me.apply(this,arguments)}function Me(){return(Me=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/active_tasks"),a&&(n+="?".concat(Ce.a.stringify(a))),e.next=4,Ee()({method:"get",url:n});case 4:return r=e.sent,e.abrupt("return",r.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ve(e,t){return Fe.apply(this,arguments)}function Fe(){return(Fe=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/active_tasks/").concat(a,":cancel")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qe(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/active_tasks:cancel_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function We(e,t){return Je.apply(this,arguments)}function Je(){return(Je=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/active_tasks:batch_cancel"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $e(e,t){return Xe.apply(this,arguments)}function Xe(){return(Xe=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/pending_tasks"),a&&(n+="?".concat(Ce.a.stringify(a))),e.next=4,Ee()({method:"get",url:n});case 4:return r=e.sent,e.abrupt("return",r.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ze(e,t){return et.apply(this,arguments)}function et(){return(et=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/scheduled_tasks"),a&&(n+="?".concat(Ce.a.stringify(a))),e.next=4,Ee()({method:"get",url:n});case 4:return r=e.sent,e.abrupt("return",r.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function tt(e,t){return at.apply(this,arguments)}function at(){return(at=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/retry_tasks"),a&&(n+="?".concat(Ce.a.stringify(a))),e.next=4,Ee()({method:"get",url:n});case 4:return r=e.sent,e.abrupt("return",r.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function nt(e,t){return rt.apply(this,arguments)}function rt(){return(rt=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/archived_tasks"),a&&(n+="?".concat(Ce.a.stringify(a))),e.next=4,Ee()({method:"get",url:n});case 4:return r=e.sent,e.abrupt("return",r.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ct(e,t){return st.apply(this,arguments)}function st(){return(st=Object(ye.a)(_e.a.mark((function e(t,a){var n,r;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(Re(),"/queues/").concat(t,"/completed_tasks"),a&&(n+="?".concat(Ce.a.stringify(a))),e.next=4,Ee()({method:"get",url:n});case 4:return r=e.sent,e.abrupt("return",r.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function it(e,t){return ot.apply(this,arguments)}function ot(){return(ot=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/pending_tasks/").concat(a,":archive")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lt(e,t){return ut.apply(this,arguments)}function ut(){return(ut=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/pending_tasks:batch_archive"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dt(e){return jt.apply(this,arguments)}function jt(){return(jt=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/pending_tasks:archive_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function bt(e,t){return pt.apply(this,arguments)}function pt(){return(pt=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/pending_tasks/").concat(a)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ht(e,t){return Ot.apply(this,arguments)}function Ot(){return(Ot=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/pending_tasks:batch_delete"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ft(e){return mt.apply(this,arguments)}function mt(){return(mt=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/pending_tasks:delete_all")});case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xt(e,t){return gt.apply(this,arguments)}function gt(){return(gt=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks/").concat(a,":run")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function vt(e,t){return kt.apply(this,arguments)}function kt(){return(kt=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks/").concat(a,":archive")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function yt(e,t){return St.apply(this,arguments)}function St(){return(St=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks/").concat(a)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _t(e,t){return Tt.apply(this,arguments)}function Tt(){return(Tt=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks:batch_delete"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Et(e){return At.apply(this,arguments)}function At(){return(At=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks:delete_all")});case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ct(e,t){return Rt.apply(this,arguments)}function Rt(){return(Rt=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks:batch_run"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wt(e){return It.apply(this,arguments)}function It(){return(It=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks:run_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function qt(e,t){return Nt.apply(this,arguments)}function Nt(){return(Nt=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks:batch_archive"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Pt(e){return Dt.apply(this,arguments)}function Dt(){return(Dt=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/scheduled_tasks:archive_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lt(e,t){return Bt.apply(this,arguments)}function Bt(){return(Bt=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks/").concat(a,":run")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ht(e,t){return Ut.apply(this,arguments)}function Ut(){return(Ut=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks/").concat(a,":archive")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zt(e,t){return Kt.apply(this,arguments)}function Kt(){return(Kt=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks/").concat(a)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Gt(e,t){return Mt.apply(this,arguments)}function Mt(){return(Mt=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks:batch_delete"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Vt(e){return Ft.apply(this,arguments)}function Ft(){return(Ft=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks:delete_all")});case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Qt(e,t){return Yt.apply(this,arguments)}function Yt(){return(Yt=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks:batch_run"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Wt(e){return Jt.apply(this,arguments)}function Jt(){return(Jt=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks:run_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $t(e,t){return Xt.apply(this,arguments)}function Xt(){return(Xt=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks:batch_archive"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zt(e){return ea.apply(this,arguments)}function ea(){return(ea=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/retry_tasks:archive_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ta(e,t){return aa.apply(this,arguments)}function aa(){return(aa=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/archived_tasks/").concat(a,":run")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function na(e,t){return ra.apply(this,arguments)}function ra(){return(ra=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/archived_tasks/").concat(a)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ca(e,t){return sa.apply(this,arguments)}function sa(){return(sa=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/archived_tasks:batch_delete"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ia(e){return oa.apply(this,arguments)}function oa(){return(oa=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/archived_tasks:delete_all")});case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function la(e,t){return ua.apply(this,arguments)}function ua(){return(ua=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/archived_tasks:batch_run"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function da(e){return ja.apply(this,arguments)}function ja(){return(ja=Object(ye.a)(_e.a.mark((function e(t){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/archived_tasks:run_all")});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ba(e,t){return pa.apply(this,arguments)}function pa(){return(pa=Object(ye.a)(_e.a.mark((function e(t,a){return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/completed_tasks/").concat(a)});case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ha(e,t){return Oa.apply(this,arguments)}function Oa(){return(Oa=Object(ye.a)(_e.a.mark((function e(t,a){var n;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"post",url:"".concat(Re(),"/queues/").concat(t,"/completed_tasks:batch_delete"),data:{task_ids:a}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function fa(e){return ma.apply(this,arguments)}function ma(){return(ma=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"delete",url:"".concat(Re(),"/queues/").concat(t,"/completed_tasks:delete_all")});case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xa(){return ga.apply(this,arguments)}function ga(){return(ga=Object(ye.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(Re(),"/servers")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function va(){return ka.apply(this,arguments)}function ka(){return(ka=Object(ye.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(Re(),"/scheduler_entries")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ya(e){return Sa.apply(this,arguments)}function Sa(){return(Sa=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(Re(),"/scheduler_entries/").concat(t,"/enqueue_events")});case 2:return a=e.sent,e.abrupt("return",a.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _a(){return Ta.apply(this,arguments)}function Ta(){return(Ta=Object(ye.a)(_e.a.mark((function e(){var t;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ee()({method:"get",url:"".concat(Re(),"/redis_info")});case 2:return t=e.sent,e.abrupt("return",t.data);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ea(e,t,a){return Aa.apply(this,arguments)}function Aa(){return(Aa=Object(ye.a)(_e.a.mark((function e(t,a,n){var r,c;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={endtime:t,duration:a},n&&n.length>0&&(r.queues=n.join(",")),e.next=4,Ee()({method:"get",url:"".concat(Re(),"/metrics?").concat(Ce.a.stringify(r))});case 4:return c=e.sent,e.abrupt("return",c.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ca(e){var t=e.response;return t?"".concat(t.status," (").concat(t.statusText,"): ").concat(t.data):"error: no error response data available"}function Ra(e){var t=e.response;return t?t.data:"Unknown error occurred. See the logs for details."}function wa(e){var t=Math.floor(e/3600),a=Math.floor((e-3600*t)/60);return{hour:t,minute:a,second:e-3600*t-60*a,totalSeconds:e}}function Ia(e,t){var a=e-t;return wa(Math.floor(a/1e3))}function qa(e){if(e.hour>24){var t=Math.floor(e.hour/24);return t+(1===t?" day":" days")}return(0!==e.hour?"".concat(e.hour,"h"):"")+(0!==e.minute?"".concat(e.minute,"m"):"")+"".concat(e.second,"s")}function Na(e){try{var t=Ia(Date.parse(e),Date.now());return t.totalSeconds<1?"now":"in "+qa(t)}catch(a){return"-"}}function Pa(e){try{return Da(Date.parse(e)/1e3)}catch(t){return console.error("Could not parse timestamp: ",e,t),"-"}}function Da(e){return 0===e?"":qa(Ia(Date.now(),1e3*e))+" ago"}function La(e){var t=e.indexOf("-");return-1===t?e:e.substr(0,t)}function Ba(e,t){if(0===t)return"0.00%";var a=(e/t*100).toFixed(2);return"".concat(a," %")}function Ha(e){return function(e){try{JSON.parse(e)}catch(t){return!1}return!0}(e)?JSON.stringify(JSON.parse(e),null,2):e}function Ua(){return Math.floor(Date.now()/1e3)}var za=/([0-9]*(\.[0-9]*)?)[s|m|h]/;var Ka="LIST_QUEUES_BEGIN",Ga="LIST_QUEUES_SUCCESS",Ma="LIST_QUEUES_ERROR",Va="DELETE_QUEUE_BEGIN",Fa="DELETE_QUEUE_SUCCESS",Qa="DELETE_QUEUE_ERROR",Ya="PAUSE_QUEUE_BEGIN",Wa="PAUSE_QUEUE_SUCCESS",Ja="PAUSE_QUEUE_ERROR",$a="RESUME_QUEUE_BEGIN",Xa="RESUME_QUEUE_SUCCESS",Za="RESUME_QUEUE_ERROR";function en(){return function(){var e=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:Ka}),e.prev=1,e.next=4,we();case 4:a=e.sent,t({type:Ga,payload:a}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("listQueuesAsync: ".concat(Ca(e.t0))),t({type:Ma,error:Ra(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()}function tn(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:Va,queue:e}),t.prev=1,t.next=4,qe(e);case 4:a({type:Fa,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error(t.t0),a({type:Qa,queue:e,error:Ra(t.t0)});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()}var an="LIST_QUEUE_STATS_BEGIN",nn="LIST_QUEUE_STATS_SUCCESS",rn="LIST_QUEUE_STATS_ERROR";var cn=a(855),sn=a(856),on=a(860),ln=a(204),un=a(205),dn=a(167),jn=a(164),bn=a(369);var pn=function(e){var t=Object(ne.a)(),a=Object(b.f)();return Object(je.jsx)(cn.a,{children:Object(je.jsxs)(sn.a,{data:e.data,maxBarSize:120,onClick:function(t){var n=e.data.map((function(e){return e.queue}));t&&t.activeLabel&&n.includes(t.activeLabel)&&a.push(Q(t.activeLabel))},style:{cursor:"pointer"},children:[Object(je.jsx)(on.a,{strokeDasharray:"3 3"}),Object(je.jsx)(ln.a,{dataKey:"queue",stroke:t.palette.text.secondary}),Object(je.jsx)(un.a,{stroke:t.palette.text.secondary}),Object(je.jsx)(dn.a,{}),Object(je.jsx)(jn.a,{}),Object(je.jsx)(bn.a,{dataKey:"active",stackId:"a",fill:"#1967d2"}),Object(je.jsx)(bn.a,{dataKey:"pending",stackId:"a",fill:"#669df6"}),Object(je.jsx)(bn.a,{dataKey:"scheduled",stackId:"a",fill:"#fdd663"}),Object(je.jsx)(bn.a,{dataKey:"retry",stackId:"a",fill:"#f666a9"}),Object(je.jsx)(bn.a,{dataKey:"archived",stackId:"a",fill:"#ac4776"}),Object(je.jsx)(bn.a,{dataKey:"completed",stackId:"a",fill:"#4bb543"})]})})};var hn=function(e){var t=Object(ne.a)();return Object(je.jsx)(cn.a,{children:Object(je.jsxs)(sn.a,{data:e.data,maxBarSize:120,children:[Object(je.jsx)(on.a,{strokeDasharray:"3 3"}),Object(je.jsx)(ln.a,{dataKey:"queue",stroke:t.palette.text.secondary}),Object(je.jsx)(un.a,{stroke:t.palette.text.secondary}),Object(je.jsx)(dn.a,{}),Object(je.jsx)(jn.a,{}),Object(je.jsx)(bn.a,{dataKey:"succeeded",stackId:"a",fill:t.palette.success.light}),Object(je.jsx)(bn.a,{dataKey:"failed",stackId:"a",fill:t.palette.error.light})]})})},On=a(11),fn=a(41),mn=a(867),xn=a(871),gn=a(870),vn=a(866),kn=a(868),yn=a(869),Sn=a(910),_n=a(872),Tn=a(337),En=a.n(Tn),An=a(336),Cn=a.n(An),Rn=a(54),wn=a.n(Rn),In=a(57),qn=a.n(In),Nn=a(812),Pn=a(861),Dn=a(865),Ln=a(863),Bn=a(864),Hn=a(862);var Un,zn=Object(o.b)((function(e,t){var a=!1;if(null!==t.queue){var n=e.queues.data.find((function(e){var a;return e.name===(null===(a=t.queue)||void 0===a?void 0:a.queue)}));void 0!==n&&(a=n.requestPending)}return{requestPending:a}}),{deleteQueueAsync:tn})((function(e){return Object(je.jsx)(Pn.a,{open:null!==e.queue,onClose:e.onClose,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:null!==e.queue&&(e.queue.size>0?Object(je.jsxs)(je.Fragment,{children:[Object(je.jsx)(Hn.a,{id:"alert-dialog-title",children:"Queue is not empty"}),Object(je.jsx)(Ln.a,{children:Object(je.jsxs)(Bn.a,{id:"alert-dialog-description",children:['You are trying to delete a non-emtpy queue "',e.queue.queue,'". Please empty the queue first before deleting.']})}),Object(je.jsx)(Dn.a,{children:Object(je.jsx)(Nn.a,{onClick:e.onClose,color:"primary",children:"OK"})})]}):Object(je.jsxs)(je.Fragment,{children:[Object(je.jsxs)(Hn.a,{id:"alert-dialog-title",children:['Are you sure you want to delete "',e.queue.queue,'"?']}),Object(je.jsx)(Ln.a,{children:Object(je.jsx)(Bn.a,{id:"alert-dialog-description",children:"You can't undo this action."})}),Object(je.jsxs)(Dn.a,{children:[Object(je.jsx)(Nn.a,{onClick:e.onClose,disabled:e.requestPending,color:"primary",children:"Cancel"}),Object(je.jsx)(Nn.a,{onClick:function(){e.queue&&(e.deleteQueueAsync(e.queue.queue),e.onClose())},disabled:e.requestPending,color:"primary",autoFocus:!0,children:"Delete"})]})]}))})}));!function(e){e.Asc="asc",e.Desc="desc"}(Un||(Un={}));var Kn,Gn=a(143),Mn=a.n(Gn),Vn=Object(p.a)((function(e){return{table:{minWidth:650},fixedCell:{position:"sticky",zIndex:1,left:0,background:e.palette.background.paper}}}));!function(e){e[e.Queue=0]="Queue",e[e.State=1]="State",e[e.Size=2]="Size",e[e.MemoryUsage=3]="MemoryUsage",e[e.Latency=4]="Latency",e[e.Processed=5]="Processed",e[e.Failed=6]="Failed",e[e.ErrorRate=7]="ErrorRate",e[e.None=8]="None"}(Kn||(Kn={}));var Fn=[{label:"Queue",key:"queue",sortBy:Kn.Queue,align:"left"},{label:"State",key:"state",sortBy:Kn.State,align:"left"},{label:"Size",key:"size",sortBy:Kn.Size,align:"right"},{label:"Memory usage",key:"memory_usage",sortBy:Kn.MemoryUsage,align:"right"},{label:"Latency",key:"latency",sortBy:Kn.Latency,align:"right"},{label:"Processed",key:"processed",sortBy:Kn.Processed,align:"right"},{label:"Failed",key:"failed",sortBy:Kn.Failed,align:"right"},{label:"Error rate",key:"error_rate",sortBy:Kn.ErrorRate,align:"right"},{label:"Actions",key:"actions",sortBy:Kn.None,align:"center"}];function Qn(e,t){var a=Object(fn.a)(e);return a.sort(t),a}function Yn(e){var t=Vn(),a=Object(n.useState)(Kn.Queue),c=Object(On.a)(a,2),s=c[0],i=c[1],o=Object(n.useState)(Un.Asc),l=Object(On.a)(o,2),u=l[0],j=l[1],b=Object(n.useState)(null),p=Object(On.a)(b,2),h=p[0],O=p[1];return Object(je.jsxs)(r.a.Fragment,{children:[Object(je.jsx)(vn.a,{children:Object(je.jsxs)(mn.a,{className:t.table,"aria-label":"queues overview table",children:[Object(je.jsx)(kn.a,{children:Object(je.jsx)(yn.a,{children:Fn.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e,a){return Object(je.jsx)(gn.a,{align:e.align,className:Object(d.default)(0===a&&t.fixedCell),children:e.sortBy!==Kn.None?Object(je.jsx)(Sn.a,{active:s===e.sortBy,direction:u,onClick:(n=e.sortBy,function(e){if(n===s){var t=u===Un.Asc?Un.Desc:Un.Asc;j(t)}else i(n)}),children:e.label}):Object(je.jsx)("div",{children:e.label})},e.key);var n}))})}),Object(je.jsx)(xn.a,{children:Qn(e.queues,(function(e,t){var a;switch(s){case Kn.Queue:if(e.queue===t.queue)return 0;a=e.queue0&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsxs)(ve.a,{severity:"error",children:[Object(je.jsx)(ke.a,{children:"Error"}),"Could not retrieve queues live data \u2014"," ",Object(je.jsx)("strong",{children:"See the logs for details"})]})}),Object(je.jsx)(fe.a,{item:!0,xs:6,children:Object(je.jsxs)(me.a,{className:i.paper,variant:"outlined",children:[Object(je.jsx)("div",{className:i.chartHeader,children:Object(je.jsxs)("div",{className:i.chartHeaderTitle,children:[Object(je.jsx)(_.a,{variant:"h6",children:"Queue Size"}),Object(je.jsx)(Xn,{title:Object(je.jsxs)("div",{children:[Object(je.jsx)("div",{className:i.tooltipSection,children:"Total number of tasks in the queue"}),Object(je.jsxs)("div",{className:i.tooltipSection,children:[Object(je.jsx)("strong",{children:"Active"}),": number of tasks currently being processed"]}),Object(je.jsxs)("div",{className:i.tooltipSection,children:[Object(je.jsx)("strong",{children:"Pending"}),": number of tasks ready to be processed"]}),Object(je.jsxs)("div",{className:i.tooltipSection,children:[Object(je.jsx)("strong",{children:"Scheduled"}),": number of tasks scheduled to be processed in the future"]}),Object(je.jsxs)("div",{className:i.tooltipSection,children:[Object(je.jsx)("strong",{children:"Retry"}),": number of tasks scheduled to be retried in the future"]}),Object(je.jsxs)("div",{children:[Object(je.jsx)("strong",{children:"Archived"}),": number of tasks exhausted their retries"]})]}),children:Object(je.jsx)(ge.a,{fontSize:"small",className:i.infoIcon})})]})}),Object(je.jsx)("div",{className:i.chartContainer,children:Object(je.jsx)(pn,{data:r})})]})}),Object(je.jsx)(fe.a,{item:!0,xs:6,children:Object(je.jsxs)(me.a,{className:i.paper,variant:"outlined",children:[Object(je.jsxs)("div",{className:i.chartHeader,children:[Object(je.jsxs)("div",{className:i.chartHeaderTitle,children:[Object(je.jsx)(_.a,{variant:"h6",children:"Tasks Processed"}),Object(je.jsx)(Xn,{title:Object(je.jsxs)("div",{children:[Object(je.jsx)("div",{className:i.tooltipSection,children:"Total number of tasks processed in a given day (UTC)"}),Object(je.jsxs)("div",{className:i.tooltipSection,children:[Object(je.jsx)("strong",{children:"Succeeded"}),": number of tasks successfully processed"]}),Object(je.jsxs)("div",{children:[Object(je.jsx)("strong",{children:"Failed"}),": number of tasks failed to be processed"]})]}),children:Object(je.jsx)(ge.a,{fontSize:"small",className:i.infoIcon})})]}),Object(je.jsx)("div",{children:Object(je.jsx)(or,{options:[{label:"Today",key:"today"},{label:"Last 7d",key:"last-7d"},{label:"Last 30d",key:"last-30d"},{label:"Last 90d",key:"last-90d"}],initialSelectedKey:s,onSelect:function(t){return e.dailyStatsKeyChange(t)}})})]}),Object(je.jsxs)("div",{className:i.chartContainer,children:["today"===s&&Object(je.jsx)(hn,{data:l}),"last-7d"===s&&Object(je.jsx)(pr,{data:e.queueStats,numDays:7}),"last-30d"===s&&Object(je.jsx)(pr,{data:e.queueStats,numDays:30}),"last-90d"===s&&Object(je.jsx)(pr,{data:e.queueStats,numDays:90})]})]})}),Object(je.jsx)(fe.a,{item:!0,xs:12,className:i.tableContainer,children:Object(je.jsx)(me.a,{className:i.paper,variant:"outlined",children:Object(je.jsx)(Yn,{queues:r,onPauseClick:e.pauseQueueAsync,onResumeClick:e.resumeQueueAsync,onDeleteClick:e.deleteQueueAsync})})})]})})}));!function(e){e[e.SystemDefault=0]="SystemDefault",e[e.Always=1]="Always",e[e.Never=2]="Never"}(mr||(mr={}));var gr={pollInterval:8,themePreference:mr.SystemDefault,isDrawerOpen:!0,taskRowsPerPage:20,dailyStatsChartType:"last-7d"};var vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case J:return Object(u.a)(Object(u.a)({},e),{},{pollInterval:t.value});case $:return Object(u.a)(Object(u.a)({},e),{},{themePreference:t.value});case X:return Object(u.a)(Object(u.a)({},e),{},{isDrawerOpen:!e.isDrawerOpen});case Z:return Object(u.a)(Object(u.a)({},e),{},{taskRowsPerPage:t.value});case ee:return Object(u.a)(Object(u.a)({},e),{},{dailyStatsChartType:t.value});default:return e}},kr=a(879);function yr(e){return"dark"===e.palette.type}var Sr="CLOSE_SNACKBAR";var _r=Object(p.a)((function(e){return{listItem:{borderTopRightRadius:"24px",borderBottomRightRadius:"24px"},selected:{backgroundColor:yr(e)?"".concat(e.palette.secondary.main,"30"):"".concat(e.palette.primary.main,"30")},selectedText:{fontWeight:600,color:yr(e)?e.palette.secondary.main:e.palette.primary.main},selectedIcon:{color:yr(e)?e.palette.secondary.main:e.palette.primary.main}}}));var Tr=function(e){var t=_r(),a=e.icon,n=e.primary,c=e.to,s=Object(b.i)({path:c,strict:!0,sensitive:!0,exact:!0}),i=r.a.useMemo((function(){return r.a.forwardRef((function(e,t){return Object(je.jsx)(j.b,Object(u.a)({to:c,ref:t},e))}))}),[c]);return Object(je.jsx)("li",{children:Object(je.jsx)(_n.a,{title:n,placement:"right",children:Object(je.jsxs)(g.a,{button:!0,component:i,className:Object(d.default)(t.listItem,s&&t.selected),children:[a&&Object(je.jsx)(v.a,{className:Object(d.default)(s&&t.selectedIcon),children:a}),Object(je.jsx)(k.a,{primary:n,classes:{primary:s?t.selectedText:void 0}})]})})})},Er=a(255),Ar=a(344),Cr=a.n(Ar),Rr=a(902),wr=a(340),Ir=a(341);function qr(e){var t=yr(Object(ne.a)())?wr.a:Ir.a;return Object(je.jsx)(Rr.a,{language:e.language,style:t,customStyle:e.customStyle,children:e.children})}var Nr=a(343),Pr=a.n(Nr),Dr="LIST_SCHEDULER_ENTRIES_BEGIN",Lr="LIST_SCHEDULER_ENTRIES_SUCCESS",Br="LIST_SCHEDULER_ENTRIES_ERROR",Hr="LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN",Ur="LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS",zr="LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR";function Kr(e,t){return e.enqueueEventsByEntryId[t]||{data:[],loading:!1}}var Gr={loading:!1,data:[],error:"",enqueueEventsByEntryId:{}};var Mr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Dr:return Object(u.a)(Object(u.a)({},e),{},{loading:!0});case Lr:return Object(u.a)(Object(u.a)({},e),{},{error:"",loading:!1,data:t.payload.entries});case Br:return Object(u.a)(Object(u.a)({},e),{},{loading:!1,error:t.error});case Hr:var a=Kr(e,t.entryId);return Object(u.a)(Object(u.a)({},e),{},{enqueueEventsByEntryId:Object(u.a)(Object(u.a)({},e.enqueueEventsByEntryId),{},Object(l.a)({},t.entryId,Object(u.a)(Object(u.a)({},a),{},{loading:!0})))});case Ur:var n=function(e,t){return Date.parse(t.enqueued_at)-Date.parse(e.enqueued_at)},r=Kr(e,t.entryId),c=Pr()([].concat(Object(fn.a)(r.data),Object(fn.a)(t.payload.events)),"task_id").sort(n);return Object(u.a)(Object(u.a)({},e),{},{enqueueEventsByEntryId:Object(u.a)(Object(u.a)({},e.enqueueEventsByEntryId),{},Object(l.a)({},t.entryId,{loading:!1,data:c}))});case zr:var s=Kr(e,t.entryId);return Object(u.a)(Object(u.a)({},e),{},{enqueueEventsByEntryId:Object(u.a)(Object(u.a)({},e.enqueueEventsByEntryId),{},Object(l.a)({},t.entryId,Object(u.a)(Object(u.a)({},s),{},{loading:!1})))});default:return e}},Vr=Object(p.a)((function(e){return{table:{height:"80vh"},stickyHeaderCell:{background:e.palette.background.paper}}}));var Fr=Object(o.b)((function(e,t){return{events:Kr(e.schedulerEntries,t.entryId)}}),{listSchedulerEnqueueEventsAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){var n;return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:Hr,entryId:e}),t.prev=1,t.next=4,ya(e);case 4:n=t.sent,a({type:Ur,payload:n,entryId:e}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("listSchedulerEnqueueEventsAsync: ",Ca(t.t0)),a({type:zr,error:Ra(t.t0),entryId:e});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()}});var Qr,Yr=Fr((function(e){var t=Vr(),a=e.listSchedulerEnqueueEventsAsync,r=e.entryId,c=e.events;return Object(n.useEffect)((function(){a(r)}),[r,a]),Object(je.jsx)(vn.a,{className:t.table,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,"aria-label":"scheduler enqueue events table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{classes:{stickyHeader:t.stickyHeaderCell},children:"Enqueued"}),Object(je.jsx)(gn.a,{classes:{stickyHeader:t.stickyHeaderCell},children:"Task ID"})]})}),Object(je.jsx)(xn.a,{children:c.data.map((function(e){return Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{component:"th",scope:"row",children:Pa(e.enqueued_at)}),Object(je.jsx)(gn.a,{children:e.task_id})]},e.task_id)}))})]})})})),Wr=Object(p.a)((function(e){return{table:{minWidth:650},noBorder:{border:"none"},fixedCell:{position:"sticky",zIndex:1,left:0,background:e.palette.background.paper},modal:{display:"flex",alignItems:"center",justifyContent:"center"},modalContent:{background:e.palette.background.paper,padding:e.spacing(2),width:"540px",outline:"none",borderRadius:e.shape.borderRadius},eventsTable:{maxHeight:"80vh"}}}));!function(e){e[e.EntryId=0]="EntryId",e[e.Spec=1]="Spec",e[e.Type=2]="Type",e[e.Payload=3]="Payload",e[e.Options=4]="Options",e[e.NextEnqueue=5]="NextEnqueue",e[e.PrevEnqueue=6]="PrevEnqueue",e[e.None=7]="None"}(Qr||(Qr={}));var Jr=[{label:"Entry ID",key:"entry_id",sortBy:Qr.EntryId,align:"left"},{label:"Spec",key:"spec",sortBy:Qr.Spec,align:"left"},{label:"Type",key:"type",sortBy:Qr.Type,align:"left"},{label:"Payload",key:"task_payload",sortBy:Qr.Payload,align:"left"},{label:"Options",key:"options",sortBy:Qr.Options,align:"left"},{label:"Next Enqueue",key:"next_enqueue",sortBy:Qr.NextEnqueue,align:"left"},{label:"Prev Enqueue",key:"prev_enqueue",sortBy:Qr.PrevEnqueue,align:"left"},{label:"",key:"show_history",sortBy:Qr.None,align:"left"}];function $r(e,t){var a=Object(fn.a)(e);return a.sort(t),a}function Xr(e){var t=Wr(),a=Object(n.useState)(Qr.EntryId),r=Object(On.a)(a,2),c=r[0],s=r[1],i=Object(n.useState)(Un.Asc),o=Object(On.a)(i,2),l=o[0],u=o[1],j=Object(n.useState)(""),b=Object(On.a)(j,2),p=b[0],h=b[1];return 0===e.entries.length?Object(je.jsxs)(ve.a,{severity:"info",children:[Object(je.jsx)(ke.a,{children:"Info"}),"No entries found at this time."]}):Object(je.jsx)(je.Fragment,{children:Object(je.jsxs)(vn.a,{children:[Object(je.jsxs)(mn.a,{className:t.table,"aria-label":"scheduler entries table",children:[Object(je.jsx)(kn.a,{children:Object(je.jsx)(yn.a,{children:Jr.map((function(e,a){return Object(je.jsx)(gn.a,{align:e.align,className:Object(d.default)(0===a&&t.fixedCell),children:Object(je.jsx)(Sn.a,{active:e.sortBy===c,direction:l,onClick:(n=e.sortBy,function(e){if(n===c){var t=l===Un.Asc?Un.Desc:Un.Asc;u(t)}else s(n)}),children:e.label})},e.key);var n}))})}),Object(je.jsx)(xn.a,{children:$r(e.entries,(function(e,t){var a;switch(c){case Qr.EntryId:if(e.id===t.id)return 0;a=e.id *":{borderBottom:"unset"}},noBorder:{border:"none"}}}));function ec(e){var t=e.entry,a=e.isLastRow,n=Zr();return Object(je.jsxs)(yn.a,{className:n.rowRoot,children:[Object(je.jsx)(gn.a,{component:"th",scope:"row",className:Object(d.default)(a&&n.noBorder),children:t.id}),Object(je.jsx)(gn.a,{className:Object(d.default)(a&&n.noBorder),children:t.spec}),Object(je.jsx)(gn.a,{className:Object(d.default)(a&&n.noBorder),children:t.task_type}),Object(je.jsx)(gn.a,{className:Object(d.default)(a&&n.noBorder),children:Object(je.jsx)(qr,{language:"json",children:Ha(t.task_payload)})}),Object(je.jsx)(gn.a,{className:Object(d.default)(a&&n.noBorder),children:Object(je.jsx)(qr,{language:"go",children:t.options.length>0?t.options.join(", "):"No options"})}),Object(je.jsx)(gn.a,{className:Object(d.default)(a&&n.noBorder),children:Na(t.next_enqueue_at)}),Object(je.jsx)(gn.a,{className:Object(d.default)(a&&n.noBorder),children:t.prev_enqueue_at?Pa(t.prev_enqueue_at):"N/A"}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(_n.a,{title:"See History",children:Object(je.jsx)(T.a,{"aria-label":"expand row",size:"small",onClick:e.onShowHistoryClick,children:Object(je.jsx)(Cr.a,{})})})})]})}var tc=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},paper:{padding:e.spacing(2),display:"flex",overflow:"auto",flexDirection:"column"},heading:{paddingLeft:e.spacing(2),marginBottom:e.spacing(1)}}}));var ac=Object(o.b)((function(e){return{loading:e.schedulerEntries.loading,error:e.schedulerEntries.error,entries:e.schedulerEntries.data,pollInterval:e.settings.pollInterval}}),{listSchedulerEntriesAsync:function(){return function(){var e=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:Dr}),e.prev=1,e.next=4,va();case 4:a=e.sent,t({type:Lr,payload:a}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("listSchedulerEnqueueEventsAsync: ".concat(Ca(e.t0))),t({type:Br,error:Ra(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()}});var nc=ac((function(e){var t=e.pollInterval,a=e.listSchedulerEntriesAsync,n=tc();return lr(a,t),Object(je.jsx)(Oe.a,{maxWidth:"lg",className:n.container,children:Object(je.jsx)(fe.a,{container:!0,spacing:3,children:""===e.error?Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsxs)(me.a,{className:n.paper,variant:"outlined",children:[Object(je.jsx)(_.a,{variant:"h6",className:n.heading,children:"Scheduler Entries"}),Object(je.jsx)(Xr,{entries:e.entries})]})}):Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsxs)(ve.a,{severity:"error",children:[Object(je.jsx)(ke.a,{children:"Error"}),"Could not retrieve scheduler entries live data \u2014"," ",Object(je.jsx)("strong",{children:"See the logs for details"})]})})})})})),rc=a(6),cc=a(911),sc=a(375),ic=a(346),oc=a.n(ic),lc=a(905),uc=a(882),dc=a(906),jc=a(251),bc=a.n(jc),pc=a(73),hc=a.n(pc),Oc="GET_TASK_INFO_BEGIN",fc="GET_TASK_INFO_SUCCESS",mc="GET_TASK_INFO_ERROR",xc="LIST_ACTIVE_TASKS_BEGIN",gc="LIST_ACTIVE_TASKS_SUCCESS",vc="LIST_ACTIVE_TASKS_ERROR",kc="LIST_PENDING_TASKS_BEGIN",yc="LIST_PENDING_TASKS_SUCCESS",Sc="LIST_PENDING_TASKS_ERROR",_c="LIST_SCHEDULED_TASKS_BEGIN",Tc="LIST_SCHEDULED_TASKS_SUCCESS",Ec="LIST_SCHEDULED_TASKS_ERROR",Ac="LIST_RETRY_TASKS_BEGIN",Cc="LIST_RETRY_TASKS_SUCCESS",Rc="LIST_RETRY_TASKS_ERROR",wc="LIST_ARCHIVED_TASKS_BEGIN",Ic="LIST_ARCHIVED_TASKS_SUCCESS",qc="LIST_ARCHIVED_TASKS_ERROR",Nc="LIST_COMPLETED_TASKS_BEGIN",Pc="LIST_COMPLETED_TASKS_SUCCESS",Dc="LIST_COMPLETED_TASKS_ERROR",Lc="CANCEL_ACTIVE_TASK_BEGIN",Bc="CANCEL_ACTIVE_TASK_SUCCESS",Hc="CANCEL_ACTIVE_TASK_ERROR",Uc="CANCEL_ALL_ACTIVE_TASKS_BEGIN",zc="CANCEL_ALL_ACTIVE_TASKS_SUCCESS",Kc="CANCEL_ALL_ACTIVE_TASKS_ERROR",Gc="BATCH_CANCEL_ACTIVE_TASKS_BEGIN",Mc="BATCH_CANCEL_ACTIVE_TASKS_SUCCESS",Vc="BATCH_CANCEL_ACTIVE_TASKS_ERROR",Fc="RUN_SCHEDULED_TASK_BEGIN",Qc="RUN_SCHEDULED_TASK_SUCCESS",Yc="RUN_SCHEDULED_TASK_ERROR",Wc="RUN_RETRY_TASK_BEGIN",Jc="RUN_RETRY_TASK_SUCCESS",$c="RUN_RETRY_TASK_ERROR",Xc="RUN_ARCHIVED_TASK_BEGIN",Zc="RUN_ARCHIVED_TASK_SUCCESS",es="RUN_ARCHIVED_TASK_ERROR",ts="DELETE_PENDING_TASK_BEGIN",as="DELETE_PENDING_TASK_SUCCESS",ns="DELETE_PENDING_TASK_ERROR",rs="ARCHIVE_PENDING_TASK_BEGIN",cs="ARCHIVE_PENDING_TASK_SUCCESS",ss="ARCHIVE_PENDING_TASK_ERROR",is="DELETE_SCHEDULED_TASK_BEGIN",os="DELETE_SCHEDULED_TASK_SUCCESS",ls="DELETE_SCHEDULED_TASK_ERROR",us="ARCHIVE_SCHEDULED_TASK_BEGIN",ds="ARCHIVE_SCHEDULED_TASK_SUCCESS",js="ARCHIVE_SCHEDULED_TASK_ERROR",bs="ARCHIVE_RETRY_TASK_BEGIN",ps="ARCHIVE_RETRY_TASK_SUCCESS",hs="ARCHIVE_RETRY_TASK_ERROR",Os="BATCH_ARCHIVE_PENDING_TASKS_BEGIN",fs="BATCH_ARCHIVE_PENDING_TASKS_SUCCESS",ms="BATCH_RUN_PENDING_TASKS_ERROR",xs="BATCH_DELETE_PENDING_TASKS_BEGIN",gs="BATCH_DELETE_PENDING_TASKS_SUCCESS",vs="BATCH_DELETE_PENDING_TASKS_ERROR",ks="DELETE_ALL_PENDING_TASKS_BEGIN",ys="DELETE_ALL_PENDING_TASKS_SUCCESS",Ss="DELETE_ALL_PENDING_TASKS_ERROR",_s="ARCHIVE_ALL_PENDING_TASKS_BEGIN",Ts="ARCHIVE_ALL_PENDING_TASKS_SUCCESS",Es="ARCHIVE_ALL_PENDING_TASKS_ERROR",As="BATCH_RUN_SCHEDULED_TASKS_BEGIN",Cs="BATCH_RUN_SCHEDULED_TASKS_SUCCESS",Rs="BATCH_RUN_SCHEDULED_TASKS_ERROR",ws="BATCH_ARCHIVE_SCHEDULED_TASKS_BEGIN",Is="BATCH_ARCHIVE_SCHEDULED_TASKS_SUCCESS",qs="BATCH_RUN_SCHEDULED_TASKS_ERROR",Ns="BATCH_DELETE_SCHEDULED_TASKS_BEGIN",Ps="BATCH_DELETE_SCHEDULED_TASKS_SUCCESS",Ds="BATCH_DELETE_SCHEDULED_TASKS_ERROR",Ls="RUN_ALL_SCHEDULED_TASKS_BEGIN",Bs="RUN_ALL_SCHEDULED_TASKS_SUCCESS",Hs="RUN_ALL_SCHEDULED_TASKS_ERROR",Us="ARCHIVE_ALL_SCHEDULED_TASKS_BEGIN",zs="ARCHIVE_ALL_SCHEDULED_TASKS_SUCCESS",Ks="ARCHIVE_ALL_SCHEDULED_TASKS_ERROR",Gs="DELETE_ALL_SCHEDULED_TASKS_BEGIN",Ms="DELETE_ALL_SCHEDULED_TASKS_SUCCESS",Vs="DELETE_ALL_SCHEDULED_TASKS_ERROR",Fs="DELETE_RETRY_TASK_BEGIN",Qs="DELETE_RETRY_TASK_SUCCESS",Ys="DELETE_RETRY_TASK_ERROR",Ws="BATCH_RUN_RETRY_TASKS_BEGIN",Js="BATCH_RUN_RETRY_TASKS_SUCCESS",$s="BATCH_RUN_RETRY_TASKS_ERROR",Xs="BATCH_ARCHIVE_RETRY_TASKS_BEGIN",Zs="BATCH_ARCHIVE_RETRY_TASKS_SUCCESS",ei="BATCH_ARCHIVE_RETRY_TASKS_ERROR",ti="BATCH_DELETE_RETRY_TASKS_BEGIN",ai="BATCH_DELETE_RETRY_TASKS_SUCCESS",ni="BATCH_DELETE_RETRY_TASKS_ERROR",ri="RUN_ALL_RETRY_TASKS_BEGIN",ci="RUN_ALL_RETRY_TASKS_SUCCESS",si="RUN_ALL_RETRY_TASKS_ERROR",ii="ARCHIVE_ALL_RETRY_TASKS_BEGIN",oi="ARCHIVE_ALL_RETRY_TASKS_SUCCESS",li="ARCHIVE_ALL_RETRY_TASKS_ERROR",ui="DELETE_ALL_RETRY_TASKS_BEGIN",di="DELETE_ALL_RETRY_TASKS_SUCCESS",ji="DELETE_ALL_RETRY_TASKS_ERROR",bi="DELETE_ARCHIVED_TASK_BEGIN",pi="DELETE_ARCHIVED_TASK_SUCCESS",hi="DELETE_ARCHIVED_TASK_ERROR",Oi="BATCH_RUN_ARCHIVED_TASKS_BEGIN",fi="BATCH_RUN_ARCHIVED_TASKS_SUCCESS",mi="BATCH_RUN_ARCHIVED_TASKS_ERROR",xi="BATCH_DELETE_ARCHIVED_TASKS_BEGIN",gi="BATCH_DELETE_ARCHIVED_TASKS_SUCCESS",vi="BATCH_DELETE_ARCHIVED_TASKS_ERROR",ki="RUN_ALL_ARCHIVED_TASKS_BEGIN",yi="RUN_ALL_ARCHIVED_TASKS_SUCCESS",Si="RUN_ALL_ARCHIVED_TASKS_ERROR",_i="DELETE_ALL_ARCHIVED_TASKS_BEGIN",Ti="DELETE_ALL_ARCHIVED_TASKS_SUCCESS",Ei="DELETE_ALL_ARCHIVED_TASKS_ERROR",Ai="DELETE_COMPLETED_TASK_BEGIN",Ci="DELETE_COMPLETED_TASK_SUCCESS",Ri="DELETE_COMPLETED_TASK_ERROR",wi="DELETE_ALL_COMPLETED_TASKS_BEGIN",Ii="DELETE_ALL_COMPLETED_TASKS_SUCCESS",qi="DELETE_ALL_COMPLETED_TASKS_ERROR",Ni="BATCH_DELETE_COMPLETED_TASKS_BEGIN",Pi="BATCH_DELETE_COMPLETED_TASKS_SUCCESS",Di="BATCH_DELETE_COMPLETED_TASKS_ERROR";var Li=a(345),Bi=Object(p.a)((function(e){return{actionsContainer:{display:"flex",padding:"4px"},moreIcon:{marginRight:"8px"},iconGroup:{paddingLeft:e.spacing(1),borderLeft:"1px solid ".concat(e.palette.grey[100])}}}));function Hi(e){var t=Bi(),a=Object(n.useState)(null),r=Object(On.a)(a,2),c=r[0],s=r[1],i=function(){return s(null)};return Object(je.jsxs)("div",{className:t.actionsContainer,children:[Object(je.jsx)(_n.a,{title:"More Actions",children:Object(je.jsx)(T.a,{"aria-label":"actions",className:t.moreIcon,onClick:function(e){s(e.currentTarget)},children:Object(je.jsx)(qn.a,{})})}),Object(je.jsx)(Li.a,{id:"action-menu",keepMounted:!0,anchorEl:c,open:Boolean(c),onClose:i,children:e.menuItemActions.map((function(e){return Object(je.jsx)(cr.a,{onClick:function(){e.onClick(),i()},disabled:e.disabled,children:e.label},e.label)}))}),e.showIconButtons&&Object(je.jsx)("div",{className:t.iconGroup,children:e.iconButtonActions.map((function(e){return Object(je.jsx)(_n.a,{title:e.tooltip,children:Object(je.jsx)(T.a,{onClick:e.onClick,disabled:e.disabled,children:e.icon})},e.tooltip)}))})]})}var Ui=Object(p.a)((function(e){return{table:{minWidth:650},stickyHeaderCell:{background:e.palette.background.paper},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},pagination:{border:"none"}}}));var zi={listActiveTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:xc,queue:e}),a.prev=1,a.next=4,Ge(e,t);case 4:r=a.sent,n({type:gc,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("listActiveTasksAsync: ",Ca(a.t0)),n({type:vc,queue:e,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},cancelActiveTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Lc,queue:e,taskId:t}),a.prev=1,a.next=4,Ve(e,t);case 4:n({type:Bc,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("cancelActiveTaskAsync: ",Ca(a.t0)),n({type:Hc,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},batchCancelActiveTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Gc,queue:e,taskIds:t}),a.prev=1,a.next=4,We(e,t);case 4:r=a.sent,n({type:Mc,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchCancelActiveTasksAsync: ",Ca(a.t0)),n({type:Vc,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},cancelAllActiveTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:Uc,queue:e}),t.prev=1,t.next=4,Qe(e);case 4:a({type:zc,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("cancelAllActiveTasksAsync: ",Ca(t.t0)),a({type:Kc,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},taskRowsPerPageChange:te},Ki=[{key:"id",label:"ID",align:"left"},{key:"type",label:"Type",align:"left"},{key:"payload",label:"Payload",align:"left"},{key:"status",label:"Status",align:"left"},{key:"start-time",label:"Started",align:"left"},{key:"deadline",label:"Deadline",align:"left"},{key:"actions",label:"Actions",align:"center"}],Gi=Object(o.b)((function(e){return{loading:e.tasks.activeTasks.loading,error:e.tasks.activeTasks.error,tasks:e.tasks.activeTasks.data,batchActionPending:e.tasks.activeTasks.batchActionPending,allActionPending:e.tasks.activeTasks.allActionPending,pollInterval:e.settings.pollInterval,pageSize:e.settings.taskRowsPerPage}}),zi);var Mi=Object(p.a)((function(e){return{root:{cursor:"pointer","&:hover":{boxShadow:e.shadows[2]},"&:hover $copyButton":{display:"inline-block"},"&:hover .MuiTableCell-root":{borderBottomColor:e.palette.background.paper}},idCell:{width:"200px"},copyButton:{display:"none"},IdGroup:{display:"flex",alignItems:"center"}}}));function Vi(e){var t=e.task,a=Mi(),n=Object(b.f)();return Object(je.jsxs)(yn.a,{className:a.root,selected:e.isSelected,onClick:function(){return n.push(Y(t.queue,t.id))},children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",onClick:function(e){return e.stopPropagation()},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{onChange:function(t){return e.onSelectChange(t.target.checked)},checked:e.isSelected})})}),Object(je.jsx)(gn.a,{component:"th",scope:"row",className:a.idCell,children:Object(je.jsxs)("div",{className:a.IdGroup,children:[La(t.id),Object(je.jsx)(_n.a,{title:"Copy full ID to clipboard",children:Object(je.jsx)(T.a,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(t.id)},size:"small",className:a.copyButton,children:Object(je.jsx)(hc.a,{fontSize:"small"})})})]})}),Object(je.jsx)(gn.a,{children:t.type}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.payload)})}),Object(je.jsx)(gn.a,{children:t.canceling?"Canceling":t.is_orphaned?"Orphaned":"Running"}),Object(je.jsx)(gn.a,{children:t.is_orphaned?"-":"-"===t.start_time?"just now":Pa(t.start_time)}),Object(je.jsx)(gn.a,{children:"-"===t.deadline?"-":Na(t.deadline)}),!window.READ_ONLY&&Object(je.jsx)(gn.a,{align:"center",onMouseEnter:e.onActionCellEnter,onMouseLeave:e.onActionCellLeave,onClick:function(e){return e.stopPropagation()},children:e.showActions?Object(je.jsx)(r.a.Fragment,{children:Object(je.jsx)(_n.a,{title:"Cancel",children:Object(je.jsx)(T.a,{onClick:e.onCancelClick,disabled:t.requestPending||t.canceling||t.is_orphaned,size:"small",children:Object(je.jsx)(bc.a,{fontSize:"small"})})})}):Object(je.jsx)(T.a,{size:"small",onClick:e.onActionCellEnter,children:Object(je.jsx)(qn.a,{fontSize:"small"})})})]},t.id)}var Fi=Gi((function(e){var t=e.pollInterval,a=e.listActiveTasksAsync,r=e.queue,c=e.pageSize,s=Ui(),i=Object(n.useState)(0),o=Object(On.a)(i,2),l=o[0],u=o[1],d=Object(n.useState)([]),j=Object(On.a)(d,2),b=j[0],p=j[1],h=Object(n.useState)(""),O=Object(On.a)(h,2),f=O[0],m=O[1];if(lr(Object(n.useCallback)((function(){a(r,{page:l+1,size:c})}),[l,c,r,a]),t),e.error.length>0)return Object(je.jsxs)(ve.a,{severity:"error",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]});if(0===e.tasks.length)return Object(je.jsxs)(ve.a,{severity:"info",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Info"}),"No active tasks at this time."]});var x=e.tasks.length,g=b.length;return Object(je.jsxs)("div",{children:[!window.READ_ONLY&&Object(je.jsx)(Hi,{showIconButtons:g>0,iconButtonActions:[{tooltip:"Cancel",icon:Object(je.jsx)(bc.a,{}),onClick:function(){e.batchCancelActiveTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending}],menuItemActions:[{label:"Cancel All",onClick:function(){e.cancelAllActiveTasksAsync(r)},disabled:e.allActionPending}]}),Object(je.jsx)(vn.a,{component:me.a,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,className:s.table,"aria-label":"active tasks table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",classes:{stickyHeader:s.stickyHeaderCell},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{indeterminate:g>0&&g0&&g===x,onChange:function(t){if(t.target.checked){var a=e.tasks.map((function(e){return e.id}));p(a)}else p([])},inputProps:{"aria-label":"select all tasks shown in the table"}})})}),Ki.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e){return Object(je.jsx)(gn.a,{align:e.align,classes:{stickyHeader:s.stickyHeaderCell},children:e.label},e.key)}))]})}),Object(je.jsx)(xn.a,{children:e.tasks.map((function(t){return Object(je.jsx)(Vi,{task:t,isSelected:b.includes(t.id),onSelectChange:function(e){p(e?b.concat(t.id):b.filter((function(e){return e!==t.id})))},onCancelClick:function(){e.cancelActiveTaskAsync(r,t.id)},onActionCellEnter:function(){return m(t.id)},onActionCellLeave:function(){return m("")},showActions:f===t.id},t.id)}))}),Object(je.jsx)(uc.a,{children:Object(je.jsx)(yn.a,{children:Object(je.jsx)(dc.a,{rowsPerPageOptions:he,colSpan:Ki.length+1,count:e.tasks.length,rowsPerPage:c,page:l,SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0},onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(t){e.taskRowsPerPageChange(parseInt(t.target.value,10)),u(0)},ActionsComponent:pe,className:s.pagination})})})]})})]})})),Qi=a(104),Yi=a.n(Qi),Wi=Object(p.a)((function(e){return{table:{minWidth:650},stickyHeaderCell:{background:e.palette.background.paper},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},pagination:{border:"none"}}}));var Ji={listPendingTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:kc,queue:e}),a.prev=1,a.next=4,$e(e,t);case 4:r=a.sent,n({type:yc,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("listPendingTasksAsync: ",Ca(a.t0)),n({type:Sc,queue:e,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},deletePendingTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:ts,queue:e,taskId:t}),a.prev=1,a.next=4,bt(e,t);case 4:n({type:as,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("deletePendingTaskAsync: ",Ca(a.t0)),n({type:ns,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},batchDeletePendingTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:xs,queue:e,taskIds:t}),a.prev=1,a.next=4,ht(e,t);case 4:r=a.sent,n({type:gs,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchDeletePendingTasksAsync: ",Ca(a.t0)),n({type:vs,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},deleteAllPendingTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){var n;return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:ks,queue:e}),t.prev=1,t.next=4,ft(e);case 4:n=t.sent,a({type:ys,deleted:n.deleted,queue:e}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("deleteAllPendingTasksAsync: ",Ca(t.t0)),a({type:Ss,error:Ra(t.t0),queue:e});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},archivePendingTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:rs,queue:e,taskId:t}),a.prev=1,a.next=4,it(e,t);case 4:n({type:cs,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("archivePendingTaskAsync: ",Ca(a.t0)),n({type:ss,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},batchArchivePendingTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Os,queue:e,taskIds:t}),a.prev=1,a.next=4,lt(e,t);case 4:r=a.sent,n({type:fs,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchArchivePendingTasksAsync: ",Ca(a.t0)),n({type:ms,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},archiveAllPendingTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:_s,queue:e}),t.prev=1,t.next=4,dt(e);case 4:a({type:Ts,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("archiveAllPendingTasksAsync: ",Ca(t.t0)),a({type:Es,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},taskRowsPerPageChange:te},$i=Object(o.b)((function(e){return{loading:e.tasks.pendingTasks.loading,error:e.tasks.pendingTasks.error,tasks:e.tasks.pendingTasks.data,batchActionPending:e.tasks.pendingTasks.batchActionPending,allActionPending:e.tasks.pendingTasks.allActionPending,pollInterval:e.settings.pollInterval,pageSize:e.settings.taskRowsPerPage}}),Ji);var Xi=Object(p.a)((function(e){return{root:{cursor:"pointer","&:hover":{boxShadow:e.shadows[2]},"&:hover $copyButton":{display:"inline-block"},"&:hover .MuiTableCell-root":{borderBottomColor:e.palette.background.paper}},actionCell:{width:"96px"},actionButton:{marginLeft:3,marginRight:3},idCell:{width:"200px"},copyButton:{display:"none"},IdGroup:{display:"flex",alignItems:"center"}}}));function Zi(e){var t=e.task,a=Xi(),n=Object(b.f)();return Object(je.jsxs)(yn.a,{className:a.root,selected:e.isSelected,onClick:function(){return n.push(Y(t.queue,t.id))},children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",onClick:function(e){return e.stopPropagation()},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{onChange:function(t){return e.onSelectChange(t.target.checked)},checked:e.isSelected})})}),Object(je.jsx)(gn.a,{component:"th",scope:"row",className:a.idCell,children:Object(je.jsxs)("div",{className:a.IdGroup,children:[La(t.id),Object(je.jsx)(_n.a,{title:"Copy full ID to clipboard",children:Object(je.jsx)(T.a,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(t.id)},size:"small",className:a.copyButton,children:Object(je.jsx)(hc.a,{fontSize:"small"})})})]})}),Object(je.jsx)(gn.a,{children:t.type}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.payload)})}),Object(je.jsx)(gn.a,{align:"right",children:t.retried}),Object(je.jsx)(gn.a,{align:"right",children:t.max_retry}),!window.READ_ONLY&&Object(je.jsx)(gn.a,{align:"center",className:a.actionCell,onMouseEnter:e.onActionCellEnter,onMouseLeave:e.onActionCellLeave,onClick:function(e){return e.stopPropagation()},children:e.showActions?Object(je.jsxs)(r.a.Fragment,{children:[Object(je.jsx)(_n.a,{title:"Delete",children:Object(je.jsx)(T.a,{onClick:e.onDeleteClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(wn.a,{fontSize:"small"})})}),Object(je.jsx)(_n.a,{title:"Archive",children:Object(je.jsx)(T.a,{onClick:e.onArchiveClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(Yi.a,{fontSize:"small"})})})]}):Object(je.jsx)(T.a,{size:"small",onClick:e.onActionCellEnter,children:Object(je.jsx)(qn.a,{fontSize:"small"})})})]},t.id)}var eo=$i((function(e){var t=e.pollInterval,a=e.listPendingTasksAsync,r=e.queue,c=e.pageSize,s=Wi(),i=Object(n.useState)(0),o=Object(On.a)(i,2),l=o[0],u=o[1],d=Object(n.useState)([]),j=Object(On.a)(d,2),b=j[0],p=j[1],h=Object(n.useState)(""),O=Object(On.a)(h,2),f=O[0],m=O[1];if(lr(Object(n.useCallback)((function(){a(r,{page:l+1,size:c})}),[l,c,r,a]),t),e.error.length>0)return Object(je.jsxs)(ve.a,{severity:"error",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]});if(0===e.tasks.length)return Object(je.jsxs)(ve.a,{severity:"info",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Info"}),"No pending tasks at this time."]});var x=[{key:"id",label:"ID",align:"left"},{key:"type",label:"Type",align:"left"},{key:"paylod",label:"Payload",align:"left"},{key:"retried",label:"Retried",align:"right"},{key:"max_retry",label:"Max Retry",align:"right"},{key:"actions",label:"Actions",align:"center"}],g=e.tasks.length,v=b.length;return Object(je.jsxs)("div",{children:[!window.READ_ONLY&&Object(je.jsx)(Hi,{showIconButtons:v>0,iconButtonActions:[{tooltip:"Delete",icon:Object(je.jsx)(wn.a,{}),onClick:function(){e.batchDeletePendingTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending},{tooltip:"Archive",icon:Object(je.jsx)(Yi.a,{}),onClick:function(){e.batchArchivePendingTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending}],menuItemActions:[{label:"Delete All",onClick:function(){e.deleteAllPendingTasksAsync(r)},disabled:e.allActionPending},{label:"Archive All",onClick:function(){e.archiveAllPendingTasksAsync(r)},disabled:e.allActionPending}]}),Object(je.jsx)(vn.a,{component:me.a,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,className:s.table,"aria-label":"pending tasks table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",classes:{stickyHeader:s.stickyHeaderCell},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{indeterminate:v>0&&v0&&v===g,onChange:function(t){if(t.target.checked){var a=e.tasks.map((function(e){return e.id}));p(a)}else p([])},inputProps:{"aria-label":"select all tasks shown in the table"}})})}),x.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e){return Object(je.jsx)(gn.a,{align:e.align,classes:{stickyHeader:s.stickyHeaderCell},children:e.label},e.key)}))]})}),Object(je.jsx)(xn.a,{children:e.tasks.map((function(t){return Object(je.jsx)(Zi,{task:t,isSelected:b.includes(t.id),onSelectChange:function(e){p(e?b.concat(t.id):b.filter((function(e){return e!==t.id})))},allActionPending:e.allActionPending,onDeleteClick:function(){return e.deletePendingTaskAsync(r,t.id)},onArchiveClick:function(){e.archivePendingTaskAsync(r,t.id)},onActionCellEnter:function(){return m(t.id)},onActionCellLeave:function(){return m("")},showActions:f===t.id},t.id)}))}),Object(je.jsx)(uc.a,{children:Object(je.jsx)(yn.a,{children:Object(je.jsx)(dc.a,{rowsPerPageOptions:he,colSpan:x.length+1,count:e.totalTaskCount,rowsPerPage:c,page:l,SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0},onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(t){e.taskRowsPerPageChange(parseInt(t.target.value,10)),u(0)},ActionsComponent:pe,className:s.pagination})})})]})})]})})),to=a(105),ao=a.n(to),no=Object(p.a)((function(e){return{table:{minWidth:650},stickyHeaderCell:{background:e.palette.background.paper},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},pagination:{border:"none"}}}));var ro={listScheduledTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:_c,queue:e}),a.prev=1,a.next=4,Ze(e,t);case 4:r=a.sent,n({type:Tc,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("listScheduledTasksAsync: ",Ca(a.t0)),n({type:Ec,queue:e,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},batchDeleteScheduledTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Ns,queue:e,taskIds:t}),a.prev=1,a.next=4,_t(e,t);case 4:r=a.sent,n({type:Ps,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchDeleteScheduledTasksAsync: ",Ca(a.t0)),n({type:Ds,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},batchRunScheduledTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:As,queue:e,taskIds:t}),a.prev=1,a.next=4,Ct(e,t);case 4:r=a.sent,n({type:Cs,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchRunScheduledTasksAsync: ",Ca(a.t0)),n({type:Rs,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},batchArchiveScheduledTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:ws,queue:e,taskIds:t}),a.prev=1,a.next=4,qt(e,t);case 4:r=a.sent,n({type:Is,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchArchiveScheduledTasksAsync: ",Ca(a.t0)),n({type:qs,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},deleteAllScheduledTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){var n;return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:Gs,queue:e}),t.prev=1,t.next=4,Et(e);case 4:n=t.sent,a({type:Ms,deleted:n.deleted,queue:e}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("deleteAllScheduledTasksAsync: ",Ca(t.t0)),a({type:Vs,error:Ra(t.t0),queue:e});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},runAllScheduledTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:Ls,queue:e}),t.prev=1,t.next=4,wt(e);case 4:a({type:Bs,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("runAllScheduledTasksAsync: ",Ca(t.t0)),a({type:Hs,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},archiveAllScheduledTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:Us,queue:e}),t.prev=1,t.next=4,Pt(e);case 4:a({type:zs,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("archiveAllScheduledTasksAsync: ",Ca(t.t0)),a({type:Ks,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},deleteScheduledTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:is,queue:e,taskId:t}),a.prev=1,a.next=4,yt(e,t);case 4:n({type:os,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("deleteScheduledTaskAsync: ",Ca(a.t0)),n({type:ls,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},runScheduledTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Fc,queue:e,taskId:t}),a.prev=1,a.next=4,xt(e,t);case 4:n({type:Qc,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("runScheduledTaskAsync: ",Ca(a.t0)),n({type:Yc,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},archiveScheduledTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:us,queue:e,taskId:t}),a.prev=1,a.next=4,vt(e,t);case 4:n({type:ds,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("archiveScheduledTaskAsync: ",Ca(a.t0)),n({type:js,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},taskRowsPerPageChange:te},co=Object(o.b)((function(e){return{loading:e.tasks.scheduledTasks.loading,error:e.tasks.scheduledTasks.error,tasks:e.tasks.scheduledTasks.data,batchActionPending:e.tasks.scheduledTasks.batchActionPending,allActionPending:e.tasks.scheduledTasks.allActionPending,pollInterval:e.settings.pollInterval,pageSize:e.settings.taskRowsPerPage}}),ro);var so=Object(p.a)((function(e){return{root:{cursor:"pointer","&:hover":{boxShadow:e.shadows[2]},"&:hover $copyButton":{display:"inline-block"},"&:hover .MuiTableCell-root":{borderBottomColor:e.palette.background.paper}},actionCell:{width:"140px"},actionButton:{marginLeft:3,marginRight:3},idCell:{width:"200px"},copyButton:{display:"none"},IdGroup:{display:"flex",alignItems:"center"}}}));function io(e){var t=e.task,a=so(),n=Object(b.f)();return Object(je.jsxs)(yn.a,{className:a.root,selected:e.isSelected,onClick:function(){return n.push(Y(t.queue,t.id))},children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",onClick:function(e){return e.stopPropagation()},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{onChange:function(t){return e.onSelectChange(t.target.checked)},checked:e.isSelected})})}),Object(je.jsx)(gn.a,{component:"th",scope:"row",className:a.idCell,children:Object(je.jsxs)("div",{className:a.IdGroup,children:[La(t.id),Object(je.jsx)(_n.a,{title:"Copy full ID to clipboard",children:Object(je.jsx)(T.a,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(t.id)},size:"small",className:a.copyButton,children:Object(je.jsx)(hc.a,{fontSize:"small"})})})]})}),Object(je.jsx)(gn.a,{children:t.type}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.payload)})}),Object(je.jsx)(gn.a,{children:Na(t.next_process_at)}),!window.READ_ONLY&&Object(je.jsx)(gn.a,{align:"center",className:a.actionCell,onMouseEnter:e.onActionCellEnter,onMouseLeave:e.onActionCellLeave,onClick:function(e){return e.stopPropagation()},children:e.showActions?Object(je.jsxs)(r.a.Fragment,{children:[Object(je.jsx)(_n.a,{title:"Delete",children:Object(je.jsx)(T.a,{onClick:e.onDeleteClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(wn.a,{fontSize:"small"})})}),Object(je.jsx)(_n.a,{title:"Archive",children:Object(je.jsx)(T.a,{onClick:e.onArchiveClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(Yi.a,{fontSize:"small"})})}),Object(je.jsx)(_n.a,{title:"Run",children:Object(je.jsx)(T.a,{onClick:e.onRunClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(ao.a,{fontSize:"small"})})})]}):Object(je.jsx)(T.a,{size:"small",onClick:e.onActionCellEnter,children:Object(je.jsx)(qn.a,{fontSize:"small"})})})]},t.id)}var oo=co((function(e){var t=e.pollInterval,a=e.listScheduledTasksAsync,r=e.queue,c=e.pageSize,s=no(),i=Object(n.useState)(0),o=Object(On.a)(i,2),l=o[0],u=o[1],d=Object(n.useState)([]),j=Object(On.a)(d,2),b=j[0],p=j[1],h=Object(n.useState)(""),O=Object(On.a)(h,2),f=O[0],m=O[1];if(lr(Object(n.useCallback)((function(){a(r,{page:l+1,size:c})}),[l,c,r,a]),t),e.error.length>0)return Object(je.jsxs)(ve.a,{severity:"error",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]});if(0===e.tasks.length)return Object(je.jsxs)(ve.a,{severity:"info",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Info"}),"No scheduled tasks at this time."]});var x=[{key:"id",label:"ID",align:"left"},{key:"type",label:"Type",align:"left"},{key:"payload",label:"Payload",align:"left"},{key:"process_in",label:"Process In",align:"left"},{key:"actions",label:"Actions",align:"center"}],g=e.tasks.length,v=b.length;return Object(je.jsxs)("div",{children:[!window.READ_ONLY&&Object(je.jsx)(Hi,{showIconButtons:v>0,iconButtonActions:[{tooltip:"Delete",icon:Object(je.jsx)(wn.a,{}),onClick:function(){e.batchDeleteScheduledTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending},{tooltip:"Archive",icon:Object(je.jsx)(Yi.a,{}),onClick:function(){e.batchArchiveScheduledTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending},{tooltip:"Run",icon:Object(je.jsx)(ao.a,{}),onClick:function(){e.batchRunScheduledTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending}],menuItemActions:[{label:"Delete All",onClick:function(){e.deleteAllScheduledTasksAsync(r)},disabled:e.allActionPending},{label:"Archive All",onClick:function(){e.archiveAllScheduledTasksAsync(r)},disabled:e.allActionPending},{label:"Run All",onClick:function(){e.runAllScheduledTasksAsync(r)},disabled:e.allActionPending}]}),Object(je.jsx)(vn.a,{component:me.a,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,className:s.table,"aria-label":"scheduled tasks table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",classes:{stickyHeader:s.stickyHeaderCell},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{indeterminate:v>0&&v0&&v===g,onChange:function(t){if(t.target.checked){var a=e.tasks.map((function(e){return e.id}));p(a)}else p([])},inputProps:{"aria-label":"select all tasks shown in the table"}})})}),x.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e){return Object(je.jsx)(gn.a,{align:e.align,classes:{stickyHeader:s.stickyHeaderCell},children:e.label},e.label)}))]})}),Object(je.jsx)(xn.a,{children:e.tasks.map((function(t){return Object(je.jsx)(io,{task:t,allActionPending:e.allActionPending,isSelected:b.includes(t.id),onSelectChange:function(e){p(e?b.concat(t.id):b.filter((function(e){return e!==t.id})))},onRunClick:function(){e.runScheduledTaskAsync(r,t.id)},onDeleteClick:function(){e.deleteScheduledTaskAsync(r,t.id)},onArchiveClick:function(){e.archiveScheduledTaskAsync(r,t.id)},onActionCellEnter:function(){return m(t.id)},onActionCellLeave:function(){return m("")},showActions:f===t.id},t.id)}))}),Object(je.jsx)(uc.a,{children:Object(je.jsx)(yn.a,{children:Object(je.jsx)(dc.a,{rowsPerPageOptions:he,colSpan:x.length+1,count:e.totalTaskCount,rowsPerPage:c,page:l,SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0},onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(t){e.taskRowsPerPageChange(parseInt(t.target.value,10)),u(0)},ActionsComponent:pe,className:s.pagination})})})]})})]})})),lo=Object(p.a)((function(e){return{table:{minWidth:650},stickyHeaderCell:{background:e.palette.background.paper},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},pagination:{border:"none"}}}));var uo={batchDeleteRetryTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:ti,queue:e,taskIds:t}),a.prev=1,a.next=4,Gt(e,t);case 4:r=a.sent,n({type:ai,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchDeleteRetryTasksAsync: ",Ca(a.t0)),n({type:ni,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},batchRunRetryTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Ws,queue:e,taskIds:t}),a.prev=1,a.next=4,Qt(e,t);case 4:r=a.sent,n({type:Js,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchRunRetryTasksAsync: ",Ca(a.t0)),n({type:$s,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},batchArchiveRetryTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Xs,queue:e,taskIds:t}),a.prev=1,a.next=4,$t(e,t);case 4:r=a.sent,n({type:Zs,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchArchiveRetryTasksAsync: ",Ca(a.t0)),n({type:ei,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},deleteAllRetryTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){var n;return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:ui,queue:e}),t.prev=1,t.next=4,Vt(e);case 4:n=t.sent,a({type:di,deleted:n.deleted,queue:e}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("deleteAllRetryTasksAsync: ",Ca(t.t0)),a({type:ji,error:Ra(t.t0),queue:e});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},runAllRetryTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:ri,queue:e}),t.prev=1,t.next=4,Wt(e);case 4:a({type:ci,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("runAllRetryTasksAsync: ",Ca(t.t0)),a({type:si,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},archiveAllRetryTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:ii,queue:e}),t.prev=1,t.next=4,Zt(e);case 4:a({type:oi,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("archiveAllRetryTasksAsync: ",Ca(t.t0)),a({type:li,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},listRetryTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Ac,queue:e}),a.prev=1,a.next=4,tt(e,t);case 4:r=a.sent,n({type:Cc,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("listRetryTasksAsync: ",Ca(a.t0)),n({type:Rc,queue:e,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},deleteRetryTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Fs,queue:e,taskId:t}),a.prev=1,a.next=4,zt(e,t);case 4:n({type:Qs,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("deleteRetryTaskAsync: ",Ca(a.t0)),n({type:Ys,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},runRetryTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Wc,queue:e,taskId:t}),a.prev=1,a.next=4,Lt(e,t);case 4:n({type:Jc,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("runRetryTaskAsync: ",Ca(a.t0)),n({type:$c,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},archiveRetryTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:bs,queue:e,taskId:t}),a.prev=1,a.next=4,Ht(e,t);case 4:n({type:ps,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("archiveRetryTaskAsync: ",Ca(a.t0)),n({type:hs,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},taskRowsPerPageChange:te},jo=Object(o.b)((function(e){return{loading:e.tasks.retryTasks.loading,error:e.tasks.retryTasks.error,tasks:e.tasks.retryTasks.data,batchActionPending:e.tasks.retryTasks.batchActionPending,allActionPending:e.tasks.retryTasks.allActionPending,pollInterval:e.settings.pollInterval,pageSize:e.settings.taskRowsPerPage}}),uo);var bo=Object(p.a)((function(e){return{root:{cursor:"pointer","&:hover":{boxShadow:e.shadows[2]},"&:hover $copyButton":{display:"inline-block"},"&:hover .MuiTableCell-root":{borderBottomColor:e.palette.background.paper}},actionCell:{width:"140px"},actionButton:{marginLeft:3,marginRight:3},idCell:{width:"200px"},copyButton:{display:"none"},IdGroup:{display:"flex",alignItems:"center"}}}));function po(e){var t=e.task,a=bo(),n=Object(b.f)();return Object(je.jsxs)(yn.a,{className:a.root,selected:e.isSelected,onClick:function(){return n.push(Y(t.queue,t.id))},children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",onClick:function(e){return e.stopPropagation()},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{onChange:function(t){return e.onSelectChange(t.target.checked)},checked:e.isSelected})})}),Object(je.jsx)(gn.a,{component:"th",scope:"row",className:a.idCell,children:Object(je.jsxs)("div",{className:a.IdGroup,children:[La(t.id),Object(je.jsx)(_n.a,{title:"Copy full ID to clipboard",children:Object(je.jsx)(T.a,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(t.id)},size:"small",className:a.copyButton,children:Object(je.jsx)(hc.a,{fontSize:"small"})})})]})}),Object(je.jsx)(gn.a,{children:t.type}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.payload)})}),Object(je.jsx)(gn.a,{children:Na(t.next_process_at)}),Object(je.jsx)(gn.a,{children:t.error_message}),Object(je.jsx)(gn.a,{align:"right",children:t.retried}),Object(je.jsx)(gn.a,{align:"right",children:t.max_retry}),!window.READ_ONLY&&Object(je.jsx)(gn.a,{align:"center",className:a.actionCell,onMouseEnter:e.onActionCellEnter,onMouseLeave:e.onActionCellLeave,onClick:function(e){return e.stopPropagation()},children:e.showActions?Object(je.jsxs)(r.a.Fragment,{children:[Object(je.jsx)(_n.a,{title:"Delete",children:Object(je.jsx)(T.a,{onClick:e.onDeleteClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(wn.a,{fontSize:"small"})})}),Object(je.jsx)(_n.a,{title:"Archive",children:Object(je.jsx)(T.a,{onClick:e.onArchiveClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(Yi.a,{fontSize:"small"})})}),Object(je.jsx)(_n.a,{title:"Run",children:Object(je.jsx)(T.a,{onClick:e.onRunClick,disabled:t.requestPending||e.allActionPending,size:"small",className:a.actionButton,children:Object(je.jsx)(ao.a,{fontSize:"small"})})})]}):Object(je.jsx)(T.a,{size:"small",onClick:e.onActionCellEnter,children:Object(je.jsx)(qn.a,{fontSize:"small"})})})]},t.id)}var ho=jo((function(e){var t=e.pollInterval,a=e.listRetryTasksAsync,r=e.queue,c=e.pageSize,s=lo(),i=Object(n.useState)(0),o=Object(On.a)(i,2),l=o[0],u=o[1],d=Object(n.useState)([]),j=Object(On.a)(d,2),b=j[0],p=j[1],h=Object(n.useState)(""),O=Object(On.a)(h,2),f=O[0],m=O[1];if(lr(Object(n.useCallback)((function(){a(r,{page:l+1,size:c})}),[l,c,r,a]),t),e.error.length>0)return Object(je.jsxs)(ve.a,{severity:"error",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]});if(0===e.tasks.length)return Object(je.jsxs)(ve.a,{severity:"info",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Info"}),"No retry tasks at this time."]});var x=[{key:"id",label:"ID",align:"left"},{key:"type",label:"Type",align:"left"},{key:"payload",label:"Payload",align:"left"},{key:"retry_in",label:"Retry In",align:"left"},{key:"last_error",label:"Last Error",align:"left"},{key:"retried",label:"Retried",align:"right"},{key:"max_retry",label:"Max Retry",align:"right"},{key:"actions",label:"Actions",align:"center"}],g=e.tasks.length,v=b.length;return Object(je.jsxs)("div",{children:[!window.READ_ONLY&&Object(je.jsx)(Hi,{showIconButtons:v>0,iconButtonActions:[{tooltip:"Delete",icon:Object(je.jsx)(wn.a,{}),onClick:function(){e.batchDeleteRetryTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending},{tooltip:"Archive",icon:Object(je.jsx)(Yi.a,{}),onClick:function(){e.batchArchiveRetryTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending},{tooltip:"Run",icon:Object(je.jsx)(ao.a,{}),onClick:function(){e.batchRunRetryTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending}],menuItemActions:[{label:"Delete All",onClick:function(){e.deleteAllRetryTasksAsync(r)},disabled:e.allActionPending},{label:"Archive All",onClick:function(){e.archiveAllRetryTasksAsync(r)},disabled:e.allActionPending},{label:"Run All",onClick:function(){e.runAllRetryTasksAsync(r)},disabled:e.allActionPending}]}),Object(je.jsx)(vn.a,{component:me.a,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,className:s.table,"aria-label":"retry tasks table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",classes:{stickyHeader:s.stickyHeaderCell},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{indeterminate:v>0&&v0&&v===g,onChange:function(t){if(t.target.checked){var a=e.tasks.map((function(e){return e.id}));p(a)}else p([])},inputProps:{"aria-label":"select all tasks shown in the table"}})})}),x.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e){return Object(je.jsx)(gn.a,{align:e.align,classes:{stickyHeader:s.stickyHeaderCell},children:e.label},e.label)}))]})}),Object(je.jsx)(xn.a,{children:e.tasks.map((function(t){return Object(je.jsx)(po,{task:t,allActionPending:e.allActionPending,isSelected:b.includes(t.id),onSelectChange:function(e){p(e?b.concat(t.id):b.filter((function(e){return e!==t.id})))},onRunClick:function(){e.runRetryTaskAsync(t.queue,t.id)},onDeleteClick:function(){e.deleteRetryTaskAsync(t.queue,t.id)},onArchiveClick:function(){e.archiveRetryTaskAsync(t.queue,t.id)},onActionCellEnter:function(){return m(t.id)},onActionCellLeave:function(){return m("")},showActions:f===t.id},t.id)}))}),Object(je.jsx)(uc.a,{children:Object(je.jsx)(yn.a,{children:Object(je.jsx)(dc.a,{rowsPerPageOptions:he,colSpan:x.length+1,count:e.totalTaskCount,rowsPerPage:c,page:l,SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0},onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(t){e.taskRowsPerPageChange(parseInt(t.target.value,10)),u(0)},ActionsComponent:pe,className:s.pagination})})})]})})]})})),Oo=Object(p.a)((function(e){return{table:{minWidth:650},stickyHeaderCell:{background:e.palette.background.paper},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},pagination:{border:"none"},idCell:{width:"200px"}}}));var fo={listArchivedTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:wc,queue:e}),a.prev=1,a.next=4,nt(e,t);case 4:r=a.sent,n({type:Ic,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("listArchivedTasksAsync: ",Ca(a.t0)),n({type:qc,queue:e,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},runArchivedTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Xc,queue:e,taskId:t}),a.prev=1,a.next=4,ta(e,t);case 4:n({type:Zc,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("runArchivedTaskAsync: ",Ca(a.t0)),n({type:es,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},runAllArchivedTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:ki,queue:e}),t.prev=1,t.next=4,da(e);case 4:a({type:yi,queue:e}),t.next=11;break;case 7:t.prev=7,t.t0=t.catch(1),console.error("runAllArchivedTasksAsync: ",Ca(t.t0)),a({type:Si,error:Ra(t.t0),queue:e});case 11:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e){return t.apply(this,arguments)}}()},deleteArchivedTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:bi,queue:e,taskId:t}),a.prev=1,a.next=4,na(e,t);case 4:n({type:pi,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("deleteArchivedTaskAsync: ",Ca(a.t0)),n({type:hi,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},deleteAllArchivedTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){var n;return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:_i,queue:e}),t.prev=1,t.next=4,ia(e);case 4:n=t.sent,a({type:Ti,deleted:n.deleted,queue:e}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("deleteAllArchivedTasksAsync: ",Ca(t.t0)),a({type:Ei,error:Ra(t.t0),queue:e});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},batchRunArchivedTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Oi,queue:e,taskIds:t}),a.prev=1,a.next=4,la(e,t);case 4:r=a.sent,n({type:fi,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchRunArchivedTasksAsync: ",Ca(a.t0)),n({type:mi,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},batchDeleteArchivedTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:xi,queue:e,taskIds:t}),a.prev=1,a.next=4,ca(e,t);case 4:r=a.sent,n({type:gi,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchDeleteArchivedTasksAsync: ",Ca(a.t0)),n({type:vi,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},taskRowsPerPageChange:te},mo=Object(o.b)((function(e){return{loading:e.tasks.archivedTasks.loading,error:e.tasks.archivedTasks.error,tasks:e.tasks.archivedTasks.data,batchActionPending:e.tasks.archivedTasks.batchActionPending,allActionPending:e.tasks.archivedTasks.allActionPending,pollInterval:e.settings.pollInterval,pageSize:e.settings.taskRowsPerPage}}),fo);var xo=Object(p.a)((function(e){return{root:{cursor:"pointer","&:hover":{boxShadow:e.shadows[2]},"&:hover $copyButton":{display:"inline-block"},"&:hover .MuiTableCell-root":{borderBottomColor:e.palette.background.paper}},actionCell:{width:"96px"},actionButton:{marginLeft:3,marginRight:3},idCell:{width:"200px"},copyButton:{display:"none"},IdGroup:{display:"flex",alignItems:"center"}}}));function go(e){var t=e.task,a=xo(),n=Object(b.f)();return Object(je.jsxs)(yn.a,{className:a.root,selected:e.isSelected,onClick:function(){return n.push(Y(t.queue,t.id))},children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",onClick:function(e){return e.stopPropagation()},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{onChange:function(t){return e.onSelectChange(t.target.checked)},checked:e.isSelected})})}),Object(je.jsx)(gn.a,{component:"th",scope:"row",className:a.idCell,children:Object(je.jsxs)("div",{className:a.IdGroup,children:[La(t.id),Object(je.jsx)(_n.a,{title:"Copy full ID to clipboard",children:Object(je.jsx)(T.a,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(t.id)},size:"small",className:a.copyButton,children:Object(je.jsx)(hc.a,{fontSize:"small"})})})]})}),Object(je.jsx)(gn.a,{children:t.type}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.payload)})}),Object(je.jsx)(gn.a,{children:Pa(t.last_failed_at)}),Object(je.jsx)(gn.a,{children:t.error_message}),!window.READ_ONLY&&Object(je.jsx)(gn.a,{align:"center",className:a.actionCell,onMouseEnter:e.onActionCellEnter,onMouseLeave:e.onActionCellLeave,onClick:function(e){return e.stopPropagation()},children:e.showActions?Object(je.jsxs)(r.a.Fragment,{children:[Object(je.jsx)(_n.a,{title:"Delete",children:Object(je.jsx)(T.a,{className:a.actionButton,onClick:e.onDeleteClick,disabled:t.requestPending||e.allActionPending,size:"small",children:Object(je.jsx)(wn.a,{fontSize:"small"})})}),Object(je.jsx)(_n.a,{title:"Run",children:Object(je.jsx)(T.a,{className:a.actionButton,onClick:e.onRunClick,disabled:t.requestPending||e.allActionPending,size:"small",children:Object(je.jsx)(ao.a,{fontSize:"small"})})})]}):Object(je.jsx)(T.a,{size:"small",onClick:e.onActionCellEnter,children:Object(je.jsx)(qn.a,{fontSize:"small"})})})]},t.id)}var vo=mo((function(e){var t=e.pollInterval,a=e.listArchivedTasksAsync,r=e.queue,c=e.pageSize,s=Oo(),i=Object(n.useState)(0),o=Object(On.a)(i,2),l=o[0],u=o[1],d=Object(n.useState)([]),j=Object(On.a)(d,2),b=j[0],p=j[1],h=Object(n.useState)(""),O=Object(On.a)(h,2),f=O[0],m=O[1];if(lr(Object(n.useCallback)((function(){a(r,{page:l+1,size:c})}),[l,c,r,a]),t),e.error.length>0)return Object(je.jsxs)(ve.a,{severity:"error",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]});if(0===e.tasks.length)return Object(je.jsxs)(ve.a,{severity:"info",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Info"}),"No archived tasks at this time."]});var x=[{key:"id",label:"ID",align:"left"},{key:"type",label:"Type",align:"left"},{key:"payload",label:"Payload",align:"left"},{key:"last_failed",label:"Last Failed",align:"left"},{key:"last_error",label:"Last Error",align:"left"},{key:"actions",label:"Actions",align:"center"}],g=e.tasks.length,v=b.length;return Object(je.jsxs)("div",{children:[!window.READ_ONLY&&Object(je.jsx)(Hi,{showIconButtons:v>0,iconButtonActions:[{tooltip:"Delete",icon:Object(je.jsx)(wn.a,{}),onClick:function(){e.batchDeleteArchivedTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending},{tooltip:"Run",icon:Object(je.jsx)(ao.a,{}),onClick:function(){e.batchRunArchivedTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending}],menuItemActions:[{label:"Delete All",onClick:function(){e.deleteAllArchivedTasksAsync(r)},disabled:e.allActionPending},{label:"Run All",onClick:function(){e.runAllArchivedTasksAsync(r)},disabled:e.allActionPending}]}),Object(je.jsx)(vn.a,{component:me.a,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,className:s.table,"aria-label":"archived tasks table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",classes:{stickyHeader:s.stickyHeaderCell},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{indeterminate:v>0&&v0&&v===g,onChange:function(t){if(t.target.checked){var a=e.tasks.map((function(e){return e.id}));p(a)}else p([])},inputProps:{"aria-label":"select all tasks shown in the table"}})})}),x.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e){return Object(je.jsx)(gn.a,{align:e.align,classes:{stickyHeader:s.stickyHeaderCell},children:e.label},e.key)}))]})}),Object(je.jsx)(xn.a,{children:e.tasks.map((function(t){return Object(je.jsx)(go,{task:t,isSelected:b.includes(t.id),onSelectChange:function(e){p(e?b.concat(t.id):b.filter((function(e){return e!==t.id})))},onRunClick:function(){e.runArchivedTaskAsync(r,t.id)},onDeleteClick:function(){e.deleteArchivedTaskAsync(r,t.id)},allActionPending:e.allActionPending,onActionCellEnter:function(){return m(t.id)},onActionCellLeave:function(){return m("")},showActions:f===t.id},t.id)}))}),Object(je.jsx)(uc.a,{children:Object(je.jsx)(yn.a,{children:Object(je.jsx)(dc.a,{rowsPerPageOptions:he,colSpan:x.length+1,count:e.totalTaskCount,rowsPerPage:c,page:l,SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0},onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(t){e.taskRowsPerPageChange(parseInt(t.target.value,10)),u(0)},ActionsComponent:pe,className:s.pagination})})})]})})]})})),ko=Object(p.a)((function(e){return{table:{minWidth:650},stickyHeaderCell:{background:e.palette.background.paper},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},pagination:{border:"none"}}}));var yo={listCompletedTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,n({type:Nc,queue:e}),a.next=4,ct(e,t);case 4:r=a.sent,n({type:Pc,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(0),console.error("listCompletedTasksAsync: ",Ca(a.t0)),n({type:Dc,queue:e,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[0,8]])})));return function(e){return a.apply(this,arguments)}}()},deleteCompletedTaskAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Ai,queue:e,taskId:t}),a.prev=1,a.next=4,ba(e,t);case 4:n({type:Ci,queue:e,taskId:t}),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(1),console.error("deleteCompletedTaskAsync: ",Ca(a.t0)),n({type:Ri,error:Ra(a.t0),queue:e,taskId:t});case 11:case"end":return a.stop()}}),a,null,[[1,7]])})));return function(e){return a.apply(this,arguments)}}()},deleteAllCompletedTasksAsync:function(e){return function(){var t=Object(ye.a)(_e.a.mark((function t(a){var n;return _e.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({type:wi,queue:e}),t.prev=1,t.next=4,fa(e);case 4:n=t.sent,a({type:Ii,deleted:n.deleted,queue:e}),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(1),console.error("deleteAllCompletedTasksAsync: ",Ca(t.t0)),a({type:qi,error:Ra(t.t0),queue:e});case 12:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(e){return t.apply(this,arguments)}}()},batchDeleteCompletedTasksAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Ni,queue:e,taskIds:t}),a.prev=1,a.next=4,ha(e,t);case 4:r=a.sent,n({type:Pi,queue:e,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("batchDeleteCompletedTasksAsync: ",Ca(a.t0)),n({type:Di,error:Ra(a.t0),queue:e,taskIds:t});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},taskRowsPerPageChange:te},So=Object(o.b)((function(e){return{loading:e.tasks.completedTasks.loading,error:e.tasks.completedTasks.error,tasks:e.tasks.completedTasks.data,batchActionPending:e.tasks.completedTasks.batchActionPending,allActionPending:e.tasks.completedTasks.allActionPending,pollInterval:e.settings.pollInterval,pageSize:e.settings.taskRowsPerPage}}),yo);var _o=Object(p.a)((function(e){return{root:{cursor:"pointer","&:hover":{boxShadow:e.shadows[2]},"&:hover $copyButton":{display:"inline-block"},"&:hover .MuiTableCell-root":{borderBottomColor:e.palette.background.paper}},actionCell:{width:"96px"},actionButton:{marginLeft:3,marginRight:3},idCell:{width:"200px"},copyButton:{display:"none"},IdGroup:{display:"flex",alignItems:"center"}}}));function To(e){var t=e.task,a=_o(),n=Object(b.f)();return Object(je.jsxs)(yn.a,{className:a.root,selected:e.isSelected,onClick:function(){return n.push(Y(t.queue,t.id))},children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",onClick:function(e){return e.stopPropagation()},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{onChange:function(t){return e.onSelectChange(t.target.checked)},checked:e.isSelected})})}),Object(je.jsx)(gn.a,{component:"th",scope:"row",className:a.idCell,children:Object(je.jsxs)("div",{className:a.IdGroup,children:[La(t.id),Object(je.jsx)(_n.a,{title:"Copy full ID to clipboard",children:Object(je.jsx)(T.a,{onClick:function(e){e.stopPropagation(),navigator.clipboard.writeText(t.id)},size:"small",className:a.copyButton,children:Object(je.jsx)(hc.a,{fontSize:"small"})})})]})}),Object(je.jsx)(gn.a,{children:t.type}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.payload)})}),Object(je.jsx)(gn.a,{children:Pa(t.completed_at)}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(t.result)})}),Object(je.jsx)(gn.a,{children:t.ttl_seconds>0?"".concat(qa(wa(t.ttl_seconds))," left"):"expired"}),!window.READ_ONLY&&Object(je.jsx)(gn.a,{align:"center",className:a.actionCell,onMouseEnter:e.onActionCellEnter,onMouseLeave:e.onActionCellLeave,onClick:function(e){return e.stopPropagation()},children:e.showActions?Object(je.jsx)(r.a.Fragment,{children:Object(je.jsx)(_n.a,{title:"Delete",children:Object(je.jsx)(T.a,{className:a.actionButton,onClick:e.onDeleteClick,disabled:t.requestPending||e.allActionPending,size:"small",children:Object(je.jsx)(wn.a,{fontSize:"small"})})})}):Object(je.jsx)(T.a,{size:"small",onClick:e.onActionCellEnter,children:Object(je.jsx)(qn.a,{fontSize:"small"})})})]},t.id)}var Eo=So((function(e){var t=e.pollInterval,a=e.listCompletedTasksAsync,r=e.queue,c=e.pageSize,s=ko(),i=Object(n.useState)(0),o=Object(On.a)(i,2),l=o[0],u=o[1],d=Object(n.useState)([]),j=Object(On.a)(d,2),b=j[0],p=j[1],h=Object(n.useState)(""),O=Object(On.a)(h,2),f=O[0],m=O[1];if(lr(Object(n.useCallback)((function(){a(r,{page:l+1,size:c})}),[l,c,r,a]),t),e.error.length>0)return Object(je.jsxs)(ve.a,{severity:"error",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]});if(0===e.tasks.length)return Object(je.jsxs)(ve.a,{severity:"info",className:s.alert,children:[Object(je.jsx)(ke.a,{children:"Info"}),"No completed tasks at this time."]});var x=[{key:"id",label:"ID",align:"left"},{key:"type",label:"Type",align:"left"},{key:"payload",label:"Payload",align:"left"},{key:"completed_at",label:"Completed",align:"left"},{key:"result",label:"Result",align:"left"},{key:"ttl",label:"TTL",align:"left"},{key:"actions",label:"Actions",align:"center"}],g=e.tasks.length,v=b.length;return Object(je.jsxs)("div",{children:[!window.READ_ONLY&&Object(je.jsx)(Hi,{showIconButtons:v>0,iconButtonActions:[{tooltip:"Delete",icon:Object(je.jsx)(wn.a,{}),onClick:function(){e.batchDeleteCompletedTasksAsync(r,b).then((function(){return p([])}))},disabled:e.batchActionPending}],menuItemActions:[{label:"Delete All",onClick:function(){e.deleteAllCompletedTasksAsync(r)},disabled:e.allActionPending}]}),Object(je.jsx)(vn.a,{component:me.a,children:Object(je.jsxs)(mn.a,{stickyHeader:!0,className:s.table,"aria-label":"archived tasks table",size:"small",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[!window.READ_ONLY&&Object(je.jsx)(gn.a,{padding:"checkbox",classes:{stickyHeader:s.stickyHeaderCell},children:Object(je.jsx)(T.a,{children:Object(je.jsx)(lc.a,{indeterminate:v>0&&v0&&v===g,onChange:function(t){if(t.target.checked){var a=e.tasks.map((function(e){return e.id}));p(a)}else p([])},inputProps:{"aria-label":"select all tasks shown in the table"}})})}),x.filter((function(e){return!window.READ_ONLY||"actions"!==e.key})).map((function(e){return Object(je.jsx)(gn.a,{align:e.align,classes:{stickyHeader:s.stickyHeaderCell},children:e.label},e.key)}))]})}),Object(je.jsx)(xn.a,{children:e.tasks.map((function(t){return Object(je.jsx)(To,{task:t,isSelected:b.includes(t.id),onSelectChange:function(e){p(e?b.concat(t.id):b.filter((function(e){return e!==t.id})))},onDeleteClick:function(){e.deleteCompletedTaskAsync(r,t.id)},allActionPending:e.allActionPending,onActionCellEnter:function(){return m(t.id)},onActionCellLeave:function(){return m("")},showActions:f===t.id},t.id)}))}),Object(je.jsx)(uc.a,{children:Object(je.jsx)(yn.a,{children:Object(je.jsx)(dc.a,{rowsPerPageOptions:he,colSpan:x.length+1,count:e.totalTaskCount,rowsPerPage:c,page:l,SelectProps:{inputProps:{"aria-label":"rows per page"},native:!0},onPageChange:function(e,t){u(t)},onRowsPerPageChange:function(t){e.taskRowsPerPageChange(parseInt(t.target.value,10)),u(0)},ActionsComponent:pe,className:s.pagination})})})]})})]})})),Ao=["children","value","selected"];function Co(e){var t=e.children,a=e.value,n=e.selected,r=Object(rc.a)(e,Ao);return Object(je.jsx)("div",Object(u.a)(Object(u.a)({role:"tabpanel",hidden:a!==n,id:"scrollable-auto-tabpanel-".concat(n),"aria-labelledby":"scrollable-auto-tab-".concat(n),style:{flex:1,overflowY:"scroll"}},r),{},{children:a===n&&t}))}var Ro=Object(o.b)((function(e,t){var a=e.queues.data.find((function(e){return e.name===t.queue}));return{currentStats:a?a.currentStats:{queue:t.queue,paused:!1,size:0,active:0,pending:0,scheduled:0,retry:0,archived:0,completed:0,processed:0,failed:0,timestamp:"n/a"}}})),wo=Object(p.a)((function(e){return{container:{width:"100%",height:"100%",background:e.palette.background.paper},header:{display:"flex",alignItems:"center",paddingTop:e.spacing(1)},heading:{paddingTop:e.spacing(1),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},chip:{marginLeft:e.spacing(1)},taskcount:{fontSize:"12px",color:e.palette.text.secondary,background:yr(e)?"#303030":e.palette.background.default,textAlign:"center",padding:"3px 6px",borderRadius:"10px",marginLeft:"2px"},searchbar:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},search:{position:"relative",width:"312px",borderRadius:"18px",backgroundColor:yr(e)?"#303030":e.palette.grey[100],"&:hover, &:focus":{backgroundColor:yr(e)?"#303030":e.palette.grey[200]}},searchIcon:{padding:e.spacing(0,2),height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},inputRoot:{color:"inherit",width:"100%"},inputInput:{padding:e.spacing(1,1,1,0),paddingLeft:"calc(1em + ".concat(e.spacing(4),"px)"),width:"100%",fontSize:"0.85rem"}}}));var Io=Ro((function(e){var t=e.currentStats,a=wo(),r=Object(b.f)(),c=[{key:"active",label:"Active",count:t.active},{key:"pending",label:"Pending",count:t.pending},{key:"scheduled",label:"Scheduled",count:t.scheduled},{key:"retry",label:"Retry",count:t.retry},{key:"archived",label:"Archived",count:t.archived},{key:"completed",label:"Completed",count:t.completed}],s=Object(n.useState)(""),i=Object(On.a)(s,2),o=i[0],l=i[1];return Object(je.jsxs)(me.a,{variant:"outlined",className:a.container,children:[Object(je.jsxs)("div",{className:a.header,children:[Object(je.jsx)(_.a,{color:"textPrimary",className:a.heading,children:"Tasks"}),Object(je.jsx)("div",{children:c.map((function(t){return Object(je.jsx)(cc.a,{className:a.chip,label:Object(je.jsxs)("div",{children:[t.label," ",Object(je.jsx)("span",{className:a.taskcount,children:t.count})]}),variant:"outlined",color:e.selected===t.key?"primary":"default",onClick:function(){return r.push(Q(e.queue,t.key))}},t.key)}))}),Object(je.jsx)("div",{className:a.searchbar,children:Object(je.jsxs)("div",{className:a.search,children:[Object(je.jsx)("div",{className:a.searchIcon,children:Object(je.jsx)(oc.a,{})}),Object(je.jsx)(sc.a,{placeholder:"Search by ID",classes:{root:a.inputRoot,input:a.inputInput},value:o,onChange:function(e){l(e.target.value)},inputProps:{"aria-label":"search",onKeyDown:function(t){"Enter"===t.key&&r.push(Y(e.queue,o.trim()))}}})]})})]}),Object(je.jsx)(Co,{value:"active",selected:e.selected,children:Object(je.jsx)(Fi,{queue:e.queue})}),Object(je.jsx)(Co,{value:"pending",selected:e.selected,children:Object(je.jsx)(eo,{queue:e.queue,totalTaskCount:t.pending})}),Object(je.jsx)(Co,{value:"scheduled",selected:e.selected,children:Object(je.jsx)(oo,{queue:e.queue,totalTaskCount:t.scheduled})}),Object(je.jsx)(Co,{value:"retry",selected:e.selected,children:Object(je.jsx)(ho,{queue:e.queue,totalTaskCount:t.retry})}),Object(je.jsx)(Co,{value:"archived",selected:e.selected,children:Object(je.jsx)(vo,{queue:e.queue,totalTaskCount:t.archived})}),Object(je.jsx)(Co,{value:"completed",selected:e.selected,children:Object(je.jsx)(Eo,{queue:e.queue,totalTaskCount:t.completed})})]})})),qo=Object(p.a)((function(e){return{banner:{paddingTop:e.spacing(2),paddingBottom:e.spacing(2),display:"flex"},bannerItem:{flexGrow:1,borderLeft:"1px solid ".concat(e.palette.divider),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}}}));var No=Object(o.b)((function(e,t){var a=e.queues.data.find((function(e){return e.name===t.qname}));return{queue:null===a||void 0===a?void 0:a.currentStats}}))((function(e){var t=qo(),a=e.queue,n=e.qname;return Object(je.jsxs)("div",{className:t.banner,children:[Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Queue name"}),Object(je.jsx)(_.a,{color:"textSecondary",children:n})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Queue state"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?a.paused?"paused":"run":"-"})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Queue size"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?a.size:"-"})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Memory usage"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?Mn()(a.memory_usage_bytes):"-"})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Latency"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?a.display_latency:"-"})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Processed"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?a.processed:"-"})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Failed"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?a.failed:"-"})]}),Object(je.jsxs)("div",{className:t.bannerItem,children:[Object(je.jsx)(_.a,{variant:"subtitle2",color:"textPrimary",gutterBottom:!0,children:"Error rate"}),Object(je.jsx)(_.a,{color:"textSecondary",children:a?Ba(a.failed,a.processed):"-"})]})]})})),Po=a(17),Do=a(907),Lo=a(347),Bo=a.n(Lo),Ho=Object($n.a)((function(e){return{root:{backgroundColor:yr(e)?"#303030":e.palette.background.default,height:e.spacing(3),color:e.palette.text.secondary,fontWeight:400,"&:hover, &:focus":{backgroundColor:e.palette.action.hover},"&:active":{boxShadow:e.shadows[1],backgroundColor:Object(Po.c)(e.palette.action.hover,.12)}}}}))(cc.a);function Uo(e){var t=Object(b.f)(),a=Object(n.useState)(null),r=Object(On.a)(a,2),c=r[0],s=r[1],i=F(),o=function(e){e.preventDefault(),s(e.currentTarget)},l=function(){s(null)};return Object(je.jsxs)(je.Fragment,{children:[Object(je.jsxs)(Do.a,{"aria-label":"breadcrumb",children:[Object(je.jsx)(Ho,{component:j.b,to:i.HOME,label:"Queues",onClick:function(){return t.push(i.HOME)}}),Object(je.jsx)(Ho,{label:e.queueName,deleteIcon:Object(je.jsx)(Bo.a,{}),onClick:o,onDelete:o}),e.taskId&&Object(je.jsx)(Ho,{label:"task:".concat(e.taskId)})]}),Object(je.jsx)(Li.a,{id:"queue-breadcrumb-menu",anchorEl:c,keepMounted:!0,open:Boolean(c),onClose:l,children:e.queues.sort().map((function(e){return Object(je.jsx)(cr.a,{onClick:function(){t.push(Q(e)),l()},children:e},e)}))})]})}var zo=Object(o.b)((function(e){return{queues:e.queues.data.map((function(e){return e.name}))}}),{listQueuesAsync:en}),Ko=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(2)},breadcrumbs:{marginBottom:e.spacing(2)},banner:{marginBottom:e.spacing(2)},tasksTable:{marginBottom:e.spacing(4)}}})),Go=["active","pending","scheduled","retry","archived","completed"];var Mo=zo((function(e){var t=Ko(),a=Object(b.h)().qname,r=ur().get("status");r&&Go.includes(r)||(r="active");var c=e.listQueuesAsync;return Object(n.useEffect)((function(){c()}),[c]),Object(je.jsx)(Oe.a,{maxWidth:"lg",children:Object(je.jsxs)(fe.a,{container:!0,spacing:0,className:t.container,children:[Object(je.jsx)(fe.a,{item:!0,xs:12,className:t.breadcrumbs,children:Object(je.jsx)(Uo,{queues:e.queues,queueName:a})}),Object(je.jsx)(fe.a,{item:!0,xs:12,className:t.banner,children:Object(je.jsx)(No,{qname:a})}),Object(je.jsx)(fe.a,{item:!0,xs:12,className:t.tasksTable,children:Object(je.jsx)(Io,{queue:a,selected:r})})]})})})),Vo=a(348),Fo=a.n(Vo);var Qo=Object(o.b)((function(e){return{loading:e.tasks.taskInfo.loading,error:e.tasks.taskInfo.error,taskInfo:e.tasks.taskInfo.data,pollInterval:e.settings.pollInterval,queues:e.queues.data.map((function(e){return e.name}))}}),{getTaskInfoAsync:function(e,t){return function(){var a=Object(ye.a)(_e.a.mark((function a(n){var r;return _e.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n({type:Oc}),a.prev=1,a.next=4,ze(e,t);case 4:r=a.sent,n({type:fc,payload:r}),a.next=12;break;case 8:a.prev=8,a.t0=a.catch(1),console.error("getTaskInfoAsync: ",Ca(a.t0)),n({type:mc,error:Ra(a.t0)});case 12:case"end":return a.stop()}}),a,null,[[1,8]])})));return function(e){return a.apply(this,arguments)}}()},listQueuesAsync:en}),Yo=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(2)},alert:{borderTopLeftRadius:0,borderTopRightRadius:0},paper:{padding:e.spacing(2),marginTop:e.spacing(2)},breadcrumbs:{marginBottom:e.spacing(2)},infoRow:{display:"flex",alignItems:"center",paddingTop:e.spacing(1)},infoKeyCell:{width:"140px"},infoValueCell:{width:"auto"},footer:{paddingTop:e.spacing(3),paddingBottom:e.spacing(3)}}}));var Wo=Qo((function(e){var t=Yo(),a=Object(b.h)(),r=a.qname,c=a.taskId,s=e.getTaskInfoAsync,i=e.pollInterval,o=e.listQueuesAsync,l=e.taskInfo,u=Object(b.f)();return lr(Object(n.useMemo)((function(){return function(){s(r,c)}}),[r,c,s]),i),Object(n.useEffect)((function(){o()}),[o]),Object(je.jsx)(Oe.a,{maxWidth:"lg",className:t.container,children:Object(je.jsxs)(fe.a,{container:!0,spacing:0,children:[Object(je.jsx)(fe.a,{item:!0,xs:12,className:t.breadcrumbs,children:Object(je.jsx)(Uo,{queues:e.queues,queueName:r,taskId:c})}),Object(je.jsxs)(fe.a,{item:!0,xs:12,md:6,children:[e.error?Object(je.jsxs)(ve.a,{severity:"error",className:t.alert,children:[Object(je.jsx)(ke.a,{children:"Error"}),e.error]}):Object(je.jsxs)(me.a,{className:t.paper,variant:"outlined",children:[Object(je.jsx)(_.a,{variant:"h6",children:"Task Info"}),Object(je.jsxs)("div",{children:[Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["ID:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null===l||void 0===l?void 0:l.id})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Type:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null===l||void 0===l?void 0:l.type})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["State:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null===l||void 0===l?void 0:l.state})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Queue:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null===l||void 0===l?void 0:l.queue})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Retry:"," "]}),Object(je.jsxs)(_.a,{className:t.infoValueCell,children:[null===l||void 0===l?void 0:l.retried,"/",null===l||void 0===l?void 0:l.max_retry]})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Last Failure:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null!==l&&void 0!==l&&l.last_failed_at?Object(je.jsxs)(_.a,{children:[null===l||void 0===l?void 0:l.error_message," (",null===l||void 0===l?void 0:l.last_failed_at,")"]}):Object(je.jsx)(_.a,{children:" - "})})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Next Process Time:"," "]}),null!==l&&void 0!==l&&l.next_process_at?Object(je.jsx)(_.a,{children:null===l||void 0===l?void 0:l.next_process_at}):Object(je.jsx)(_.a,{children:" - "})]})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Timeout:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null!==l&&void 0!==l&&l.timeout_seconds?Object(je.jsxs)(_.a,{children:[null===l||void 0===l?void 0:l.timeout_seconds," seconds"]}):Object(je.jsx)(_.a,{children:" - "})})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Deadline:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:null!==l&&void 0!==l&&l.deadline?Object(je.jsx)(_.a,{children:null===l||void 0===l?void 0:l.deadline}):Object(je.jsx)(_.a,{children:" - "})})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Payload:"," "]}),Object(je.jsx)("div",{className:t.infoValueCell,children:(null===l||void 0===l?void 0:l.payload)&&Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(l.payload)})})]}),"completed"===(null===l||void 0===l?void 0:l.state)&&Object(je.jsxs)(je.Fragment,{children:[Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Completed:"," "]}),Object(je.jsx)("div",{className:t.infoValueCell,children:Object(je.jsxs)(_.a,{children:[Pa(l.completed_at)," (",l.completed_at,")"]})})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["Result:"," "]}),Object(je.jsx)("div",{className:t.infoValueCell,children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0,maxWidth:400},children:Ha(l.result)})})]}),Object(je.jsxs)("div",{className:t.infoRow,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",className:t.infoKeyCell,children:["TTL:"," "]}),Object(je.jsx)(_.a,{className:t.infoValueCell,children:Object(je.jsx)(_.a,{children:l.ttl_seconds>0?"".concat(qa(wa(l.ttl_seconds))," left"):"expired"})})]})]})]}),Object(je.jsx)("div",{className:t.footer,children:Object(je.jsx)(Nn.a,{startIcon:Object(je.jsx)(Fo.a,{}),onClick:function(){return u.goBack()},children:"Go Back"})})]})]})})})),Jo=a(909),$o=a(349),Xo=a.n($o),Zo=a(903),el=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},paper:{padding:e.spacing(2),display:"flex",overflow:"auto",flexDirection:"column"},formControl:{margin:e.spacing(1),display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center"},selectEmpty:{marginTop:e.spacing(2)},select:{width:"200px"}}}));var tl={pollIntervalChange:function(e){return{type:J,value:e}},selectTheme:function(e){return{type:$,value:e}}};var al,nl=Object(o.b)((function(e){return{pollInterval:e.settings.pollInterval,themePreference:e.settings.themePreference}}),tl)((function(e){var t=el(),a=Object(n.useState)(e.pollInterval),r=Object(On.a)(a,2),c=r[0],s=r[1];return Object(je.jsx)(Oe.a,{maxWidth:"lg",className:t.container,children:Object(je.jsxs)(fe.a,{container:!0,spacing:3,justify:"center",children:[Object(je.jsx)(fe.a,{item:!0,xs:1}),Object(je.jsx)(fe.a,{item:!0,xs:6,children:Object(je.jsx)(_.a,{variant:"h5",color:"textPrimary",children:"Settings"})}),Object(je.jsx)(fe.a,{item:!0,xs:5}),Object(je.jsx)(fe.a,{item:!0,xs:1}),Object(je.jsx)(fe.a,{item:!0,xs:6,children:Object(je.jsxs)(me.a,{className:t.paper,variant:"outlined",children:[Object(je.jsx)(_.a,{color:"textPrimary",children:"Polling Interval"}),Object(je.jsx)(_.a,{gutterBottom:!0,color:"textSecondary",variant:"subtitle1",children:"Web UI will fetch live data with the specified interval"}),Object(je.jsxs)(_.a,{gutterBottom:!0,color:"textSecondary",variant:"subtitle1",children:["Currently: Every"," ",1===c?"second":"".concat(c," seconds")]}),Object(je.jsx)(Jo.a,{value:c,onChange:function(e,t){s(t)},onChangeCommitted:function(t,a){e.pollIntervalChange(a)},"aria-labelledby":"continuous-slider",valueLabelDisplay:"auto",step:1,marks:!0,min:2,max:20})]})}),Object(je.jsx)(fe.a,{xs:5}),Object(je.jsx)(fe.a,{item:!0,xs:1}),Object(je.jsx)(fe.a,{item:!0,xs:6,children:Object(je.jsx)(me.a,{className:t.paper,variant:"outlined",children:Object(je.jsxs)(Xo.a,{variant:"outlined",className:t.formControl,children:[Object(je.jsx)(_.a,{color:"textPrimary",children:"Dark Theme"}),Object(je.jsxs)(Zo.a,{labelId:"theme-label",id:"theme-selected",value:e.themePreference,onChange:function(t){e.selectTheme(t.target.value)},label:"theme preference",className:t.select,children:[Object(je.jsx)(cr.a,{value:mr.SystemDefault,children:"System Default"}),Object(je.jsx)(cr.a,{value:mr.Always,children:"Always"}),Object(je.jsx)(cr.a,{value:mr.Never,children:"Never"})]})]})})}),Object(je.jsx)(fe.a,{item:!0,xs:5})]})})})),rl=a(912),cl=a(888),sl=a(351),il=a.n(sl),ol=a(350),ll=a.n(ol),ul=Object(p.a)((function(e){return{table:{minWidth:650},fixedCell:{position:"sticky",zIndex:1,left:0,background:e.palette.background.paper}}}));!function(e){e[e.HostPID=0]="HostPID",e[e.Status=1]="Status",e[e.ActiveWorkers=2]="ActiveWorkers",e[e.Queues=3]="Queues",e[e.Started=4]="Started"}(al||(al={}));var dl=[{label:"Host:PID",key:"host",sortBy:al.HostPID,align:"left"},{label:"Started",key:"started",sortBy:al.Started,align:"left"},{label:"Status",key:"status",sortBy:al.Status,align:"left"},{label:"Queues",key:"queues",sortBy:al.Queues,align:"left"},{label:"Active Workers",key:"workers",sortBy:al.ActiveWorkers,align:"left"}];function jl(e,t){var a=Object(fn.a)(e);return a.sort(t),a}function bl(e){var t=ul(),a=Object(n.useState)(al.HostPID),r=Object(On.a)(a,2),c=r[0],s=r[1],i=Object(n.useState)(Un.Asc),o=Object(On.a)(i,2),l=o[0],u=o[1];return 0===e.servers.length?Object(je.jsxs)(ve.a,{severity:"info",children:[Object(je.jsx)(ke.a,{children:"Info"}),"No servers found at this time."]}):Object(je.jsx)(vn.a,{children:Object(je.jsxs)(mn.a,{className:t.table,"aria-label":"server info table",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[dl.map((function(e,a){return Object(je.jsx)(gn.a,{align:e.align,className:Object(d.default)(0===a&&t.fixedCell),children:Object(je.jsx)(Sn.a,{active:e.sortBy===c,direction:l,onClick:(n=e.sortBy,function(e){if(n===c){var t=l===Un.Asc?Un.Desc:Un.Asc;u(t)}else s(n)}),children:e.label})},e.key);var n})),Object(je.jsx)(gn.a,{})]})}),Object(je.jsx)(xn.a,{children:jl(e.servers,(function(e,t){var a=!1;switch(c){case al.HostPID:if(e.host===t.host&&e.pid===t.pid)return 0;a=e.host===t.host?e.pid *":{borderBottom:"unset"}},noBorder:{border:"none"},link:{color:e.palette.text.primary}}}));function hl(e){var t=pl(),a=e.server,c=Object(n.useState)(!1),s=Object(On.a)(c,2),i=s[0],o=s[1],l=Object.keys(a.queue_priorities);return Object(je.jsxs)(r.a.Fragment,{children:[Object(je.jsxs)(yn.a,{className:t.rowRoot,children:[Object(je.jsxs)(gn.a,{children:[a.host,":",a.pid]}),Object(je.jsx)(gn.a,{children:Pa(a.start_time)}),Object(je.jsx)(gn.a,{children:a.status}),Object(je.jsx)(gn.a,{children:l.map((function(e,a){return Object(je.jsxs)("span",{children:[Object(je.jsx)(j.b,{to:Q(e),className:t.link,children:e}),a===l.length-1?"":", "]},e)}))}),Object(je.jsxs)(gn.a,{children:[a.active_workers.length,"/",a.concurrency]}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(_n.a,{title:i?"Hide Details":"Show Details",children:Object(je.jsx)(T.a,{"aria-label":"expand row",size:"small",onClick:function(){return o(!i)},children:i?Object(je.jsx)(ll.a,{}):Object(je.jsx)(il.a,{})})})})]}),Object(je.jsx)(yn.a,{className:t.rowRoot,children:Object(je.jsx)(gn.a,{style:{paddingBottom:0,paddingTop:0},colSpan:6,children:Object(je.jsx)(cl.a,{in:i,timeout:"auto",unmountOnExit:!0,children:Object(je.jsxs)(fe.a,{container:!0,spacing:2,children:[Object(je.jsxs)(fe.a,{item:!0,xs:9,children:[Object(je.jsx)(_.a,{variant:"subtitle1",gutterBottom:!0,color:"textSecondary",children:"Active Workers"}),Object(je.jsxs)(mn.a,{size:"small","aria-label":"active workers",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{children:"Task ID"}),Object(je.jsx)(gn.a,{children:"Task Payload"}),Object(je.jsx)(gn.a,{children:"Queue"}),Object(je.jsx)(gn.a,{children:"Started"})]})}),Object(je.jsx)(xn.a,{children:a.active_workers.map((function(e){return Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{component:"th",scope:"row",children:La(e.task_id)}),Object(je.jsx)(gn.a,{children:Object(je.jsx)(qr,{language:"json",customStyle:{margin:0},children:Ha(e.task_payload)})}),Object(je.jsx)(gn.a,{children:e.queue}),Object(je.jsx)(gn.a,{children:Pa(e.start_time)})]},e.task_id)}))})]})]}),Object(je.jsxs)(fe.a,{item:!0,xs:3,children:[Object(je.jsx)(_.a,{variant:"subtitle1",gutterBottom:!0,color:"textSecondary",children:"Queue Priority"}),Object(je.jsxs)(mn.a,{size:"small","aria-label":"active workers",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{children:"Queue"}),Object(je.jsx)(gn.a,{align:"right",children:"Priority"})]})}),Object(je.jsx)(xn.a,{children:l.map((function(e){return Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{children:Object(je.jsx)(j.b,{to:Q(e),className:t.link,children:e})}),Object(je.jsx)(gn.a,{align:"right",children:a.queue_priorities[e]})]},e)}))})]}),Object(je.jsxs)(rl.a,{margin:2,children:[Object(je.jsxs)(_.a,{variant:"subtitle2",component:"span",children:["Strict Priority:"," "]}),Object(je.jsx)(_.a,{variant:"button",component:"span",children:a.strict_priority_enabled?"ON":"OFF"})]})]})]})})})})]})}var Ol="LIST_SERVERS_BEGIN",fl="LIST_SERVERS_SUCCESS",ml="LIST_SERVERS_ERROR";var xl=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},paper:{padding:e.spacing(2),display:"flex",overflow:"auto",flexDirection:"column"},heading:{paddingLeft:e.spacing(2),marginBottom:e.spacing(1)}}}));var gl=Object(o.b)((function(e){return{loading:e.servers.loading,error:e.servers.error,servers:e.servers.data,pollInterval:e.settings.pollInterval}}),{listServersAsync:function(){return function(){var e=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:Ol}),e.prev=1,e.next=4,xa();case 4:a=e.sent,t({type:fl,payload:a}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("listServersAsync: ".concat(Ca(e.t0))),t({type:ml,error:Ra(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()}});var vl=gl((function(e){var t=e.pollInterval,a=e.listServersAsync,n=xl();return lr(a,t),Object(je.jsx)(Oe.a,{maxWidth:"lg",className:n.container,children:Object(je.jsx)(fe.a,{container:!0,spacing:3,children:""===e.error?Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsxs)(me.a,{className:n.paper,variant:"outlined",children:[Object(je.jsx)(_.a,{variant:"h6",className:n.heading,children:"Servers"}),Object(je.jsx)(bl,{servers:e.servers})]})}):Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsxs)(ve.a,{severity:"error",children:[Object(je.jsx)(ke.a,{children:"Error"}),"Could not retrieve servers live data \u2014"," ",Object(je.jsx)("strong",{children:"See the logs for details"})]})})})})})),kl=a(890),yl=a(891),Sl="GET_REDIS_INFO_BEGIN",_l="GET_REDIS_INFO_SUCCESS",Tl="GET_REDIS_INFO_ERROR";var El=Object(p.a)((function(e){return{table:{minWidth:650}}}));function Al(e){var t=El();return Object(je.jsx)(vn.a,{children:Object(je.jsxs)(mn.a,{className:t.table,"aria-label":"queue location table",children:[Object(je.jsx)(kn.a,{children:Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{children:"Queue"}),Object(je.jsx)(gn.a,{children:"KeySlot"}),Object(je.jsx)(gn.a,{children:"Node Addresses"})]})}),Object(je.jsx)(xn.a,{children:e.queueLocations.map((function(e){return Object(je.jsxs)(yn.a,{children:[Object(je.jsx)(gn.a,{component:"th",scope:"row",children:e.queue}),Object(je.jsx)(gn.a,{children:e.keyslot}),Object(je.jsx)(gn.a,{children:e.nodes.join(", ")})]},e.queue)}))})]})})}var Cl=a(889),Rl=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)}}}));var wl=Object(o.b)((function(e){return{loading:e.redis.loading,error:e.redis.error,redisInfo:e.redis.data,redisAddress:e.redis.address,redisInfoRaw:e.redis.rawData,redisClusterEnabled:e.redis.cluster,redisClusterNodesRaw:e.redis.rawClusterNodes,queueLocations:e.redis.queueLocations,pollInterval:e.settings.pollInterval,themePreference:e.settings.themePreference}}),{getRedisInfoAsync:function(){return function(){var e=Object(ye.a)(_e.a.mark((function e(t){var a;return _e.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t({type:Sl}),e.prev=1,e.next=4,_a();case 4:a=e.sent,t({type:_l,payload:a}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("getRedisInfoAsync: ".concat(Ca(e.t0))),t({type:Tl,error:Ra(e.t0)});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()}});function Il(e){var t=e.redisInfo;return Object(je.jsxs)(je.Fragment,{children:[Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(_.a,{variant:"h6",color:"textSecondary",children:"Server"})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Version",content:t.redis_version})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Uptime",content:"".concat(t.uptime_in_days," days")})}),Object(je.jsx)(fe.a,{item:!0,xs:6}),Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(_.a,{variant:"h6",color:"textSecondary",children:"Memory"})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Used Memory",content:t.used_memory_human})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Peak Memory Used",content:t.used_memory_peak_human})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Memory Fragmentation Ratio",content:t.mem_fragmentation_ratio})}),Object(je.jsx)(fe.a,{item:!0,xs:3}),Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(_.a,{variant:"h6",color:"textSecondary",children:"Connections"})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Connected Clients",content:t.connected_clients})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Connected Replicas",content:t.connected_slaves})}),Object(je.jsx)(fe.a,{item:!0,xs:6}),Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(_.a,{variant:"h6",color:"textSecondary",children:"Persistence"})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Last Save to Disk",content:Da(parseInt(t.rdb_last_save_time))})}),Object(je.jsx)(fe.a,{item:!0,xs:3,children:Object(je.jsx)(ql,{title:"Number of Changes Since Last Dump",content:t.rdb_changes_since_last_save})}),Object(je.jsx)(fe.a,{item:!0,xs:6})]})}function ql(e){return Object(je.jsx)(kl.a,{variant:"outlined",children:Object(je.jsxs)(yl.a,{children:[Object(je.jsx)(_.a,{gutterBottom:!0,color:"textPrimary",variant:"h5",align:"center",children:e.content}),Object(je.jsx)(_.a,{color:"textSecondary",variant:"subtitle2",align:"center",children:e.title})]})})}var Nl=wl((function(e){var t=Rl(),a=e.pollInterval,n=e.getRedisInfoAsync,r=e.redisInfo,c=e.redisInfoRaw,s=e.redisClusterEnabled,i=e.redisClusterNodesRaw,o=e.queueLocations;return lr(n,a),Object(je.jsx)(Oe.a,{maxWidth:"lg",className:t.container,children:Object(je.jsx)(fe.a,{container:!0,spacing:3,children:""===e.error?Object(je.jsxs)(je.Fragment,{children:[Object(je.jsxs)(fe.a,{item:!0,xs:12,children:[Object(je.jsx)(_.a,{variant:"h5",color:"textPrimary",children:s?"Redis Cluster Info":"Redis Info"}),!s&&Object(je.jsxs)(_.a,{variant:"subtitle1",color:"textSecondary",children:["Connected to: ",e.redisAddress]})]}),o&&o.length>0&&Object(je.jsxs)(fe.a,{item:!0,xs:12,children:[Object(je.jsx)(_.a,{variant:"h6",color:"textSecondary",children:"Queue Location in Cluster"}),Object(je.jsx)(Al,{queueLocations:o})]}),i&&Object(je.jsx)(je.Fragment,{children:Object(je.jsxs)(fe.a,{item:!0,xs:12,children:[Object(je.jsxs)(_.a,{variant:"h6",color:"textSecondary",children:[Object(je.jsx)(Cl.a,{href:"https://redis.io/commands/cluster-nodes",target:"_",children:"CLUSTER NODES"})," ","Command Output"]}),Object(je.jsx)(qr,{language:"yaml",children:i})]})}),r&&!s&&Object(je.jsx)(Il,{redisInfo:r}),c&&Object(je.jsx)(je.Fragment,{children:Object(je.jsxs)(fe.a,{item:!0,xs:6,children:[Object(je.jsxs)(_.a,{variant:"h6",color:"textSecondary",children:[s?Object(je.jsx)(Cl.a,{href:"https://redis.io/commands/cluster-info",target:"_",children:"CLUSTER INFO"}):Object(je.jsx)(Cl.a,{href:"https://redis.io/commands/info",target:"_",children:"INFO"})," ","Command Output"]}),Object(je.jsx)(qr,{language:"yaml",children:c})]})})]}):Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsxs)(ve.a,{severity:"error",children:[Object(je.jsx)(ke.a,{children:"Error"}),"Could not retrieve redis live data \u2014"," ",Object(je.jsx)("strong",{children:"See the logs for details"})]})})})})})),Pl=a(356),Dl=a.n(Pl),Ll="GET_METRICS_BEGIN",Bl="GET_METRICS_SUCCESS",Hl="GET_METRICS_ERROR";var Ul=["#2085ec","#72b4eb","#0a417a","#8464a0","#cea9bc","#323232"];function zl(e){var t=Object(ne.a)(),a=function(e){if(0===e.length)return[];var t,a={},n=Object(dr.a)(e);try{for(n.s();!(t=n.n()).done;){var r,c=t.value,s=Object(dr.a)(c.values);try{for(s.s();!(r=s.n()).done;){var i=Object(On.a)(r.value,2),o=i[0],l=i[1];a[o]||(a[o]={timestamp:o});var u=c.metric.queue;u&&(a[o][u]=parseFloat(l))}}catch(d){s.e(d)}finally{s.f()}}}catch(d){n.e(d)}finally{n.f()}return Object.values(a)}(e.data),n=e.data.map((function(e){return e.metric.queue}));return Object(je.jsx)(cn.a,{height:260,children:Object(je.jsxs)(jr.a,{data:a,children:[Object(je.jsx)(on.a,{strokeDasharray:"3 3"}),Object(je.jsx)(ln.a,{minTickGap:10,dataKey:"timestamp",domain:[e.startTime,e.endTime],tickFormatter:function(e){return new Date(1e3*e).toLocaleTimeString()},type:"number",scale:"time",stroke:t.palette.text.secondary}),Object(je.jsx)(un.a,{tickFormatter:e.yAxisTickFormatter,stroke:t.palette.text.secondary}),Object(je.jsx)(dn.a,{labelFormatter:function(e){return new Date(1e3*e).toLocaleTimeString()}}),Object(je.jsx)(jn.a,{}),n.map((function(e,t){return Object(je.jsx)(br.a,{type:"monotone",dataKey:e,stroke:Ul[t%Ul.length],dot:!1},e)}))]})})}zl.defaultProps={yAxisTickFormatter:function(e){return e.toString()}};var Kl=zl,Gl=a(818),Ml=a(904),Vl=a(894),Fl=a(895),Ql=a(892),Yl=a(819),Wl=a(893),Jl=a(908),$l=a(354),Xl=a.n($l),Zl=a(355),eu=a.n(Zl),tu=a(353),au=a.n(tu),nu=a(352),ru=a.n(nu);function cu(e){return{pollInterval:e.settings.pollInterval}}Object(o.b)(cu);var su=Object(p.a)((function(e){return{root:{display:"flex",alignItems:"center"},endTimeCaption:{marginRight:e.spacing(1)},shiftButtons:{marginLeft:e.spacing(1)},buttonGroupRoot:{height:29,position:"relative",top:1},endTimeShiftControls:{padding:e.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",borderBottomColor:e.palette.divider,borderBottomWidth:1,borderBottomStyle:"solid"},leftShiftButtons:{display:"flex",alignItems:"center",marginRight:e.spacing(2)},rightShiftButtons:{display:"flex",alignItems:"center",marginLeft:e.spacing(2)},controlsContainer:{display:"flex",justifyContent:"flex-end"},controlSelectorBox:{display:"flex",minWidth:490,padding:e.spacing(2)},controlEndTimeSelector:{width:"50%"},controlDurationSelector:{width:"50%"},radioButtonRoot:{paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5),paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},formControlLabel:{fontSize:14},buttonLabel:{textTransform:"none",fontSize:12},formControlRoot:{width:"100%",margin:0},formLabel:{fontSize:14,fontWeight:500,marginBottom:e.spacing(1)},customInputField:{marginTop:e.spacing(1)},filterButton:{marginLeft:e.spacing(1)},queueFilters:{padding:e.spacing(2),maxHeight:400},checkbox:{padding:6}}})),iu=86400;function ou(e){var t=new Date(1e3*e).toLocaleTimeString("en-us",{timeZoneName:"short"}).split(" ")[2];return ru.a.unix(e).format("ddd, DD MMM YYYY HH:mm:ss ")+t}function lu(e){var t=su();return Object(je.jsx)(Fl.a,{classes:{label:t.formControlLabel},value:e.value,control:Object(je.jsx)(Ml.a,{size:"small",classes:{root:t.radioButtonRoot}}),label:e.label})}var uu=Object(p.a)((function(e){return{root:{minWidth:40,fontWeight:function(e){return e.dense?400:500}},label:{fontSize:12,textTransform:"none"},iconRoot:{marginRight:function(e){return"left"===e.direction?e.dense?-8:-4:0},marginLeft:function(e){return"right"===e.direction?e.dense?-8:-4:0},color:function(t){return t.color?t.color:e.palette.grey[yr(e)?200:700]}}}}));function du(e){var t=uu(e);return Object(je.jsxs)(Nn.a,Object(u.a)(Object(u.a)({},e),{},{classes:{root:t.root,label:t.label},size:"small",children:["left"===e.direction&&Object(je.jsx)(Xl.a,{classes:{root:t.iconRoot}}),e.text,"right"===e.direction&&Object(je.jsx)(eu.a,{classes:{root:t.iconRoot}})]}))}du.defaultProps={dense:!1};var ju=Object(o.b)(cu)((function(e){var t=su(),a=r.a.useState(function(e,t){var a="real_time",n="",r="1h",c="",s=Ua();switch(s<=e&&e<=s+1?a="real_time":(a="custom",n=new Date(1e3*e).toISOString()),t){case 3600:r="1h";break;case 21600:r="6h";break;case 86400:r="1d";break;case 8*iu:r="8d";break;case 30*iu:r="30d";break;default:r="custom",c=t+"s"}return{endTimeOption:a,customEndTime:n,customEndTimeError:"",durationOption:r,customDuration:c,customDurationError:""}}(e.endTimeSec,e.durationSec)),n=Object(On.a)(a,2),c=n[0],s=n[1],i=r.a.useState(null),o=Object(On.a)(i,2),l=o[0],d=o[1],j=r.a.useState(null),b=Object(On.a)(j,2),p=b[0],h=b[1],O=Boolean(l),f=Boolean(p);r.a.useEffect((function(){if("real_time"===c.endTimeOption){var t=setInterval((function(){e.onEndTimeChange(Ua(),!1)}),1e3*e.pollInterval);return function(){return clearInterval(t)}}}));var m=function(t){return function(){var a=Ua(),n=e.endTimeSec+t;if(a<=n)return s((function(e){return Object(u.a)(Object(u.a)({},e),{},{customEndTime:"",endTimeOption:"real_time"})})),void e.onEndTimeChange(a,!1);s((function(e){return Object(u.a)(Object(u.a)({},e),{},{endTimeOption:"custom",customEndTime:new Date(1e3*n).toISOString()})})),e.onEndTimeChange(n,!0)}};return Object(je.jsxs)("div",{className:t.root,children:[Object(je.jsx)(_.a,{variant:"caption",color:"textPrimary",className:t.endTimeCaption,children:ou(e.endTimeSec)}),Object(je.jsxs)("div",{children:[Object(je.jsxs)(Nn.a,{"aria-describedby":O?"time-popover":void 0,variant:"outlined",color:"primary",onClick:function(e){d(e.currentTarget)},size:"small",classes:{label:t.buttonLabel},children:["real_time"===c.endTimeOption?"Realtime":"Historical",":"," ","custom"===c.durationOption?c.customDuration:c.durationOption]}),Object(je.jsxs)(Gl.a,{id:O?"time-popover":void 0,open:O,anchorEl:l,onClose:function(){d(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[Object(je.jsxs)("div",{className:t.endTimeShiftControls,children:[Object(je.jsxs)("div",{className:t.leftShiftButtons,children:[Object(je.jsx)(du,{direction:"left",text:"2h",onClick:m(-7200),dense:!0}),Object(je.jsx)(du,{direction:"left",text:"1h",onClick:m(-3600),dense:!0}),Object(je.jsx)(du,{direction:"left",text:"30m",onClick:m(-1800),dense:!0}),Object(je.jsx)(du,{direction:"left",text:"15m",onClick:m(-900),dense:!0}),Object(je.jsx)(du,{direction:"left",text:"5m",onClick:m(-300),dense:!0})]}),Object(je.jsxs)("div",{className:t.rightShiftButtons,children:[Object(je.jsx)(du,{direction:"right",text:"5m",onClick:m(300),dense:!0}),Object(je.jsx)(du,{direction:"right",text:"15m",onClick:m(900),dense:!0}),Object(je.jsx)(du,{direction:"right",text:"30m",onClick:m(1800),dense:!0}),Object(je.jsx)(du,{direction:"right",text:"1h",onClick:m(3600),dense:!0}),Object(je.jsx)(du,{direction:"right",text:"2h",onClick:m(7200),dense:!0})]})]}),Object(je.jsxs)("div",{className:t.controlSelectorBox,children:[Object(je.jsx)("div",{className:t.controlEndTimeSelector,children:Object(je.jsxs)(Ql.a,{component:"fieldset",margin:"dense",classes:{root:t.formControlRoot},children:[Object(je.jsx)(Wl.a,{className:t.formLabel,component:"legend",children:"End Time"}),Object(je.jsxs)(Vl.a,{"aria-label":"end_time",name:"end_time",value:c.endTimeOption,onChange:function(t){var a=t.target.value;switch(s((function(e){return Object(u.a)(Object(u.a)({},e),{},{endTimeOption:a,customEndTime:"",customEndTimeError:""})})),a){case"real_time":e.onEndTimeChange(Ua(),!1);break;case"freeze_at_now":e.onEndTimeChange(Ua(),!0)}},children:[Object(je.jsx)(lu,{value:"real_time",label:"Real Time"}),Object(je.jsx)(lu,{value:"freeze_at_now",label:"Freeze at now"}),Object(je.jsx)(lu,{value:"custom",label:"Custom End Time"})]}),Object(je.jsx)("div",{className:t.customInputField,children:Object(je.jsx)(Jl.a,{id:"custom-endtime",label:"yyyy-mm-dd hh:mm:ssz",variant:"outlined",size:"small",onChange:function(e){e.persist(),s((function(t){return Object(u.a)(Object(u.a)({},t),{},{customEndTime:e.target.value})}))},value:c.customEndTime,onKeyDown:function(t){if("Enter"===t.key){var a=Date.parse(c.customEndTime);if(isNaN(a))return void s((function(e){return Object(u.a)(Object(u.a)({},e),{},{customEndTimeError:"End time invalid"})}));s((function(e){return Object(u.a)(Object(u.a)({},e),{},{endTimeOption:"custom",customEndTimeError:""})})),e.onEndTimeChange(Math.floor(a/1e3),!0)}},error:""!==c.customEndTimeError,helperText:c.customEndTimeError})})]})}),Object(je.jsx)("div",{className:t.controlDurationSelector,children:Object(je.jsxs)(Ql.a,{component:"fieldset",margin:"dense",classes:{root:t.formControlRoot},children:[Object(je.jsx)(Wl.a,{className:t.formLabel,component:"legend",children:"Duration"}),Object(je.jsxs)(Vl.a,{"aria-label":"duration",name:"duration",value:c.durationOption,onChange:function(t){var a=t.target.value;s((function(e){return Object(u.a)(Object(u.a)({},e),{},{durationOption:a,customDuration:"",customDurationError:""})}));var n="real_time"!==c.endTimeOption;switch(a){case"1h":e.onDurationChange(3600,n);break;case"6h":e.onDurationChange(21600,n);break;case"1d":e.onDurationChange(86400,n);break;case"8d":e.onDurationChange(8*iu,n);break;case"30d":e.onDurationChange(30*iu,n)}},children:[Object(je.jsx)(lu,{value:"1h",label:"1h"}),Object(je.jsx)(lu,{value:"6h",label:"6h"}),Object(je.jsx)(lu,{value:"1d",label:"1 day"}),Object(je.jsx)(lu,{value:"8d",label:"8 days"}),Object(je.jsx)(lu,{value:"30d",label:"30 days"}),Object(je.jsx)(lu,{value:"custom",label:"Custom Duration"})]}),Object(je.jsx)("div",{className:t.customInputField,children:Object(je.jsx)(Jl.a,{id:"custom-duration",label:"duration",variant:"outlined",size:"small",onChange:function(e){e.persist(),s((function(t){return Object(u.a)(Object(u.a)({},t),{},{customDuration:e.target.value})}))},value:c.customDuration,onKeyDown:function(t){if("Enter"===t.key)try{var a=function(e){if(!za.test(e))throw new Error("invalid duration");var t=parseFloat(e.slice(0,-1));switch(e.slice(-1)){case"s":return t;case"m":return 60*t;case"h":return 60*t*60;default:throw new Error("invalid duration unit")}}(c.customDuration);s((function(e){return Object(u.a)(Object(u.a)({},e),{},{durationOption:"custom",customDurationError:""})})),e.onDurationChange(a,"real_time"!==c.endTimeOption)}catch(n){s((function(e){return Object(u.a)(Object(u.a)({},e),{},{customDurationError:"Duration invalid"})}))}},error:""!==c.customDurationError,helperText:c.customDurationError})})]})})]})]})]}),Object(je.jsx)("div",{className:t.shiftButtons,children:Object(je.jsxs)(Zn.a,{classes:{root:t.buttonGroupRoot},size:"small",color:"primary","aria-label":"shift buttons",children:[Object(je.jsx)(du,{direction:"left",text:"custom"===c.durationOption?"1h":c.durationOption,color:"primary",onClick:"custom"===c.durationOption?m(-3600):m(-e.durationSec)}),Object(je.jsx)(du,{direction:"right",text:"custom"===c.durationOption?"1h":c.durationOption,color:"primary",onClick:"custom"===c.durationOption?m(3600):m(e.durationSec)})]})}),Object(je.jsxs)("div",{className:t.filterButton,children:[Object(je.jsx)(T.a,{"aria-label":"filter",size:"small",onClick:function(e){h(e.currentTarget)},children:Object(je.jsx)(au.a,{})}),Object(je.jsx)(Gl.a,{id:f?"queue-popover":void 0,open:f,anchorEl:p,onClose:function(){h(null)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:Object(je.jsxs)(Ql.a,{className:t.queueFilters,children:[Object(je.jsx)(Wl.a,{className:t.formLabel,component:"legend",children:"Queues"}),Object(je.jsx)(Yl.a,{children:e.queues.map((function(a){return Object(je.jsx)(Fl.a,{control:Object(je.jsx)(lc.a,{size:"small",checked:e.selectedQueues.includes(a),onChange:function(){e.selectedQueues.includes(a)?e.removeQueue(a):e.addQueue(a)},name:a,className:t.checkbox}),label:a,classes:{label:t.formControlLabel}},a)}))})]})})]})]})})),bu=Object(p.a)((function(e){return{container:{marginTop:30,paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},controlsContainer:{display:"flex",justifyContent:"flex-end",position:"fixed",background:e.palette.background.paper,zIndex:e.zIndex.appBar,right:0,top:64,width:"100%",padding:e.spacing(2)},chartInfo:{display:"flex",alignItems:"center",marginBottom:e.spacing(1)},infoIcon:{marginLeft:e.spacing(1),color:e.palette.grey[500],cursor:"pointer"},errorMessage:{marginLeft:"auto",display:"flex",alignItems:"center"},warningIcon:{color:"#ff6700",marginRight:6}}}));var pu=Object(o.b)((function(e){return{loading:e.metrics.loading,error:e.metrics.error,data:e.metrics.data,pollInterval:e.settings.pollInterval,queues:e.queues.data.map((function(e){return e.name}))}}),{getMetricsAsync:function(e,t,a){return function(){var n=Object(ye.a)(_e.a.mark((function n(r){var c;return _e.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r({type:Ll}),n.prev=1,n.next=4,Ea(e,t,a);case 4:c=n.sent,r({type:Bl,payload:c}),n.next=12;break;case 8:n.prev=8,n.t0=n.catch(1),console.error("getMetricsAsync: ".concat(Ca(n.t0))),r({type:Hl,error:Ra(n.t0)});case 12:case"end":return n.stop()}}),n,null,[[1,8]])})));return function(e){return n.apply(this,arguments)}}()},listQueuesAsync:en}),hu="end",Ou="duration";var fu=pu((function(e){var t=bu(),a=Object(b.f)(),n=ur(),c=n.get(hu),s=c?parseFloat(c):Ua(),i=n.get(Ou),o=i?parseFloat(i):3600,d=e.pollInterval,j=e.getMetricsAsync,p=e.listQueuesAsync,h=e.data,O=r.a.useState(s),f=Object(On.a)(O,2),m=f[0],x=f[1],g=r.a.useState(o),v=Object(On.a)(g,2),k=v[0],y=v[1],S=r.a.useState([]),_=Object(On.a)(S,2),T=_[0],E=_[1];return r.a.useEffect((function(){p()}),[p]),r.a.useEffect((function(){j(m,k,T)}),[d,j,k,m,T]),Object(je.jsxs)(Oe.a,{maxWidth:"lg",className:t.container,children:[Object(je.jsx)("div",{className:t.controlsContainer,children:Object(je.jsx)(ju,{endTimeSec:m,onEndTimeChange:function(e,t){var n,r=t?(n={},Object(l.a)(n,hu,e),Object(l.a)(n,Ou,k),n):Object(l.a)({},Ou,k);a.push(Object(u.a)(Object(u.a)({},a.location),{},{search:Ce.a.stringify(r)})),x(e)},durationSec:k,onDurationChange:function(e,t){var n,r=t?(n={},Object(l.a)(n,hu,m),Object(l.a)(n,Ou,e),n):Object(l.a)({},Ou,e);a.push(Object(u.a)(Object(u.a)({},a.location),{},{search:Ce.a.stringify(r)})),y(e)},queues:e.queues,selectedQueues:0===T.length?e.queues:T,addQueue:function(e){T.includes(e)||E(T.concat(e))},removeQueue:function(t){1!==T.length&&(0!==T.length?E(T.filter((function(e){return e!==t}))):E(e.queues.filter((function(e){return e!==t}))))}})}),Object(je.jsxs)(fe.a,{container:!0,spacing:3,children:[(null===h||void 0===h?void 0:h.tasks_processed_per_second)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Tasks Processed",description:"Number of tasks processed (both succeeded and failed) per second.",metrics:h.tasks_processed_per_second,endTime:m,startTime:m-k})}),(null===h||void 0===h?void 0:h.tasks_failed_per_second)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Tasks Failed",description:"Number of tasks failed per second.",metrics:h.tasks_failed_per_second,endTime:m,startTime:m-k})}),(null===h||void 0===h?void 0:h.error_rate)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Error Rate",description:"Rate of task failures",metrics:h.error_rate,endTime:m,startTime:m-k})}),(null===h||void 0===h?void 0:h.queue_size)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Queue Size",description:"Total number of tasks in a given queue.",metrics:h.queue_size,endTime:m,startTime:m-k})}),(null===h||void 0===h?void 0:h.queue_latency_seconds)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Queue Latency",description:"Latency of queue, measured by the oldest pending task in the queue.",metrics:h.queue_latency_seconds,endTime:m,startTime:m-k,yAxisTickFormatter:function(e){return e+"s"}})}),(null===h||void 0===h?void 0:h.queue_size)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Queue Memory Usage (approx)",description:"Memory usage by queue. Approximate value by sampling a few tasks in a queue.",metrics:h.queue_memory_usage_approx_bytes,endTime:m,startTime:m-k,yAxisTickFormatter:function(e){try{return Mn()(e)}catch(t){return e+"B"}}})}),(null===h||void 0===h?void 0:h.pending_tasks_by_queue)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Pending Tasks",description:"Number of pending tasks in a given queue.",metrics:h.pending_tasks_by_queue,endTime:m,startTime:m-k})}),(null===h||void 0===h?void 0:h.retry_tasks_by_queue)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Retry Tasks",description:"Number of retry tasks in a given queue.",metrics:h.retry_tasks_by_queue,endTime:m,startTime:m-k})}),(null===h||void 0===h?void 0:h.archived_tasks_by_queue)&&Object(je.jsx)(fe.a,{item:!0,xs:12,children:Object(je.jsx)(mu,{title:"Archived Tasks",description:"Number of archived tasks in a given queue.",metrics:h.archived_tasks_by_queue,endTime:m,startTime:m-k})})]})]})}));function mu(e){var t,a=bu();return Object(je.jsxs)(je.Fragment,{children:[Object(je.jsxs)("div",{className:a.chartInfo,children:[Object(je.jsx)(_.a,{color:"textPrimary",children:e.title}),Object(je.jsx)(Xn,{title:Object(je.jsx)("div",{children:e.description}),children:Object(je.jsx)(ge.a,{fontSize:"small",className:a.infoIcon})}),"error"===e.metrics.status&&Object(je.jsxs)("div",{className:a.errorMessage,children:[Object(je.jsx)(Dl.a,{fontSize:"small",className:a.warningIcon}),Object(je.jsxs)(_.a,{color:"textSecondary",children:["Failed to get metrics data: ",e.metrics.error]})]})]}),Object(je.jsx)(Kl,{data:"error"===e.metrics.status?[]:(null===(t=e.metrics.data)||void 0===t?void 0:t.result)||[],endTime:e.endTime,startTime:e.startTime,yAxisTickFormatter:e.yAxisTickFormatter})]})}var xu=Object(p.a)((function(e){return{container:{paddingTop:e.spacing(4),paddingBottom:e.spacing(4)},headingText:{fontWeight:"bold"}}}));function gu(){var e=xu();return Object(je.jsx)(Oe.a,{maxWidth:"lg",className:e.container,children:Object(je.jsx)(fe.a,{container:!0,spacing:3,children:Object(je.jsxs)(fe.a,{item:!0,xs:12,children:[Object(je.jsx)(_.a,{variant:"h5",align:"center",className:e.headingText,children:"Oops!"}),Object(je.jsx)(_.a,{variant:"subtitle1",color:"textSecondary",align:"center",children:"404 - Page Not Found"})]})})})}var vu={closeSnackbar:function(){return{type:Sr}},toggleDrawer:function(){return{type:X}}};function ku(e){return Object(je.jsx)(E.a,Object(u.a)(Object(u.a)({},e),{},{direction:"up"}))}var yu=Object(o.b)((function(e){return{snackbar:e.snackbar,themePreference:e.settings.themePreference,isDrawerOpen:e.settings.isDrawerOpen}}),vu)((function(e){var t=function(e){var t=Object(kr.a)("(prefers-color-scheme: dark)");return e===mr.Always?t=!0:e===mr.Never&&(t=!1),Object(W.a)({palette:{primary:{main:"#4379FF"},secondary:{main:"#97FBD1"},background:{default:"#f5f7f9"},type:t?"dark":"light"}})}(e.themePreference),a=function(e){return Object(p.a)({root:{display:"flex"},toolbar:{paddingRight:24},toolbarIcon:Object(u.a)({display:"flex",alignItems:"center",justifyContent:"flex-end",padding:"0 8px"},e.mixins.toolbar),appBar:{backgroundColor:e.palette.background.paper,zIndex:e.zIndex.drawer+1},menuButton:{marginRight:e.spacing(1),color:yr(e)?e.palette.grey[100]:e.palette.grey[700]},menuButtonHidden:{display:"none"},title:{flexGrow:1},drawerPaper:{position:"relative",whiteSpace:"nowrap",width:220,transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.enteringScreen}),border:"none"},drawerPaperClose:Object(l.a)({overflowX:"hidden",transition:e.transitions.create("width",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),width:e.spacing(7)},e.breakpoints.up("sm"),{width:e.spacing(9)}),snackbar:{background:e.palette.grey.A400,color:"#ffffff"},snackbarCloseIcon:{color:e.palette.grey[400]},appBarSpacer:e.mixins.toolbar,mainContainer:{display:"flex",width:"100vw"},content:{flex:1,height:"100vh",overflow:"hidden",background:e.palette.background.paper},contentWrapper:{height:"100%",display:"flex",paddingTop:"64px",overflow:"scroll"},sidebarContainer:{display:"flex",justifyContent:"space-between",height:"100%",flexDirection:"column"},listItem:{borderTopRightRadius:"24px",borderBottomRightRadius:"24px"}})}(t)(),n=F();return Object(je.jsx)(h.a,{theme:t,children:Object(je.jsx)(j.a,{children:Object(je.jsxs)("div",{className:a.root,children:[Object(je.jsx)(O.a,{position:"absolute",className:a.appBar,variant:"outlined",children:Object(je.jsxs)(m.a,{className:a.toolbar,children:[Object(je.jsx)(T.a,{edge:"start",color:"inherit","aria-label":"open drawer",onClick:e.toggleDrawer,className:a.menuButton,children:Object(je.jsx)(C.a,{})}),Object(je.jsx)(_.a,{component:"h1",variant:"h6",noWrap:!0,className:a.title,color:"textPrimary",children:"Asynq Monitoring"})]})}),Object(je.jsxs)("div",{className:a.mainContainer,children:[Object(je.jsxs)(f.a,{variant:"permanent",classes:{paper:Object(d.default)(a.drawerPaper,!e.isDrawerOpen&&a.drawerPaperClose)},open:e.isDrawerOpen,children:[Object(je.jsx)(y.a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},open:e.snackbar.isOpen,autoHideDuration:6e3,onClose:e.closeSnackbar,TransitionComponent:ku,children:Object(je.jsx)(S.a,{message:e.snackbar.message,className:a.snackbar,action:Object(je.jsx)(T.a,{size:"small","aria-label":"close",color:"inherit",onClick:e.closeSnackbar,children:Object(je.jsx)(V.a,{className:a.snackbarCloseIcon,fontSize:"small"})})})}),Object(je.jsx)("div",{className:a.appBarSpacer}),Object(je.jsxs)("div",{className:a.sidebarContainer,children:[Object(je.jsx)(x.a,{children:Object(je.jsxs)("div",{children:[Object(je.jsx)(Tr,{to:n.HOME,primary:"Queues",icon:Object(je.jsx)(w.a,{})}),Object(je.jsx)(Tr,{to:n.SERVERS,primary:"Servers",icon:Object(je.jsx)(G.a,{})}),Object(je.jsx)(Tr,{to:n.SCHEDULERS,primary:"Schedulers",icon:Object(je.jsx)(L.a,{})}),Object(je.jsx)(Tr,{to:n.REDIS,primary:"Redis",icon:Object(je.jsx)(q.a,{})}),window.PROMETHEUS_SERVER_ADDRESS&&Object(je.jsx)(Tr,{to:n.QUEUE_METRICS,primary:"Metrics",icon:Object(je.jsx)(z.a,{})})]})}),Object(je.jsxs)(x.a,{children:[Object(je.jsx)(Tr,{to:n.SETTINGS,primary:"Settings",icon:Object(je.jsx)(P.a,{})}),Object(je.jsxs)(g.a,{button:!0,component:"a",className:a.listItem,href:"https://github.com/hibiken/asynqmon/issues",target:"_blank",children:[Object(je.jsx)(v.a,{children:Object(je.jsx)(H.a,{})}),Object(je.jsx)(k.a,{primary:"Send Feedback"})]})]})]})]}),Object(je.jsx)("main",{className:a.content,children:Object(je.jsx)("div",{className:a.contentWrapper,children:Object(je.jsxs)(b.c,{children:[Object(je.jsx)(b.a,{exact:!0,path:n.TASK_DETAILS,children:Object(je.jsx)(Wo,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.QUEUE_DETAILS,children:Object(je.jsx)(Mo,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.SCHEDULERS,children:Object(je.jsx)(nc,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.SERVERS,children:Object(je.jsx)(vl,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.REDIS,children:Object(je.jsx)(Nl,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.SETTINGS,children:Object(je.jsx)(nl,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.HOME,children:Object(je.jsx)(xr,{})}),Object(je.jsx)(b.a,{exact:!0,path:n.QUEUE_METRICS,children:Object(je.jsx)(fu,{})}),Object(je.jsx)(b.a,{path:"*",children:Object(je.jsx)(gu,{})})]})})})]})]})})})})),Su=a(94),_u=a(368),Tu={data:[],loading:!1,error:""};var Eu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Tu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ka:return Object(u.a)(Object(u.a)({},e),{},{loading:!0});case Ga:var a=t.payload.queues;return Object(u.a)(Object(u.a)({},e),{},{loading:!1,error:"",data:a.map((function(e){return{name:e.queue,currentStats:e,requestPending:!1}}))});case Ma:return Object(u.a)(Object(u.a)({},e),{},{loading:!1,error:t.error});case Va:case Ya:case $a:var n=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}));return Object(u.a)(Object(u.a)({},e),{},{data:n});case Fa:var r=e.data.filter((function(e){return e.name!==t.queue}));return Object(u.a)(Object(u.a)({},e),{},{data:r});case Wa:var c=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1,currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{paused:!0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:c});case Xa:var s=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1,currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{paused:!1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:s});case Qa:case Ja:case Za:var i=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}));return Object(u.a)(Object(u.a)({},e),{},{data:i});case gc:case yc:case Tc:case Cc:case Ic:var o=e.data.filter((function(e){return e.name!==t.queue})).concat({name:t.queue,currentStats:t.payload.stats,requestPending:!1});return Object(u.a)(Object(u.a)({},e),{},{data:o});case Qc:var l=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+1,scheduled:e.currentStats.scheduled-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:l});case Jc:var d=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+1,retry:e.currentStats.retry-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:d});case Zc:var j=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+1,archived:e.currentStats.archived-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:j});case cs:var b=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+1,pending:e.currentStats.pending-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:b});case ds:var p=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+1,scheduled:e.currentStats.scheduled-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:p});case ps:var h=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+1,retry:e.currentStats.retry-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:h});case as:var O=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-1,pending:e.currentStats.pending-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:O});case os:var f=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-1,scheduled:e.currentStats.scheduled-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:f});case fs:var m=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+t.payload.archived_ids.length,pending:e.currentStats.pending-t.payload.archived_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:m});case gs:var x=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.payload.deleted_ids.length,pending:e.currentStats.pending-t.payload.deleted_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:x});case Ts:var g=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+e.currentStats.pending,pending:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:g});case ys:var v=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.deleted,pending:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:v});case Cs:var k=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+t.payload.pending_ids.length,scheduled:e.currentStats.scheduled-t.payload.pending_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:k});case Is:var y=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+t.payload.archived_ids.length,scheduled:e.currentStats.scheduled-t.payload.archived_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:y});case Ps:var S=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.payload.deleted_ids.length,scheduled:e.currentStats.scheduled-t.payload.deleted_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:S});case Bs:var _=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+e.currentStats.scheduled,scheduled:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:_});case zs:var T=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+e.currentStats.scheduled,scheduled:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:T});case Ms:var E=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.deleted,scheduled:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:E});case Qs:var A=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-1,retry:e.currentStats.retry-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:A});case Js:var C=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+t.payload.pending_ids.length,retry:e.currentStats.retry-t.payload.pending_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:C});case Zs:var R=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.pending+t.payload.archived_ids.length,retry:e.currentStats.retry-t.payload.archived_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:R});case ai:var w=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.payload.deleted_ids.length,retry:e.currentStats.retry-t.payload.deleted_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:w});case ci:var I=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+e.currentStats.retry,retry:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:I});case oi:var q=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{archived:e.currentStats.archived+e.currentStats.retry,retry:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:q});case di:var N=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.deleted,retry:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:N});case pi:var P=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-1,archived:e.currentStats.archived-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:P});case Ci:var D=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-1,completed:e.currentStats.completed-1})})}));return Object(u.a)(Object(u.a)({},e),{},{data:D});case fi:var L=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+t.payload.pending_ids.length,archived:e.currentStats.archived-t.payload.pending_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:L});case gi:var B=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.payload.deleted_ids.length,archived:e.currentStats.archived-t.payload.deleted_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:B});case Pi:var H=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.payload.deleted_ids.length,completed:e.currentStats.completed-t.payload.deleted_ids.length})})}));return Object(u.a)(Object(u.a)({},e),{},{data:H});case yi:var U=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{pending:e.currentStats.pending+e.currentStats.archived,archived:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:U});case Ti:var z=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.deleted,archived:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:z});case Ii:var K=e.data.map((function(e){return e.name!==t.queue?e:Object(u.a)(Object(u.a)({},e),{},{currentStats:Object(u.a)(Object(u.a)({},e.currentStats),{},{size:e.currentStats.size-t.deleted,completed:0})})}));return Object(u.a)(Object(u.a)({},e),{},{data:K});default:return e}},Au={activeTasks:{loading:!1,batchActionPending:!1,allActionPending:!1,error:"",data:[]},pendingTasks:{loading:!1,batchActionPending:!1,allActionPending:!1,error:"",data:[]},scheduledTasks:{loading:!1,batchActionPending:!1,allActionPending:!1,error:"",data:[]},retryTasks:{loading:!1,batchActionPending:!1,allActionPending:!1,error:"",data:[]},archivedTasks:{loading:!1,batchActionPending:!1,allActionPending:!1,error:"",data:[]},completedTasks:{loading:!1,batchActionPending:!1,allActionPending:!1,error:"",data:[]},taskInfo:{loading:!1,error:""}};var Cu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Au,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Oc:return Object(u.a)(Object(u.a)({},e),{},{taskInfo:Object(u.a)(Object(u.a)({},e.taskInfo),{},{loading:!0})});case mc:return Object(u.a)(Object(u.a)({},e),{},{taskInfo:{loading:!1,error:t.error}});case fc:return Object(u.a)(Object(u.a)({},e),{},{taskInfo:{loading:!1,error:"",data:t.payload}});case xc:return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{loading:!0})});case gc:return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{loading:!1,error:"",data:t.payload.tasks.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{canceling:!1,requestPending:!1})}))})});case vc:return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{loading:!1,error:t.error,data:[]})});case kc:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{loading:!0})});case yc:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{loading:!1,error:"",data:t.payload.tasks.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case Sc:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{loading:!1,error:t.error,data:[]})});case _c:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{loading:!0})});case Tc:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{loading:!1,error:"",data:t.payload.tasks.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case Ec:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{loading:!1,error:t.error,data:[]})});case Ac:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{loading:!0})});case Cc:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{loading:!1,error:"",data:t.payload.tasks.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case Rc:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{loading:!1,error:t.error,data:[]})});case wc:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{loading:!0})});case Ic:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{loading:!1,error:"",data:t.payload.tasks.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case qc:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{loading:!1,error:t.error,data:[]})});case Nc:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{loading:!0})});case Pc:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{loading:!1,error:"",data:t.payload.tasks.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case Dc:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{loading:!1,error:t.error,data:[]})});case Ai:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{data:e.completedTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}))})});case Ci:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{data:e.completedTasks.data.filter((function(e){return e.id!==t.taskId}))})});case Ri:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{data:e.completedTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case wi:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{allActionPending:!0})});case Ii:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{allActionPending:!1,data:[]})});case qi:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{allActionPending:!1})});case Ni:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{batchActionPending:!0,data:e.completedTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!0}):e}))})});case Pi:var a=e.completedTasks.data.filter((function(e){return!t.payload.deleted_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{batchActionPending:!1,data:a})});case Di:return Object(u.a)(Object(u.a)({},e),{},{completedTasks:Object(u.a)(Object(u.a)({},e.completedTasks),{},{batchActionPending:!1,data:e.completedTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!1}):e}))})});case Lc:var n=e.activeTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{data:n})});case Bc:var r=e.activeTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1,canceling:!0})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{data:r})});case Hc:var c=e.activeTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{data:c})});case Gc:var s=e.activeTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!0}):e}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{batchActionPending:!0,data:s})});case Mc:var i=e.activeTasks.data.map((function(e){return t.payload.canceled_ids.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{canceling:!0,requestPending:!1}):t.payload.error_ids.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!1}):e}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{batchActionPending:!1,data:i})});case Vc:var o=e.activeTasks.data.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{batchActionPending:!1,data:o})});case Uc:var l=e.activeTasks.data.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{allActionPending:!0,data:l})});case zc:var d=e.activeTasks.data.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1,canceling:!0})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{allActionPending:!1,data:d})});case Kc:var j=e.activeTasks.data.map((function(e){return Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}));return Object(u.a)(Object(u.a)({},e),{},{activeTasks:Object(u.a)(Object(u.a)({},e.activeTasks),{},{allActionPending:!1,data:j})});case rs:case ts:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{data:e.pendingTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}))})});case cs:case as:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{data:e.pendingTasks.data.filter((function(e){return e.id!==t.taskId}))})});case ss:case ns:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{data:e.pendingTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case _s:case ks:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{allActionPending:!0})});case Ts:case ys:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{allActionPending:!1,data:[]})});case Es:case Ss:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{allActionPending:!1})});case Os:case xs:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{batchActionPending:!0,data:e.pendingTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!0}):e}))})});case fs:var b=e.pendingTasks.data.filter((function(e){return!t.payload.archived_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{batchActionPending:!1,data:b})});case gs:var p=e.pendingTasks.data.filter((function(e){return!t.payload.deleted_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{batchActionPending:!1,data:p})});case ms:case vs:return Object(u.a)(Object(u.a)({},e),{},{pendingTasks:Object(u.a)(Object(u.a)({},e.pendingTasks),{},{batchActionPending:!1,data:e.pendingTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!1}):e}))})});case Fc:case us:case is:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{data:e.scheduledTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}))})});case Qc:case ds:case os:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{data:e.scheduledTasks.data.filter((function(e){return e.id!==t.taskId}))})});case Yc:case js:case ls:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{data:e.scheduledTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case Ls:case Us:case Gs:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{allActionPending:!0})});case Bs:case zs:case Ms:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{allActionPending:!1,data:[]})});case Hs:case Ks:case Vs:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{allActionPending:!1})});case As:case ws:case Ns:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{batchActionPending:!0,data:e.scheduledTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!0}):e}))})});case Cs:var h=e.scheduledTasks.data.filter((function(e){return!t.payload.pending_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{batchActionPending:!1,data:h})});case Is:var O=e.scheduledTasks.data.filter((function(e){return!t.payload.archived_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{batchActionPending:!1,data:O})});case Ps:var f=e.scheduledTasks.data.filter((function(e){return!t.payload.deleted_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{batchActionPending:!1,data:f})});case Rs:case qs:case Ds:return Object(u.a)(Object(u.a)({},e),{},{scheduledTasks:Object(u.a)(Object(u.a)({},e.scheduledTasks),{},{batchActionPending:!1,data:e.scheduledTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!1}):e}))})});case Wc:case bs:case Fs:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{data:e.retryTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}))})});case Jc:case ps:case Qs:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{data:e.retryTasks.data.filter((function(e){return e.id!==t.taskId}))})});case $c:case hs:case Ys:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{data:e.retryTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case ri:case ii:case ui:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{allActionPending:!0})});case ci:case oi:case di:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{allActionPending:!1,data:[]})});case si:case li:case ji:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{allActionPending:!1})});case Ws:case Xs:case ti:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{batchActionPending:!0,data:e.retryTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!0}):e}))})});case Js:var m=e.retryTasks.data.filter((function(e){return!t.payload.pending_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{batchActionPending:!1,data:m})});case Zs:var x=e.retryTasks.data.filter((function(e){return!t.payload.archived_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{batchActionPending:!1,data:x})});case ai:var g=e.retryTasks.data.filter((function(e){return!t.payload.deleted_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{batchActionPending:!1,data:g})});case $s:case ei:case ni:return Object(u.a)(Object(u.a)({},e),{},{retryTasks:Object(u.a)(Object(u.a)({},e.retryTasks),{},{batchActionPending:!1,data:e.retryTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!1}):e}))})});case Xc:case bi:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{data:e.archivedTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!0})}))})});case Zc:case pi:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{data:e.archivedTasks.data.filter((function(e){return e.id!==t.taskId}))})});case es:case hi:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{data:e.archivedTasks.data.map((function(e){return e.id!==t.taskId?e:Object(u.a)(Object(u.a)({},e),{},{requestPending:!1})}))})});case ki:case _i:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{allActionPending:!0})});case yi:case Ti:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{allActionPending:!1,data:[]})});case Si:case Ei:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{allActionPending:!1})});case Oi:case xi:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{batchActionPending:!0,data:e.archivedTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!0}):e}))})});case fi:var v=e.archivedTasks.data.filter((function(e){return!t.payload.pending_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{batchActionPending:!1,data:v})});case gi:var k=e.archivedTasks.data.filter((function(e){return!t.payload.deleted_ids.includes(e.id)}));return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{batchActionPending:!1,data:k})});case mi:case vi:return Object(u.a)(Object(u.a)({},e),{},{archivedTasks:Object(u.a)(Object(u.a)({},e.archivedTasks),{},{batchActionPending:!1,data:e.archivedTasks.data.map((function(e){return t.taskIds.includes(e.id)?Object(u.a)(Object(u.a)({},e),{},{requestPending:!1}):e}))})});default:return e}},Ru={loading:!1,error:"",data:[]};var wu={isOpen:!1,message:""};var Iu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Sr:return Object(u.a)(Object(u.a)({},e),{},{isOpen:!1});case Mc:var a=t.payload.canceled_ids.length;return{isOpen:!0,message:"Cancelation signal sent to ".concat(a," ").concat(1===a?"task":"tasks")};case zc:return{isOpen:!0,message:"Cancelation signal sent to all tasks in ".concat(t.queue," queue")};case Qc:return{isOpen:!0,message:"Scheduled task is now pending"};case Jc:return{isOpen:!0,message:"Retry task is now pending"};case Zc:return{isOpen:!0,message:"Archived task is now pending"};case cs:return{isOpen:!0,message:"Pending task is now archived"};case ds:return{isOpen:!0,message:"Scheduled task is now archived"};case ps:return{isOpen:!0,message:"Retry task is now archived"};case as:return{isOpen:!0,message:"Pending task deleted"};case os:return{isOpen:!0,message:"Scheduled task deleted"};case Cs:var n=t.payload.pending_ids.length;return{isOpen:!0,message:"".concat(n," scheduled ").concat(1===n?"task is":"tasks are"," now pending")};case fs:var r=t.payload.archived_ids.length;return{isOpen:!0,message:"".concat(r," pending ").concat(1===r?"task is":"tasks are"," now archived")};case gs:var c=t.payload.deleted_ids.length;return{isOpen:!0,message:"".concat(c," pending ").concat(1===c?"task":"tasks"," deleted")};case Is:var s=t.payload.archived_ids.length;return{isOpen:!0,message:"".concat(s," scheduled ").concat(1===s?"task is":"tasks are"," now archived")};case Ps:var i=t.payload.deleted_ids.length;return{isOpen:!0,message:"".concat(i," scheduled ").concat(1===i?"task":"tasks"," deleted")};case Ts:return{isOpen:!0,message:"All pending tasks are now archived"};case ys:return{isOpen:!0,message:"All pending tasks deleted"};case Bs:return{isOpen:!0,message:"All scheduled tasks are now pending"};case zs:return{isOpen:!0,message:"All scheduled tasks are now archived"};case Ms:return{isOpen:!0,message:"All scheduled tasks deleted"};case Qs:return{isOpen:!0,message:"Retry task deleted"};case Js:var o=t.payload.pending_ids.length;return{isOpen:!0,message:"".concat(o," retry ").concat(1===o?"task is":"tasks are"," now pending")};case Zs:var l=t.payload.archived_ids.length;return{isOpen:!0,message:"".concat(l," retry ").concat(1===l?"task is":"tasks are"," now archived")};case ai:var d=t.payload.deleted_ids.length;return{isOpen:!0,message:"".concat(d," retry ").concat(1===d?"task":"tasks"," deleted")};case ci:return{isOpen:!0,message:"All retry tasks are now pending"};case oi:return{isOpen:!0,message:"All retry tasks are now archived"};case di:return{isOpen:!0,message:"All retry tasks deleted"};case pi:return{isOpen:!0,message:"Archived task deleted"};case fi:var j=t.payload.pending_ids.length;return{isOpen:!0,message:"".concat(j," archived ").concat(1===j?"task is":"tasks are"," now pending")};case gi:var b=t.payload.deleted_ids.length;return{isOpen:!0,message:"".concat(b," archived ").concat(1===b?"task":"tasks"," deleted")};case yi:return{isOpen:!0,message:"All archived tasks are now pending"};case Ti:return{isOpen:!0,message:"All archived tasks deleted"};case Ci:return{isOpen:!0,message:"Completed task deleted"};case Ii:return{isOpen:!0,message:"All completed tasks deleted"};case Pi:var p=t.payload.deleted_ids.length;return{isOpen:!0,message:"".concat(p," completed ").concat(1===p?"task":"tasks"," deleted")};default:return e}},qu={loading:!1,data:{}};function Nu(e,t){var a=new Date(e),n=new Date(t);return a.getUTCDate()===n.getUTCDate()&&a.getUTCMonth()===n.getUTCMonth()&&a.getUTCFullYear()===n.getUTCFullYear()}var Pu={loading:!1,error:"",address:"",data:null,rawData:null,cluster:!1,rawClusterNodes:null,queueLocations:null};var Du={loading:!1,error:"",data:null};var Lu="asynqmon:state";var Bu=Object(Su.b)({settings:vr,queues:Eu,tasks:Cu,servers:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ru,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ol:return Object(u.a)(Object(u.a)({},e),{},{loading:!0});case fl:return{loading:!1,error:"",data:t.payload.servers};case ml:return Object(u.a)(Object(u.a)({},e),{},{error:t.error,loading:!1});default:return e}},schedulerEntries:Mr,snackbar:Iu,queueStats:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case an:return Object(u.a)(Object(u.a)({},e),{},{loading:!0});case nn:return{data:t.payload.stats,loading:!1};case rn:return Object(u.a)(Object(u.a)({},e),{},{loading:!1});case Ga:var a,n=Object(u.a)({},e.data),r=Object(dr.a)(t.payload.queues);try{var c=function(){var e=a.value,t=n[e.queue];if(!t)return"continue";var r=t.map((function(t){return Nu(t.date,e.timestamp)?Object(u.a)(Object(u.a)({},t),{},{processed:e.processed,failed:e.failed}):t}));n[e.queue]=r};for(r.s();!(a=r.n()).done;)c()}catch(s){r.e(s)}finally{r.f()}return Object(u.a)(Object(u.a)({},e),{},{data:n});default:return e}},redis:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pu,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Sl:return Object(u.a)(Object(u.a)({},e),{},{loading:!0});case Tl:return Object(u.a)(Object(u.a)({},e),{},{loading:!1,error:t.error});case _l:return{loading:!1,error:"",address:t.payload.address,data:t.payload.info,rawData:t.payload.raw_info,cluster:t.payload.cluster,rawClusterNodes:t.payload.raw_cluster_nodes,queueLocations:t.payload.queue_locations};default:return e}},metrics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Ll:return Object(u.a)(Object(u.a)({},e),{},{loading:!0});case Hl:return Object(u.a)(Object(u.a)({},e),{},{loading:!1,error:t.error});case Bl:return{loading:!1,error:"",data:t.payload};default:return e}}}),Hu=function(){try{var e=localStorage.getItem(Lu);if(null===e)return{};var t=JSON.parse(e);return{settings:Object(u.a)(Object(u.a)({},gr),t.settings||{})}}catch(a){return console.log("loadState: could not load state ",a),{}}}(),Uu=Object(_u.a)({reducer:Bu,preloadedState:Hu});Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));void 0===window.FLAG_ROOT_PATH?(console.log("ROOT_PATH is not defined. Falling back to emtpy string"),window.ROOT_PATH=""):window.ROOT_PATH=window.FLAG_ROOT_PATH,void 0===window.FLAG_PROMETHEUS_SERVER_ADDRESS?(console.log("PROMETHEUS_SERVER_ADDRESS is not defined. Falling back to emtpy string"),window.PROMETHEUS_SERVER_ADDRESS=""):window.FLAG_PROMETHEUS_SERVER_ADDRESS.startsWith("/[[")&&(console.log("PROMETHEUS_SERVER_ADDRESS was not evaluated by the server. Falling back to empty string"),window.PROMETHEUS_SERVER_ADDRESS=""),void 0===window.FLAG_READ_ONLY?(console.log("READ_ONLY is not defined. Falling back to false"),window.READ_ONLY=!1):window.FLAG_READ_ONLY.startsWith("/[[")?(console.log("READ_ONLY was not evaluated by the server. Falling back to false"),window.READ_ONLY=!1):window.READ_ONLY="true"===window.FLAG_READ_ONLY;var zu=void 0;Uu.subscribe((function(){zu!==(zu=Uu.getState().settings)&&function(e){try{var t=JSON.stringify({settings:e.settings});localStorage.setItem(Lu,t)}catch(a){console.error("saveState: could not save state: ",a)}}(Uu.getState())})),s.a.render(Object(je.jsxs)(r.a.StrictMode,{children:[Object(je.jsx)(i.a,{}),Object(je.jsx)(o.a,{store:Uu,children:Object(je.jsx)(yu,{})})]}),document.getElementById("root")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[806,1,2]]]); +//# sourceMappingURL=main.9ab02e37.chunk.js.map \ No newline at end of file diff --git a/ui/build/static/js/main.9ab02e37.chunk.js.map b/ui/build/static/js/main.9ab02e37.chunk.js.map new file mode 100644 index 0000000..d57efe2 --- /dev/null +++ b/ui/build/static/js/main.9ab02e37.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["paths.ts","actions/settingsActions.ts","components/TablePaginationActions.tsx","api.ts","utils.ts","actions/queuesActions.ts","actions/queueStatsActions.ts","components/QueueSizeChart.tsx","components/ProcessedTasksChart.tsx","components/DeleteQueueConfirmationDialog.tsx","types/table.ts","components/QueuesOverviewTable.tsx","components/Tooltip.tsx","components/SplitButton.tsx","hooks/index.tsx","components/DailyStatsChart.tsx","views/DashboardView.tsx","reducers/settingsReducer.ts","theme.tsx","actions/snackbarActions.ts","components/ListItemLink.tsx","components/SyntaxHighlighter.tsx","actions/schedulerEntriesActions.ts","reducers/schedulerEntriesReducer.ts","components/SchedulerEnqueueEventsTable.tsx","components/SchedulerEntriesTable.tsx","views/SchedulersView.tsx","actions/tasksActions.ts","components/TableActions.tsx","components/ActiveTasksTable.tsx","components/PendingTasksTable.tsx","components/ScheduledTasksTable.tsx","components/RetryTasksTable.tsx","components/ArchivedTasksTable.tsx","components/CompletedTasksTable.tsx","components/TasksTable.tsx","components/QueueInfoBanner.tsx","components/QueueBreadcrumb.tsx","views/TasksView.tsx","views/TaskDetailsView.tsx","views/SettingsView.tsx","components/ServersTable.tsx","actions/serversActions.ts","views/ServersView.tsx","actions/redisInfoActions.ts","components/QueueLocationTable.tsx","views/RedisInfoView.tsx","actions/metricsActions.ts","components/QueueMetricsChart.tsx","components/MetricsFetchControls.tsx","views/MetricsView.tsx","views/PageNotFoundView.tsx","App.tsx","reducers/queuesReducer.ts","reducers/tasksReducer.ts","reducers/serversReducer.ts","reducers/snackbarReducer.ts","reducers/queueStatsReducer.ts","reducers/redisInfoReducer.ts","reducers/metricsReducer.ts","localStorage.ts","store.ts","serviceWorker.ts","parseFlags.ts","index.tsx"],"names":["console","log","window","ROOT_PATH","paths","HOME","SETTINGS","SERVERS","SCHEDULERS","QUEUE_DETAILS","REDIS","TASK_DETAILS","QUEUE_METRICS","queueDetailsPath","qname","taskStatus","path","replace","taskDetailsPath","taskId","POLL_INTERVAL_CHANGE","THEME_PREFERENCE_CHANGE","TOGGLE_DRAWER","TASK_ROWS_PER_PAGE_CHANGE","DAILY_STATS_KEY_CHANGE","taskRowsPerPageChange","value","type","useStyles","makeStyles","theme","createStyles","root","flexShrink","marginLeft","spacing","TablePaginationActions","props","classes","useTheme","count","page","rowsPerPage","onPageChange","className","IconButton","onClick","event","disabled","direction","Math","ceil","max","rowsPerPageOptions","getBaseUrl","process","listQueues","a","axios","method","url","resp","data","deleteQueue","pauseQueue","resumeQueue","listQueueStats","getTaskInfo","id","listActiveTasks","pageOpts","queryString","stringify","cancelActiveTask","cancelAllActiveTasks","batchCancelActiveTasks","taskIds","task_ids","listPendingTasks","listScheduledTasks","listRetryTasks","listArchivedTasks","listCompletedTasks","archivePendingTask","batchArchivePendingTasks","archiveAllPendingTasks","deletePendingTask","batchDeletePendingTasks","deleteAllPendingTasks","runScheduledTask","archiveScheduledTask","deleteScheduledTask","batchDeleteScheduledTasks","deleteAllScheduledTasks","batchRunScheduledTasks","runAllScheduledTasks","batchArchiveScheduledTasks","archiveAllScheduledTasks","runRetryTask","archiveRetryTask","deleteRetryTask","batchDeleteRetryTasks","deleteAllRetryTasks","batchRunRetryTasks","runAllRetryTasks","batchArchiveRetryTasks","archiveAllRetryTasks","runArchivedTask","deleteArchivedTask","batchDeleteArchivedTasks","deleteAllArchivedTasks","batchRunArchivedTasks","runAllArchivedTasks","deleteCompletedTask","batchDeleteCompletedTasks","deleteAllCompletedTasks","listServers","listSchedulerEntries","listSchedulerEnqueueEvents","entryId","getRedisInfo","getMetrics","endTime","duration","queues","params","endtime","length","join","toErrorStringWithHttpStatus","error","response","status","statusText","toErrorString","durationFromSeconds","totalSeconds","hour","floor","minute","second","durationBetween","start","end","durationInMillisec","stringifyDuration","d","n","durationBefore","timestamp","Date","parse","now","timeAgo","timeAgoUnix","unixtime","uuidPrefix","uuid","idx","indexOf","substr","percentage","numerator","denominator","perc","toFixed","prettifyPayload","p","JSON","isJsonPayload","currentUnixtime","durationRegex","LIST_QUEUES_BEGIN","LIST_QUEUES_SUCCESS","LIST_QUEUES_ERROR","DELETE_QUEUE_BEGIN","DELETE_QUEUE_SUCCESS","DELETE_QUEUE_ERROR","PAUSE_QUEUE_BEGIN","PAUSE_QUEUE_SUCCESS","PAUSE_QUEUE_ERROR","RESUME_QUEUE_BEGIN","RESUME_QUEUE_SUCCESS","RESUME_QUEUE_ERROR","listQueuesAsync","dispatch","payload","deleteQueueAsync","queue","LIST_QUEUE_STATS_BEGIN","LIST_QUEUE_STATS_SUCCESS","LIST_QUEUE_STATS_ERROR","QueueSizeChart","history","useHistory","ResponsiveContainer","maxBarSize","allQueues","map","b","activeLabel","includes","push","style","cursor","CartesianGrid","strokeDasharray","XAxis","dataKey","stroke","palette","text","secondary","YAxis","Tooltip","Legend","Bar","stackId","fill","ProcessedTasksChart","success","light","connector","SortDirection","connect","state","ownProps","requestPending","q","find","name","undefined","Dialog","open","onClose","size","DialogTitle","DialogContent","DialogContentText","DialogActions","Button","color","autoFocus","SortBy","table","minWidth","fixedCell","position","zIndex","left","background","paper","colConfigs","label","key","sortBy","Queue","align","State","Size","MemoryUsage","Latency","Processed","Failed","ErrorRate","None","sortQueues","cmpFn","copy","sort","QueuesOverviewTable","useState","setSortBy","Asc","sortDir","setSortDir","queueToDelete","setQueueToDelete","Fragment","TableContainer","Table","TableHead","TableRow","filter","cfg","READ_ONLY","i","TableCell","clsx","TableSortLabel","active","sortKey","e","nextSortDir","Desc","TableBody","q1","q2","isQ1Smaller","paused","memory_usage_bytes","latency_msec","processed","failed","q1ErrorRate","q2ErrorRate","Row","onPauseClick","onResumeClick","onDeleteClick","useRowStyles","row","borderBottomWidth","linkText","textDecoration","primary","textGreen","dark","textRed","boldCell","fontWeight","actionIconsContainer","display","justifyContent","showIcons","setShowIcons","component","scope","to","prettyBytes","display_latency","onMouseEnter","onMouseLeave","title","fontSize","withStyles","tooltip","backgroundColor","maxWidth","typography","pxToRem","border","popper","buttonContained","isDarkTheme","default","action","hover","SplitButton","React","setOpen","anchorRef","useRef","initialSelectedKey","selectedKey","setSelectedKey","handleClose","current","contains","target","selectedOpt","options","opt","ButtonGroup","variant","ref","disableElevation","contained","prevOpen","Popper","anchorEl","role","transition","disablePortal","TransitionProps","placement","Grow","transformOrigin","Paper","ClickAwayListener","onClickAway","MenuList","MenuItem","selected","onSelect","usePolling","doFn","interval","useEffect","setInterval","clearInterval","useQuery","search","useLocation","useMemo","URLSearchParams","DailyStatsChart","queueStats","numDays","dataByDate","stat","hasOwnProperty","date","succeeded","Object","values","sortByDate","slice","makeChartData","LineChart","minTickGap","Line","main","x","y","container","paddingTop","paddingBottom","padding","overflow","flexDirection","chartHeader","alignItems","marginBottom","chartHeaderTitle","chartContainer","width","height","infoIcon","grey","tooltipSection","tableContainer","mapDispatchToProps","pauseQueueAsync","resumeQueueAsync","listQueueStatsAsync","dailyStatsKeyChange","ThemePreference","loading","currentStats","pollInterval","settings","dailyStatsKey","dailyStatsChartType","qnames","processedStats","Container","Grid","item","xs","Alert","severity","AlertTitle","Typography","initialState","themePreference","SystemDefault","isDrawerOpen","taskRowsPerPage","settingsReducer","CLOSE_SNACKBAR","listItem","borderTopRightRadius","borderBottomRightRadius","selectedText","selectedIcon","ListItemLink","icon","isMatch","useRouteMatch","strict","sensitive","exact","renderLink","forwardRef","itemProps","ListItem","button","ListItemIcon","ListItemText","SyntaxHighlighter","styleDark","styleLight","language","customStyle","children","LIST_SCHEDULER_ENTRIES_BEGIN","LIST_SCHEDULER_ENTRIES_SUCCESS","LIST_SCHEDULER_ENTRIES_ERROR","LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN","LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS","LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR","getEnqueueEventsEntry","enqueueEventsByEntryId","schedulerEntriesReducer","entries","entry","sortByEnqueuedAt","e1","e2","enqueued_at","newData","uniqBy","events","stickyHeaderCell","schedulerEntries","listSchedulerEnqueueEventsAsync","stickyHeader","task_id","noBorder","modal","modalContent","outline","borderRadius","shape","eventsTable","maxHeight","EntryId","Spec","Type","Payload","Options","NextEnqueue","PrevEnqueue","sortEntries","SchedulerEntriesTable","activeEntryId","setActiveEntryId","isE1Smaller","spec","task_type","task_payload","next_enqueue_at","e1PrevEnqueueAt","prev_enqueue_at","e2PrevEnqueueAt","isLastRow","onShowHistoryClick","Modal","gutterBottom","rowRoot","borderBottom","heading","paddingLeft","listSchedulerEntriesAsync","GET_TASK_INFO_BEGIN","GET_TASK_INFO_SUCCESS","GET_TASK_INFO_ERROR","LIST_ACTIVE_TASKS_BEGIN","LIST_ACTIVE_TASKS_SUCCESS","LIST_ACTIVE_TASKS_ERROR","LIST_PENDING_TASKS_BEGIN","LIST_PENDING_TASKS_SUCCESS","LIST_PENDING_TASKS_ERROR","LIST_SCHEDULED_TASKS_BEGIN","LIST_SCHEDULED_TASKS_SUCCESS","LIST_SCHEDULED_TASKS_ERROR","LIST_RETRY_TASKS_BEGIN","LIST_RETRY_TASKS_SUCCESS","LIST_RETRY_TASKS_ERROR","LIST_ARCHIVED_TASKS_BEGIN","LIST_ARCHIVED_TASKS_SUCCESS","LIST_ARCHIVED_TASKS_ERROR","LIST_COMPLETED_TASKS_BEGIN","LIST_COMPLETED_TASKS_SUCCESS","LIST_COMPLETED_TASKS_ERROR","CANCEL_ACTIVE_TASK_BEGIN","CANCEL_ACTIVE_TASK_SUCCESS","CANCEL_ACTIVE_TASK_ERROR","CANCEL_ALL_ACTIVE_TASKS_BEGIN","CANCEL_ALL_ACTIVE_TASKS_SUCCESS","CANCEL_ALL_ACTIVE_TASKS_ERROR","BATCH_CANCEL_ACTIVE_TASKS_BEGIN","BATCH_CANCEL_ACTIVE_TASKS_SUCCESS","BATCH_CANCEL_ACTIVE_TASKS_ERROR","RUN_SCHEDULED_TASK_BEGIN","RUN_SCHEDULED_TASK_SUCCESS","RUN_SCHEDULED_TASK_ERROR","RUN_RETRY_TASK_BEGIN","RUN_RETRY_TASK_SUCCESS","RUN_RETRY_TASK_ERROR","RUN_ARCHIVED_TASK_BEGIN","RUN_ARCHIVED_TASK_SUCCESS","RUN_ARCHIVED_TASK_ERROR","DELETE_PENDING_TASK_BEGIN","DELETE_PENDING_TASK_SUCCESS","DELETE_PENDING_TASK_ERROR","ARCHIVE_PENDING_TASK_BEGIN","ARCHIVE_PENDING_TASK_SUCCESS","ARCHIVE_PENDING_TASK_ERROR","DELETE_SCHEDULED_TASK_BEGIN","DELETE_SCHEDULED_TASK_SUCCESS","DELETE_SCHEDULED_TASK_ERROR","ARCHIVE_SCHEDULED_TASK_BEGIN","ARCHIVE_SCHEDULED_TASK_SUCCESS","ARCHIVE_SCHEDULED_TASK_ERROR","ARCHIVE_RETRY_TASK_BEGIN","ARCHIVE_RETRY_TASK_SUCCESS","ARCHIVE_RETRY_TASK_ERROR","BATCH_ARCHIVE_PENDING_TASKS_BEGIN","BATCH_ARCHIVE_PENDING_TASKS_SUCCESS","BATCH_ARCHIVE_PENDING_TASKS_ERROR","BATCH_DELETE_PENDING_TASKS_BEGIN","BATCH_DELETE_PENDING_TASKS_SUCCESS","BATCH_DELETE_PENDING_TASKS_ERROR","DELETE_ALL_PENDING_TASKS_BEGIN","DELETE_ALL_PENDING_TASKS_SUCCESS","DELETE_ALL_PENDING_TASKS_ERROR","ARCHIVE_ALL_PENDING_TASKS_BEGIN","ARCHIVE_ALL_PENDING_TASKS_SUCCESS","ARCHIVE_ALL_PENDING_TASKS_ERROR","BATCH_RUN_SCHEDULED_TASKS_BEGIN","BATCH_RUN_SCHEDULED_TASKS_SUCCESS","BATCH_RUN_SCHEDULED_TASKS_ERROR","BATCH_ARCHIVE_SCHEDULED_TASKS_BEGIN","BATCH_ARCHIVE_SCHEDULED_TASKS_SUCCESS","BATCH_ARCHIVE_SCHEDULED_TASKS_ERROR","BATCH_DELETE_SCHEDULED_TASKS_BEGIN","BATCH_DELETE_SCHEDULED_TASKS_SUCCESS","BATCH_DELETE_SCHEDULED_TASKS_ERROR","RUN_ALL_SCHEDULED_TASKS_BEGIN","RUN_ALL_SCHEDULED_TASKS_SUCCESS","RUN_ALL_SCHEDULED_TASKS_ERROR","ARCHIVE_ALL_SCHEDULED_TASKS_BEGIN","ARCHIVE_ALL_SCHEDULED_TASKS_SUCCESS","ARCHIVE_ALL_SCHEDULED_TASKS_ERROR","DELETE_ALL_SCHEDULED_TASKS_BEGIN","DELETE_ALL_SCHEDULED_TASKS_SUCCESS","DELETE_ALL_SCHEDULED_TASKS_ERROR","DELETE_RETRY_TASK_BEGIN","DELETE_RETRY_TASK_SUCCESS","DELETE_RETRY_TASK_ERROR","BATCH_RUN_RETRY_TASKS_BEGIN","BATCH_RUN_RETRY_TASKS_SUCCESS","BATCH_RUN_RETRY_TASKS_ERROR","BATCH_ARCHIVE_RETRY_TASKS_BEGIN","BATCH_ARCHIVE_RETRY_TASKS_SUCCESS","BATCH_ARCHIVE_RETRY_TASKS_ERROR","BATCH_DELETE_RETRY_TASKS_BEGIN","BATCH_DELETE_RETRY_TASKS_SUCCESS","BATCH_DELETE_RETRY_TASKS_ERROR","RUN_ALL_RETRY_TASKS_BEGIN","RUN_ALL_RETRY_TASKS_SUCCESS","RUN_ALL_RETRY_TASKS_ERROR","ARCHIVE_ALL_RETRY_TASKS_BEGIN","ARCHIVE_ALL_RETRY_TASKS_SUCCESS","ARCHIVE_ALL_RETRY_TASKS_ERROR","DELETE_ALL_RETRY_TASKS_BEGIN","DELETE_ALL_RETRY_TASKS_SUCCESS","DELETE_ALL_RETRY_TASKS_ERROR","DELETE_ARCHIVED_TASK_BEGIN","DELETE_ARCHIVED_TASK_SUCCESS","DELETE_ARCHIVED_TASK_ERROR","BATCH_RUN_ARCHIVED_TASKS_BEGIN","BATCH_RUN_ARCHIVED_TASKS_SUCCESS","BATCH_RUN_ARCHIVED_TASKS_ERROR","BATCH_DELETE_ARCHIVED_TASKS_BEGIN","BATCH_DELETE_ARCHIVED_TASKS_SUCCESS","BATCH_DELETE_ARCHIVED_TASKS_ERROR","RUN_ALL_ARCHIVED_TASKS_BEGIN","RUN_ALL_ARCHIVED_TASKS_SUCCESS","RUN_ALL_ARCHIVED_TASKS_ERROR","DELETE_ALL_ARCHIVED_TASKS_BEGIN","DELETE_ALL_ARCHIVED_TASKS_SUCCESS","DELETE_ALL_ARCHIVED_TASKS_ERROR","DELETE_COMPLETED_TASK_BEGIN","DELETE_COMPLETED_TASK_SUCCESS","DELETE_COMPLETED_TASK_ERROR","DELETE_ALL_COMPLETED_TASKS_BEGIN","DELETE_ALL_COMPLETED_TASKS_SUCCESS","DELETE_ALL_COMPLETED_TASKS_ERROR","BATCH_DELETE_COMPLETED_TASKS_BEGIN","BATCH_DELETE_COMPLETED_TASKS_SUCCESS","BATCH_DELETE_COMPLETED_TASKS_ERROR","actionsContainer","moreIcon","marginRight","iconGroup","borderLeft","TableActions","menuAnchor","setMenuAnchor","closeMenu","currentTarget","keepMounted","Boolean","menuItemActions","showIconButtons","iconButtonActions","alert","borderTopLeftRadius","pagination","listActiveTasksAsync","cancelActiveTaskAsync","batchCancelActiveTasksAsync","cancelAllActiveTasksAsync","columns","tasks","activeTasks","batchActionPending","allActionPending","pageSize","boxShadow","shadows","borderBottomColor","idCell","copyButton","IdGroup","task","isSelected","stopPropagation","Checkbox","onChange","onSelectChange","checked","navigator","clipboard","writeText","margin","canceling","is_orphaned","start_time","deadline","onActionCellEnter","onActionCellLeave","showActions","onCancelClick","setPage","selectedIds","setSelectedIds","activeTaskId","setActiveTaskId","useCallback","rowCount","numSelected","then","indeterminate","newSelected","t","inputProps","col","concat","TableFooter","TablePagination","colSpan","SelectProps","native","newPage","onRowsPerPageChange","parseInt","ActionsComponent","listPendingTasksAsync","deletePendingTaskAsync","batchDeletePendingTasksAsync","deleteAllPendingTasksAsync","deleted","archivePendingTaskAsync","batchArchivePendingTasksAsync","archiveAllPendingTasksAsync","pendingTasks","actionCell","actionButton","retried","max_retry","onArchiveClick","totalTaskCount","listScheduledTasksAsync","batchDeleteScheduledTasksAsync","batchRunScheduledTasksAsync","batchArchiveScheduledTasksAsync","deleteAllScheduledTasksAsync","runAllScheduledTasksAsync","archiveAllScheduledTasksAsync","deleteScheduledTaskAsync","runScheduledTaskAsync","archiveScheduledTaskAsync","scheduledTasks","next_process_at","onRunClick","batchDeleteRetryTasksAsync","batchRunRetryTasksAsync","batchArchiveRetryTasksAsync","deleteAllRetryTasksAsync","runAllRetryTasksAsync","archiveAllRetryTasksAsync","listRetryTasksAsync","deleteRetryTaskAsync","runRetryTaskAsync","archiveRetryTaskAsync","retryTasks","error_message","listArchivedTasksAsync","runArchivedTaskAsync","runAllArchivedTasksAsync","deleteArchivedTaskAsync","deleteAllArchivedTasksAsync","batchRunArchivedTasksAsync","batchDeleteArchivedTasksAsync","archivedTasks","last_failed_at","listCompletedTasksAsync","deleteCompletedTaskAsync","deleteAllCompletedTasksAsync","batchDeleteCompletedTasksAsync","completedTasks","completed_at","result","ttl_seconds","TabPanel","other","hidden","flex","overflowY","queueInfo","pending","scheduled","retry","archived","completed","header","paddingRight","chip","taskcount","textAlign","searchbar","searchIcon","pointerEvents","inputRoot","inputInput","chips","searchQuery","setSearchQuery","c","Chip","InputBase","placeholder","input","onKeyDown","trim","banner","bannerItem","flexGrow","divider","StyledBreadcrumb","emphasize","QueueBreadcrumbs","setAnchorEl","getPaths","handleClick","preventDefault","Breadcrumbs","Link","queueName","deleteIcon","onDelete","breadcrumbs","tasksTable","validStatus","useParams","get","taskInfo","getTaskInfoAsync","marginTop","infoRow","infoKeyCell","infoValueCell","footer","md","timeout_seconds","startIcon","goBack","formControl","selectEmpty","select","pollIntervalChange","selectTheme","sliderValue","setSliderValue","justify","Slider","val","onChangeCommitted","valueLabelDisplay","step","marks","min","Select","labelId","Always","Never","HostPID","Started","Status","Queues","ActiveWorkers","sortServerInfos","ServersTable","servers","s1","s2","isS1Smaller","host","pid","s1StartTime","s2StartTime","s1Queues","keys","queue_priorities","s2Queues","active_workers","srv","server","link","concurrency","Collapse","in","timeout","unmountOnExit","worker","Box","strict_priority_enabled","LIST_SERVERS_BEGIN","LIST_SERVERS_SUCCESS","LIST_SERVERS_ERROR","listServersAsync","GET_REDIS_INFO_BEGIN","GET_REDIS_INFO_SUCCESS","GET_REDIS_INFO_ERROR","QueueLocationTable","queueLocations","loc","keyslot","nodes","redis","redisInfo","redisAddress","address","redisInfoRaw","rawData","redisClusterEnabled","cluster","redisClusterNodesRaw","rawClusterNodes","getRedisInfoAsync","RedisMetricCards","MetricCard","content","redis_version","uptime_in_days","used_memory_human","used_memory_peak_human","mem_fragmentation_ratio","connected_clients","connected_slaves","rdb_last_save_time","rdb_changes_since_last_save","Card","CardContent","href","GET_METRICS_BEGIN","GET_METRICS_SUCCESS","GET_METRICS_ERROR","lineColors","QueueMetricsChart","metrics","byTimestamp","ts","metric","parseFloat","toChartData","domain","startTime","tickFormatter","toLocaleTimeString","scale","yAxisTickFormatter","labelFormatter","dot","defaultProps","toString","mapStateToProps","endTimeCaption","shiftButtons","buttonGroupRoot","top","endTimeShiftControls","borderBottomStyle","leftShiftButtons","rightShiftButtons","controlsContainer","controlSelectorBox","controlEndTimeSelector","controlDurationSelector","radioButtonRoot","formControlLabel","buttonLabel","textTransform","formControlRoot","formLabel","customInputField","filterButton","queueFilters","checkbox","day","formatTime","tz","timeZoneName","split","dayjs","unix","format","RadioInput","FormControlLabel","control","Radio","useShiftButtonStyles","dense","iconRoot","ShiftButton","endTimeSec","durationSec","endTimeOption","customEndTime","durationOption","customDuration","toISOString","customEndTimeError","customDurationError","getInitialState","setState","timePopoverAnchorElem","setTimePopoverAnchorElem","queuePopoverAnchorElem","setQueuePopoverAnchorElem","isTimePopoverOpen","isQueuePopoverOpen","onEndTimeChange","shiftBy","deltaSec","prevState","Popover","anchorOrigin","vertical","horizontal","FormLabel","RadioGroup","TextField","persist","timeUsecOrNaN","isNaN","helperText","isEndTimeFixed","onDurationChange","s","test","Error","parseDuration","FormGroup","selectedQueues","removeQueue","addQueue","appBar","right","chartInfo","errorMessage","warningIcon","getMetricsAsync","ENDTIME_URL_PARAM_KEY","DURATION_URL_PARAM_KEY","query","endTimeStr","durationStr","setEndTimeSec","setDurationSec","setSelectedQueues","urlQuery","location","tasks_processed_per_second","ChartRow","description","tasks_failed_per_second","error_rate","queue_size","queue_latency_seconds","queue_memory_usage_approx_bytes","pending_tasks_by_queue","retry_tasks_by_queue","archived_tasks_by_queue","headingText","PageNotFoundView","closeSnackbar","toggleDrawer","SlideUpTransition","Slide","snackbar","prefersDarkMode","useMediaQuery","createTheme","toolbar","toolbarIcon","mixins","drawer","menuButton","menuButtonHidden","drawerPaper","whiteSpace","transitions","create","easing","sharp","enteringScreen","drawerPaperClose","overflowX","leavingScreen","breakpoints","up","snackbarCloseIcon","appBarSpacer","mainContainer","contentWrapper","sidebarContainer","ThemeProvider","AppBar","Toolbar","edge","noWrap","Drawer","Snackbar","isOpen","autoHideDuration","TransitionComponent","SnackbarContent","message","List","PROMETHEUS_SERVER_ADDRESS","queuesReducer","stats","archived_ids","deleted_ids","pending_ids","tasksReducer","canceled_ids","error_ids","snackbarReducer","isSameDate","ts1","ts2","date1","date2","getUTCDate","getUTCMonth","getUTCFullYear","LOCAL_STORAGE_KEY","rootReducer","combineReducers","newStats","info","raw_info","raw_cluster_nodes","queue_locations","preloadedState","serializedState","localStorage","getItem","savedState","settingsInitialState","err","loadState","store","configureStore","reducer","hostname","match","FLAG_ROOT_PATH","FLAG_PROMETHEUS_SERVER_ADDRESS","startsWith","FLAG_READ_ONLY","currentSettings","subscribe","getState","setItem","saveState","ReactDOM","render","StrictMode","CssBaseline","document","getElementById","serviceWorker","ready","registration","unregister","catch"],"mappings":"6dAAAA,QAAQC,IAAI,mBAAoBC,OAAOC,WAChC,IAAMC,EAAQ,iBAAO,CAC1BC,KAAK,GAAD,OAAKH,OAAOC,UAAZ,KAC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gBACTxpC,QAAQC,IAAI,mDACZC,OAAO2R,WAAY,GACV3R,OAAOspC,eAAeD,WAhCR,QAiCvBvpC,QAAQC,IACN,oEAEFC,OAAO2R,WAAY,GAEnB3R,OAAO2R,UAAsC,SAA1B3R,OAAOspC,eC1B9B,IAAIC,QAA6Cl7B,EACjDy6B,GAAMU,WAAU,WACOD,MACrBA,GAAkBT,GAAMW,WAAWluB,WJQ9B,SAAmBxN,GACxB,IACE,IAAMw6B,EAAkBj+B,KAAKhG,UAAU,CAAEiX,SAAUxN,EAAMwN,WACzDitB,aAAakB,QAAQ5B,GAAmBS,GACxC,MAAOK,GACP9oC,QAAQkI,MAAM,oCAAqC4gC,IITnDe,CAAUb,GAAMW,eAIpBG,IAASC,OACP,gBAAC,IAAMC,WAAP,WACE,eAACC,EAAA,EAAD,IACA,eAAC,IAAD,CAAUjB,MAAOA,GAAjB,SACE,eAAC,GAAD,SAGJkB,SAASC,eAAe,SF4GpB,kBAAmBxd,WACrBA,UAAUyd,cAAcC,MACrBtc,MAAK,SAAAuc,GACJA,EAAaC,gBAEdC,OAAM,SAAAtiC,GACLlI,QAAQkI,MAAMA,EAAM0+B,c","file":"static/js/main.9ab02e37.chunk.js","sourcesContent":["console.log(\"DEBUG: ROOT_PATH\", window.ROOT_PATH);\nexport const paths = () => ({\n HOME: `${window.ROOT_PATH}/`,\n SETTINGS: `${window.ROOT_PATH}/settings`,\n SERVERS: `${window.ROOT_PATH}/servers`,\n SCHEDULERS: `${window.ROOT_PATH}/schedulers`,\n QUEUE_DETAILS: `${window.ROOT_PATH}/queues/:qname`,\n REDIS: `${window.ROOT_PATH}/redis`,\n TASK_DETAILS: `${window.ROOT_PATH}/queues/:qname/tasks/:taskId`,\n QUEUE_METRICS: `${window.ROOT_PATH}/q/metrics`,\n});\n\n/**************************************************************\n Path Helper functions\n **************************************************************/\n\nexport function queueDetailsPath(qname: string, taskStatus?: string): string {\n const path = paths().QUEUE_DETAILS.replace(\":qname\", qname);\n if (taskStatus) {\n return `${path}?status=${taskStatus}`;\n }\n return path;\n}\n\nexport function taskDetailsPath(qname: string, taskId: string): string {\n return paths()\n .TASK_DETAILS.replace(\":qname\", qname)\n .replace(\":taskId\", taskId);\n}\n\n/**************************************************************\n URL Params\n **************************************************************/\n\nexport interface QueueDetailsRouteParams {\n qname: string;\n}\n\nexport interface TaskDetailsRouteParams {\n qname: string;\n taskId: string;\n}\n","import { ThemePreference } from \"../reducers/settingsReducer\";\nimport { DailyStatsKey } from \"../views/DashboardView\";\n// List of settings related action types.\nexport const POLL_INTERVAL_CHANGE = \"POLL_INTERVAL_CHANGE\";\nexport const THEME_PREFERENCE_CHANGE = \"THEME_PREFERENCE_CHANGE\";\nexport const TOGGLE_DRAWER = \"TOGGLE_DRAWER\";\nexport const TASK_ROWS_PER_PAGE_CHANGE = \"TASK_ROWS_PER_PAGE_CHANGE\";\nexport const DAILY_STATS_KEY_CHANGE = \"DAILY_STATS_KEY_CHANGE\";\n\ninterface PollIntervalChangeAction {\n type: typeof POLL_INTERVAL_CHANGE;\n value: number; // new poll interval value in seconds\n}\n\ninterface ThemePreferenceChangeAction {\n type: typeof THEME_PREFERENCE_CHANGE;\n value: ThemePreference;\n}\n\ninterface ToggleDrawerAction {\n type: typeof TOGGLE_DRAWER;\n}\n\ninterface TaskRowsPerPageChange {\n type: typeof TASK_ROWS_PER_PAGE_CHANGE;\n value: number;\n}\n\ninterface DailyStatsKeyChange {\n type: typeof DAILY_STATS_KEY_CHANGE;\n value: DailyStatsKey;\n}\n\n// Union of all settings related action types.\nexport type SettingsActionTypes =\n | PollIntervalChangeAction\n | ThemePreferenceChangeAction\n | ToggleDrawerAction\n | TaskRowsPerPageChange\n | DailyStatsKeyChange;\n\nexport function pollIntervalChange(value: number) {\n return {\n type: POLL_INTERVAL_CHANGE,\n value,\n };\n}\n\nexport function selectTheme(value: ThemePreference) {\n return {\n type: THEME_PREFERENCE_CHANGE,\n value,\n };\n}\n\nexport function toggleDrawer() {\n return { type: TOGGLE_DRAWER };\n}\n\nexport function taskRowsPerPageChange(value: number) {\n return {\n type: TASK_ROWS_PER_PAGE_CHANGE,\n value,\n };\n}\n\nexport function dailyStatsKeyChange(value: DailyStatsKey) {\n return {\n type: DAILY_STATS_KEY_CHANGE,\n value,\n }\n}\n","import React from \"react\";\nimport {\n useTheme,\n makeStyles,\n Theme,\n createStyles,\n} from \"@material-ui/core/styles\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport FirstPageIcon from \"@material-ui/icons/FirstPage\";\nimport KeyboardArrowLeft from \"@material-ui/icons/KeyboardArrowLeft\";\nimport KeyboardArrowRight from \"@material-ui/icons/KeyboardArrowRight\";\nimport LastPageIcon from \"@material-ui/icons/LastPage\";\n\nconst useStyles = makeStyles((theme: Theme) =>\n createStyles({\n root: {\n flexShrink: 0,\n marginLeft: theme.spacing(2.5),\n },\n })\n);\n\ninterface TablePaginationActionsProps {\n count: number;\n page: number;\n rowsPerPage: number;\n onPageChange: (\n event: React.MouseEvent,\n newPage: number\n ) => void;\n}\n\nfunction TablePaginationActions(props: TablePaginationActionsProps) {\n const classes = useStyles();\n const theme = useTheme();\n const { count, page, rowsPerPage, onPageChange } = props;\n\n const handleFirstPageButtonClick = (\n event: React.MouseEvent\n ) => {\n onPageChange(event, 0);\n };\n\n const handleBackButtonClick = (\n event: React.MouseEvent\n ) => {\n onPageChange(event, page - 1);\n };\n\n const handleNextButtonClick = (\n event: React.MouseEvent\n ) => {\n onPageChange(event, page + 1);\n };\n\n const handleLastPageButtonClick = (\n event: React.MouseEvent\n ) => {\n onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));\n };\n\n return (\n
\n \n {theme.direction === \"rtl\" ? : }\n \n \n {theme.direction === \"rtl\" ? (\n \n ) : (\n \n )}\n \n = Math.ceil(count / rowsPerPage) - 1}\n aria-label=\"next page\"\n >\n {theme.direction === \"rtl\" ? (\n \n ) : (\n \n )}\n \n = Math.ceil(count / rowsPerPage) - 1}\n aria-label=\"last page\"\n >\n {theme.direction === \"rtl\" ? : }\n \n
\n );\n}\n\nexport default TablePaginationActions;\n\nexport const rowsPerPageOptions = [10, 20, 30, 60, 100];\nexport const defaultPageSize = 20;\n","import axios from \"axios\";\nimport queryString from \"query-string\";\n\n// In production build, API server is on listening on the same port as\n// the static file server.\n// In developement, we assume that the API server is listening on port 8080.\nconst getBaseUrl = () => {\n console.log(\"DEBUG: production? \", process.env.NODE_ENV === \"production\");\n return process.env.NODE_ENV === \"production\"\n ? `${window.ROOT_PATH}/api`\n : `http://localhost:8080${window.ROOT_PATH}/api`;\n};\n\nexport interface ListQueuesResponse {\n queues: Queue[];\n}\n\nexport interface ListTasksResponse {\n tasks: TaskInfo[];\n stats: Queue;\n}\n\nexport interface ListServersResponse {\n servers: ServerInfo[];\n}\n\nexport interface ListSchedulerEntriesResponse {\n entries: SchedulerEntry[];\n}\n\nexport interface ListSchedulerEnqueueEventsResponse {\n events: SchedulerEnqueueEvent[];\n}\n\nexport interface BatchCancelTasksResponse {\n canceled_ids: string[];\n error_ids: string[];\n}\n\nexport interface BatchDeleteTasksResponse {\n deleted_ids: string[];\n failed_ids: string[];\n}\n\nexport interface BatchRunTasksResponse {\n pending_ids: string[];\n error_ids: string[];\n}\n\nexport interface BatchArchiveTasksResponse {\n archived_ids: string[];\n error_ids: string[];\n}\n\nexport interface DeleteAllTasksResponse {\n deleted: number;\n}\n\nexport interface ListQueueStatsResponse {\n stats: { [qname: string]: DailyStat[] };\n}\n\nexport interface RedisInfoResponse {\n address: string;\n info: RedisInfo;\n raw_info: string;\n cluster: boolean;\n\n // following fields are set only when cluster=true\n raw_cluster_nodes: string;\n queue_locations: QueueLocation[] | null;\n}\n\n// Describes location of a queue in cluster.\nexport interface QueueLocation {\n queue: string; // queue name\n keyslot: number; // cluster keyslot\n nodes: string[]; // node addresses\n}\n\nexport interface MetricsResponse {\n queue_size: PrometheusMetricsResponse;\n queue_latency_seconds: PrometheusMetricsResponse;\n queue_memory_usage_approx_bytes: PrometheusMetricsResponse;\n tasks_processed_per_second: PrometheusMetricsResponse;\n tasks_failed_per_second: PrometheusMetricsResponse;\n error_rate: PrometheusMetricsResponse;\n pending_tasks_by_queue: PrometheusMetricsResponse;\n retry_tasks_by_queue: PrometheusMetricsResponse;\n archived_tasks_by_queue: PrometheusMetricsResponse;\n}\n\nexport interface PrometheusMetricsResponse {\n status: \"success\" | \"error\";\n data?: MetricsResult; // present if status === \"success\"\n error?: string; // present if status === \"error\"\n errorType?: string; // present if status === \"error\"\n}\n\nexport interface MetricsResult {\n resultType: string;\n result: Metrics[];\n}\n\nexport interface Metrics {\n metric: MetricsInfo;\n values: [number, string][]; // [unixtime, value]\n}\n\nexport interface MetricsInfo {\n __name__: string;\n instance: string;\n job: string;\n\n // labels (may or may not be present depending on metrics)\n queue?: string;\n state?: string;\n}\n\n// Return value from redis INFO command.\n// See https://redis.io/commands/info#return-value.\nexport interface RedisInfo {\n active_defrag_hits: string;\n active_defrag_key_hits: string;\n active_defrag_key_misses: string;\n active_defrag_misses: string;\n active_defrag_running: string;\n allocator_active: string;\n allocator_allocated: string;\n allocator_frag_bytes: string;\n allocator_frag_ratio: string;\n allocator_resident: string;\n allocator_rss_bytes: string;\n allocator_rss_ratio: string;\n aof_current_rewrite_time_sec: string;\n aof_enabled: string;\n aof_last_bgrewrite_status: string;\n aof_last_cow_size: string;\n aof_last_rewrite_time_sec: string;\n aof_last_write_status: string;\n aof_rewrite_in_progress: string;\n aof_rewrite_scheduled: string;\n arch_bits: string;\n atomicvar_api: string;\n blocked_clients: string;\n client_recent_max_input_buffer: string;\n client_recent_max_output_buffer: string;\n clients_in_timeout_table: string;\n cluster_enabled: string;\n config_file: string;\n configured_hz: string;\n connected_clients: string;\n connected_slaves: string;\n evicted_keys: string;\n executable: string;\n expire_cycle_cpu_milliseconds: string;\n expired_keys: string;\n expired_stale_perc: string;\n expired_time_cap_reached_count: string;\n gcc_version: string;\n hz: string;\n instantaneous_input_kbps: string;\n instantaneous_ops_per_sec: string;\n instantaneous_output_kbps: string;\n keyspace_hits: string;\n keyspace_misses: string;\n latest_fork_usec: string;\n lazyfree_pending_objects: string;\n loading: string;\n lru_clock: string;\n master_repl_offset: string;\n master_replid: string;\n master_replid2: string;\n maxmemory: string;\n maxmemory_human: string;\n maxmemory_policy: string;\n mem_allocator: string;\n mem_aof_buffer: string;\n mem_clients_normal: string;\n mem_clients_slaves: string;\n mem_fragmentation_bytes: string;\n mem_fragmentation_ratio: string;\n mem_not_counted_for_evict: string;\n mem_replication_backlog: string;\n migrate_cached_sockets: string;\n module_fork_in_progress: string;\n module_fork_last_cow_size: string;\n multiplexing_api: string;\n number_of_cached_scripts: string;\n os: string;\n process_id: string;\n pubsub_channels: string;\n pubsub_patterns: string;\n rdb_bgsave_in_progress: string;\n rdb_changes_since_last_save: string;\n rdb_current_bgsave_time_sec: string;\n rdb_last_bgsave_status: string;\n rdb_last_bgsave_time_sec: string;\n rdb_last_cow_size: string;\n rdb_last_save_time: string;\n redis_build_id: string;\n redis_git_dirty: string;\n redis_git_sha1: string;\n redis_mode: string;\n redis_version: string;\n rejected_connections: string;\n repl_backlog_active: string;\n repl_backlog_first_byte_offset: string;\n repl_backlog_histlen: string;\n repl_backlog_size: string;\n role: string;\n rss_overhead_bytes: string;\n rss_overhead_ratio: string;\n run_id: string;\n second_repl_offset: string;\n slave_expires_tracked_keys: string;\n sync_full: string;\n sync_partial_err: string;\n sync_partial_ok: string;\n tcp_port: string;\n total_commands_processed: string;\n total_connections_received: string;\n total_net_input_bytes: string;\n total_net_output_bytes: string;\n total_system_memory: string;\n total_system_memory_human: string;\n tracking_clients: string;\n tracking_total_items: string;\n tracking_total_keys: string;\n tracking_total_prefixes: string;\n unexpected_error_replies: string;\n uptime_in_days: string;\n uptime_in_seconds: string;\n used_cpu_sys: string;\n used_cpu_sys_children: string;\n used_cpu_user: string;\n used_cpu_user_children: string;\n used_memory: string;\n used_memory_dataset: string;\n used_memory_dataset_perc: string;\n used_memory_human: string;\n used_memory_lua: string;\n used_memory_lua_human: string;\n used_memory_overhead: string;\n used_memory_peak: string;\n used_memory_peak_human: string;\n used_memory_peak_perc: string;\n used_memory_rss: string;\n used_memory_rss_human: string;\n used_memory_scripts: string;\n used_memory_scripts_human: string;\n used_memory_startup: string;\n}\n\nexport interface Queue {\n queue: string;\n paused: boolean;\n size: number;\n latency_msec: number;\n display_latency: string;\n memory_usage_bytes: number;\n active: number;\n pending: number;\n scheduled: number;\n retry: number;\n archived: number;\n completed: number;\n processed: number;\n failed: number;\n timestamp: string;\n}\n\nexport interface DailyStat {\n queue: string;\n date: string;\n processed: number;\n failed: number;\n}\n\nexport interface TaskInfo {\n id: string;\n queue: string;\n type: string;\n payload: string;\n state: string;\n start_time: string; // Only applies to task.state == 'active'\n max_retry: number;\n retried: number;\n last_failed_at: string;\n error_message: string;\n next_process_at: string;\n timeout_seconds: number;\n deadline: string;\n completed_at: string;\n result: string;\n ttl_seconds: number;\n is_orphaned: boolean; // Only applies to task.state == 'active'\n}\n\nexport interface ServerInfo {\n id: string;\n host: string;\n pid: number;\n concurrency: number;\n queue_priorities: { [qname: string]: number };\n strict_priority_enabled: boolean;\n start_time: string;\n status: string;\n active_workers: WorkerInfo[];\n}\n\nexport interface WorkerInfo {\n task_id: string;\n queue: string;\n task_type: string;\n task_payload: string;\n start_time: string;\n}\n\nexport interface SchedulerEntry {\n id: string;\n spec: string;\n task_type: string;\n task_payload: string;\n options: string[];\n next_enqueue_at: string;\n // prev_enqueue_at will be omitted\n // if there were no previous enqueue events.\n prev_enqueue_at?: string;\n}\n\nexport interface SchedulerEnqueueEvent {\n task_id: string;\n enqueued_at: string;\n}\n\nexport interface PaginationOptions extends Record {\n size?: number; // size of the page\n page?: number; // page number (1 being the first page)\n}\n\nexport async function listQueues(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/queues`,\n });\n return resp.data;\n}\n\nexport async function deleteQueue(qname: string): Promise {\n await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}`,\n });\n}\n\nexport async function pauseQueue(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}:pause`,\n });\n}\n\nexport async function resumeQueue(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}:resume`,\n });\n}\n\nexport async function listQueueStats(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/queue_stats`,\n });\n return resp.data;\n}\n\nexport async function getTaskInfo(\n qname: string,\n id: string\n): Promise {\n const url = `${getBaseUrl()}/queues/${qname}/tasks/${id}`;\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function listActiveTasks(\n qname: string,\n pageOpts?: PaginationOptions\n): Promise {\n let url = `${getBaseUrl()}/queues/${qname}/active_tasks`;\n if (pageOpts) {\n url += `?${queryString.stringify(pageOpts)}`;\n }\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function cancelActiveTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/active_tasks/${taskId}:cancel`,\n });\n}\n\nexport async function cancelAllActiveTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/active_tasks:cancel_all`,\n });\n}\n\nexport async function batchCancelActiveTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/active_tasks:batch_cancel`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function listPendingTasks(\n qname: string,\n pageOpts?: PaginationOptions\n): Promise {\n let url = `${getBaseUrl()}/queues/${qname}/pending_tasks`;\n if (pageOpts) {\n url += `?${queryString.stringify(pageOpts)}`;\n }\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function listScheduledTasks(\n qname: string,\n pageOpts?: PaginationOptions\n): Promise {\n let url = `${getBaseUrl()}/queues/${qname}/scheduled_tasks`;\n if (pageOpts) {\n url += `?${queryString.stringify(pageOpts)}`;\n }\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function listRetryTasks(\n qname: string,\n pageOpts?: PaginationOptions\n): Promise {\n let url = `${getBaseUrl()}/queues/${qname}/retry_tasks`;\n if (pageOpts) {\n url += `?${queryString.stringify(pageOpts)}`;\n }\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function listArchivedTasks(\n qname: string,\n pageOpts?: PaginationOptions\n): Promise {\n let url = `${getBaseUrl()}/queues/${qname}/archived_tasks`;\n if (pageOpts) {\n url += `?${queryString.stringify(pageOpts)}`;\n }\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function listCompletedTasks(\n qname: string,\n pageOpts?: PaginationOptions\n): Promise {\n let url = `${getBaseUrl()}/queues/${qname}/completed_tasks`;\n if (pageOpts) {\n url += `?${queryString.stringify(pageOpts)}`;\n }\n const resp = await axios({\n method: \"get\",\n url,\n });\n return resp.data;\n}\n\nexport async function archivePendingTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/pending_tasks/${taskId}:archive`,\n });\n}\n\nexport async function batchArchivePendingTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/pending_tasks:batch_archive`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function archiveAllPendingTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/pending_tasks:archive_all`,\n });\n}\n\nexport async function deletePendingTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/pending_tasks/${taskId}`,\n });\n}\n\nexport async function batchDeletePendingTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/pending_tasks:batch_delete`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function deleteAllPendingTasks(\n qname: string\n): Promise {\n const resp = await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/pending_tasks:delete_all`,\n });\n return resp.data;\n}\n\nexport async function runScheduledTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks/${taskId}:run`,\n });\n}\n\nexport async function archiveScheduledTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks/${taskId}:archive`,\n });\n}\n\nexport async function deleteScheduledTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks/${taskId}`,\n });\n}\n\nexport async function batchDeleteScheduledTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks:batch_delete`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function deleteAllScheduledTasks(\n qname: string\n): Promise {\n const resp = await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks:delete_all`,\n });\n return resp.data;\n}\n\nexport async function batchRunScheduledTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks:batch_run`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function runAllScheduledTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks:run_all`,\n });\n}\n\nexport async function batchArchiveScheduledTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks:batch_archive`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function archiveAllScheduledTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/scheduled_tasks:archive_all`,\n });\n}\n\nexport async function runRetryTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks/${taskId}:run`,\n });\n}\n\nexport async function archiveRetryTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks/${taskId}:archive`,\n });\n}\n\nexport async function deleteRetryTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks/${taskId}`,\n });\n}\n\nexport async function batchDeleteRetryTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks:batch_delete`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function deleteAllRetryTasks(\n qname: string\n): Promise {\n const resp = await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks:delete_all`,\n });\n return resp.data;\n}\n\nexport async function batchRunRetryTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks:batch_run`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function runAllRetryTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks:run_all`,\n });\n}\n\nexport async function batchArchiveRetryTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks:batch_archive`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function archiveAllRetryTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/retry_tasks:archive_all`,\n });\n}\n\nexport async function runArchivedTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/archived_tasks/${taskId}:run`,\n });\n}\n\nexport async function deleteArchivedTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/archived_tasks/${taskId}`,\n });\n}\n\nexport async function batchDeleteArchivedTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/archived_tasks:batch_delete`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function deleteAllArchivedTasks(\n qname: string\n): Promise {\n const resp = await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/archived_tasks:delete_all`,\n });\n return resp.data;\n}\n\nexport async function batchRunArchivedTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/archived_tasks:batch_run`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function runAllArchivedTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/archived_tasks:run_all`,\n });\n}\n\nexport async function deleteCompletedTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/completed_tasks/${taskId}`,\n });\n}\n\nexport async function batchDeleteCompletedTasks(\n qname: string,\n taskIds: string[]\n): Promise {\n const resp = await axios({\n method: \"post\",\n url: `${getBaseUrl()}/queues/${qname}/completed_tasks:batch_delete`,\n data: {\n task_ids: taskIds,\n },\n });\n return resp.data;\n}\n\nexport async function deleteAllCompletedTasks(\n qname: string\n): Promise {\n const resp = await axios({\n method: \"delete\",\n url: `${getBaseUrl()}/queues/${qname}/completed_tasks:delete_all`,\n });\n return resp.data;\n}\n\nexport async function listServers(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/servers`,\n });\n return resp.data;\n}\n\nexport async function listSchedulerEntries(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/scheduler_entries`,\n });\n return resp.data;\n}\n\nexport async function listSchedulerEnqueueEvents(\n entryId: string\n): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/scheduler_entries/${entryId}/enqueue_events`,\n });\n return resp.data;\n}\n\nexport async function getRedisInfo(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/redis_info`,\n });\n return resp.data;\n}\n\ninterface MetricsEndpointParams {\n endtime: number;\n duration: number;\n queues?: string; // comma-separated list of queues\n}\n\nexport async function getMetrics(\n endTime: number,\n duration: number,\n queues: string[]\n): Promise {\n let params: MetricsEndpointParams = {\n endtime: endTime,\n duration: duration,\n };\n if (queues && queues.length > 0) {\n params.queues = queues.join(\",\");\n }\n const resp = await axios({\n method: \"get\",\n url: `${getBaseUrl()}/metrics?${queryString.stringify(params)}`,\n });\n return resp.data;\n}\n","import { AxiosError } from \"axios\";\n\n// toErrorStringWithHttpStatus returns a string representaion of axios error with HTTP status.\nexport function toErrorStringWithHttpStatus(error: AxiosError): string {\n const { response } = error;\n if (!response) {\n return \"error: no error response data available\";\n }\n return `${response.status} (${response.statusText}): ${response.data}`;\n}\n\n// toErrorString returns a string representaion of axios error.\nexport function toErrorString(error: AxiosError): string {\n const { response } = error;\n if (!response) {\n return \"Unknown error occurred. See the logs for details.\";\n }\n return response.data;\n}\n\ninterface Duration {\n hour: number;\n minute: number;\n second: number;\n totalSeconds: number;\n}\n\n// Returns a duration from the number of seconds provided.\nexport function durationFromSeconds(totalSeconds: number): Duration {\n const hour = Math.floor(totalSeconds / 3600);\n const minute = Math.floor((totalSeconds - 3600 * hour) / 60);\n const second = totalSeconds - 3600 * hour - 60 * minute;\n return { hour, minute, second, totalSeconds };\n}\n\n// start and end are in milliseconds.\nfunction durationBetween(start: number, end: number): Duration {\n const durationInMillisec = start - end;\n const totalSeconds = Math.floor(durationInMillisec / 1000);\n return durationFromSeconds(totalSeconds);\n}\n\nexport function stringifyDuration(d: Duration): string {\n if (d.hour > 24) {\n const n = Math.floor(d.hour / 24);\n return n + (n === 1 ? \" day\" : \" days\");\n }\n return (\n (d.hour !== 0 ? `${d.hour}h` : \"\") +\n (d.minute !== 0 ? `${d.minute}m` : \"\") +\n `${d.second}s`\n );\n}\n\nexport function durationBefore(timestamp: string): string {\n try {\n const duration = durationBetween(Date.parse(timestamp), Date.now());\n if (duration.totalSeconds < 1) {\n return \"now\";\n }\n return \"in \" + stringifyDuration(duration);\n } catch {\n return \"-\";\n }\n}\n\nexport function timeAgo(timestamp: string): string {\n try {\n return timeAgoUnix(Date.parse(timestamp) / 1000);\n } catch (error) {\n console.error(\"Could not parse timestamp: \", timestamp, error);\n return \"-\";\n }\n}\n\nexport function timeAgoUnix(unixtime: number): string {\n if (unixtime === 0) {\n return \"\";\n }\n const duration = durationBetween(Date.now(), unixtime * 1000);\n return stringifyDuration(duration) + \" ago\";\n}\n\nexport function getCurrentUTCDate(): string {\n const today = new Date();\n const dd = today.getUTCDate().toString().padStart(2, \"0\");\n const mm = (today.getMonth() + 1).toString().padStart(2, \"0\");\n const yyyy = today.getFullYear();\n return `${yyyy}-${mm}-${dd}`;\n}\n\nexport function uuidPrefix(uuid: string): string {\n const idx = uuid.indexOf(\"-\");\n if (idx === -1) {\n return uuid;\n }\n return uuid.substr(0, idx);\n}\n\nexport function percentage(numerator: number, denominator: number): string {\n if (denominator === 0) return \"0.00%\";\n const perc = ((numerator / denominator) * 100).toFixed(2);\n return `${perc} %`;\n}\n\nexport function isJsonPayload(p: string) {\n try {\n JSON.parse(p);\n } catch (error) {\n return false;\n }\n return true;\n}\n\nexport function prettifyPayload(p: string) {\n if (isJsonPayload(p)) {\n return JSON.stringify(JSON.parse(p), null, 2);\n }\n return p;\n}\n\n// Returns the number of seconds elapsed since January 1, 1970 00:00:00 UTC.\nexport function currentUnixtime(): number {\n return Math.floor(Date.now() / 1000);\n}\n\nconst durationRegex = /([0-9]*(\\.[0-9]*)?)[s|m|h]/;\n// Parses the given string and returns the number of seconds if the input is valid.\n// Otherwise, it throws an error\n// Supported time units are \"s\", \"m\", \"h\"\nexport function parseDuration(s: string): number {\n if (!durationRegex.test(s)) {\n throw new Error(\"invalid duration\");\n }\n const val = parseFloat(s.slice(0, -1));\n switch (s.slice(-1)) {\n case \"s\":\n return val;\n case \"m\":\n return val * 60;\n case \"h\":\n return val * 60 * 60;\n default:\n throw new Error(\"invalid duration unit\");\n }\n}\n","import { Dispatch } from \"redux\";\nimport {\n deleteQueue,\n listQueues,\n ListQueuesResponse,\n pauseQueue,\n resumeQueue,\n} from \"../api\";\nimport { toErrorString, toErrorStringWithHttpStatus } from \"../utils\";\n\n// List of queue related action types.\nexport const LIST_QUEUES_BEGIN = \"LIST_QUEUES_BEGIN\";\nexport const LIST_QUEUES_SUCCESS = \"LIST_QUEUES_SUCCESS\";\nexport const LIST_QUEUES_ERROR = \"LIST_QUEUES_ERROR\";\nexport const DELETE_QUEUE_BEGIN = \"DELETE_QUEUE_BEGIN\";\nexport const DELETE_QUEUE_SUCCESS = \"DELETE_QUEUE_SUCCESS\";\nexport const DELETE_QUEUE_ERROR = \"DELETE_QUEUE_ERROR\";\nexport const PAUSE_QUEUE_BEGIN = \"PAUSE_QUEUE_BEGIN\";\nexport const PAUSE_QUEUE_SUCCESS = \"PAUSE_QUEUE_SUCCESS\";\nexport const PAUSE_QUEUE_ERROR = \"PAUSE_QUEUE_ERROR\";\nexport const RESUME_QUEUE_BEGIN = \"RESUME_QUEUE_BEGIN\";\nexport const RESUME_QUEUE_SUCCESS = \"RESUME_QUEUE_SUCCESS\";\nexport const RESUME_QUEUE_ERROR = \"RESUME_QUEUE_ERROR\";\n\ninterface ListQueuesBeginAction {\n type: typeof LIST_QUEUES_BEGIN;\n}\n\ninterface ListQueuesSuccessAction {\n type: typeof LIST_QUEUES_SUCCESS;\n payload: ListQueuesResponse;\n}\n\ninterface ListQueuesErrorAction {\n type: typeof LIST_QUEUES_ERROR;\n error: string;\n}\n\ninterface DeleteQueueBeginAction {\n type: typeof DELETE_QUEUE_BEGIN;\n queue: string; // name of the queue\n}\n\ninterface DeleteQueueSuccessAction {\n type: typeof DELETE_QUEUE_SUCCESS;\n queue: string; // name of the queue\n}\n\ninterface DeleteQueueErrorAction {\n type: typeof DELETE_QUEUE_ERROR;\n queue: string; // name of the queue\n error: string; // error description\n}\n\ninterface PauseQueueBeginAction {\n type: typeof PAUSE_QUEUE_BEGIN;\n queue: string; // name of the queue\n}\n\ninterface PauseQueueSuccessAction {\n type: typeof PAUSE_QUEUE_SUCCESS;\n queue: string; // name of the queue\n}\n\ninterface PauseQueueErrorAction {\n type: typeof PAUSE_QUEUE_ERROR;\n queue: string; // name of the queue\n error: string; // error description\n}\n\ninterface ResumeQueueBeginAction {\n type: typeof RESUME_QUEUE_BEGIN;\n queue: string; // name of the queue\n}\n\ninterface ResumeQueueSuccessAction {\n type: typeof RESUME_QUEUE_SUCCESS;\n queue: string; // name of the queue\n}\n\ninterface ResumeQueueErrorAction {\n type: typeof RESUME_QUEUE_ERROR;\n queue: string; // name of the queue\n error: string; // error description\n}\n\n// Union of all queues related action types.\nexport type QueuesActionTypes =\n | ListQueuesBeginAction\n | ListQueuesSuccessAction\n | ListQueuesErrorAction\n | DeleteQueueBeginAction\n | DeleteQueueSuccessAction\n | DeleteQueueErrorAction\n | PauseQueueBeginAction\n | PauseQueueSuccessAction\n | PauseQueueErrorAction\n | ResumeQueueBeginAction\n | ResumeQueueSuccessAction\n | ResumeQueueErrorAction;\n\nexport function listQueuesAsync() {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_QUEUES_BEGIN });\n try {\n const response = await listQueues();\n dispatch({\n type: LIST_QUEUES_SUCCESS,\n payload: response,\n });\n } catch (error) {\n console.error(`listQueuesAsync: ${toErrorStringWithHttpStatus(error)}`);\n dispatch({\n type: LIST_QUEUES_ERROR,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function deleteQueueAsync(qname: string) {\n return async (dispatch: Dispatch) => {\n dispatch({\n type: DELETE_QUEUE_BEGIN,\n queue: qname,\n });\n try {\n await deleteQueue(qname);\n // FIXME: this action doesn't get dispatched when server stalls\n dispatch({\n type: DELETE_QUEUE_SUCCESS,\n queue: qname,\n });\n } catch (error) {\n console.error(error);\n dispatch({\n type: DELETE_QUEUE_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function pauseQueueAsync(qname: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: PAUSE_QUEUE_BEGIN, queue: qname });\n try {\n await pauseQueue(qname);\n dispatch({ type: PAUSE_QUEUE_SUCCESS, queue: qname });\n } catch (error) {\n console.error(\"pauseQueueAsynq: \", toErrorStringWithHttpStatus(error));\n dispatch({\n type: PAUSE_QUEUE_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function resumeQueueAsync(qname: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RESUME_QUEUE_BEGIN, queue: qname });\n try {\n await resumeQueue(qname);\n dispatch({ type: RESUME_QUEUE_SUCCESS, queue: qname });\n } catch (error) {\n console.error(\"resumeQueueAsync: \", toErrorStringWithHttpStatus(error));\n dispatch({\n type: RESUME_QUEUE_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n","import { Dispatch } from \"redux\";\nimport { listQueueStats, ListQueueStatsResponse } from \"../api\";\nimport { toErrorString, toErrorStringWithHttpStatus } from \"../utils\";\n\nexport const LIST_QUEUE_STATS_BEGIN = \"LIST_QUEUE_STATS_BEGIN\";\nexport const LIST_QUEUE_STATS_SUCCESS = \"LIST_QUEUE_STATS_SUCCESS\";\nexport const LIST_QUEUE_STATS_ERROR = \"LIST_QUEUE_STATS_ERROR\";\n\ninterface ListQueueStatsBeginAction {\n type: typeof LIST_QUEUE_STATS_BEGIN;\n}\n\ninterface ListQueueStatsSuccessAction {\n type: typeof LIST_QUEUE_STATS_SUCCESS;\n payload: ListQueueStatsResponse;\n}\n\ninterface ListQueueStatsErrorAction {\n type: typeof LIST_QUEUE_STATS_ERROR;\n error: string;\n}\n\n// Union of all queue stats related action types.\nexport type QueueStatsActionTypes =\n | ListQueueStatsBeginAction\n | ListQueueStatsSuccessAction\n | ListQueueStatsErrorAction;\n\nexport function listQueueStatsAsync() {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_QUEUE_STATS_BEGIN });\n try {\n const response = await listQueueStats();\n dispatch({\n type: LIST_QUEUE_STATS_SUCCESS,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listQueueStatsAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_QUEUE_STATS_ERROR,\n error: toErrorString(error),\n });\n }\n };\n}\n","import React from \"react\";\nimport {\n BarChart,\n Bar,\n XAxis,\n YAxis,\n CartesianGrid,\n Tooltip,\n Legend,\n ResponsiveContainer,\n} from \"recharts\";\nimport { useHistory } from \"react-router-dom\";\nimport { useTheme } from \"@material-ui/core/styles\";\nimport { queueDetailsPath } from \"../paths\";\n\ninterface Props {\n data: TaskBreakdown[];\n}\n\ninterface TaskBreakdown {\n queue: string; // name of the queue.\n active: number; // number of active tasks in the queue.\n pending: number; // number of pending tasks in the queue.\n scheduled: number; // number of scheduled tasks in the queue.\n retry: number; // number of retry tasks in the queue.\n archived: number; // number of archived tasks in the queue.\n completed: number; // number of completed tasks in the queue.\n}\n\nfunction QueueSizeChart(props: Props) {\n const theme = useTheme();\n const handleClick = (params: { activeLabel?: string } | null) => {\n const allQueues = props.data.map((b) => b.queue);\n if (\n params &&\n params.activeLabel &&\n allQueues.includes(params.activeLabel)\n ) {\n history.push(queueDetailsPath(params.activeLabel));\n }\n };\n const history = useHistory();\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default QueueSizeChart;\n","import React from \"react\";\nimport {\n BarChart,\n Bar,\n XAxis,\n YAxis,\n CartesianGrid,\n Tooltip,\n Legend,\n ResponsiveContainer,\n} from \"recharts\";\nimport { useTheme, Theme } from \"@material-ui/core/styles\";\n\ninterface Props {\n data: ProcessedStats[];\n}\n\ninterface ProcessedStats {\n queue: string; // name of the queue.\n succeeded: number; // number of tasks succeeded.\n failed: number; // number of tasks failed.\n}\n\nfunction ProcessedTasksChart(props: Props) {\n const theme = useTheme();\n return (\n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default ProcessedTasksChart;\n","import React from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport Button from \"@material-ui/core/Button\";\nimport Dialog from \"@material-ui/core/Dialog\";\nimport DialogActions from \"@material-ui/core/DialogActions\";\nimport DialogContent from \"@material-ui/core/DialogContent\";\nimport DialogContentText from \"@material-ui/core/DialogContentText\";\nimport DialogTitle from \"@material-ui/core/DialogTitle\";\nimport { Queue } from \"../api\";\nimport { AppState } from \"../store\";\nimport { deleteQueueAsync } from \"../actions/queuesActions\";\n\ninterface Props {\n queue: Queue | null; // queue to delete\n onClose: () => void;\n}\n\nfunction mapStateToProps(state: AppState, ownProps: Props) {\n let requestPending = false;\n if (ownProps.queue !== null) {\n const q = state.queues.data.find((q) => q.name === ownProps.queue?.queue);\n if (q !== undefined) {\n requestPending = q.requestPending;\n }\n }\n return {\n requestPending,\n };\n}\n\nconst connector = connect(mapStateToProps, { deleteQueueAsync });\n\ntype ReduxProps = ConnectedProps;\n\nfunction DeleteQueueConfirmationDialog(props: Props & ReduxProps) {\n const handleDeleteClick = () => {\n if (!props.queue) {\n return;\n }\n props.deleteQueueAsync(props.queue.queue);\n props.onClose();\n };\n return (\n \n {props.queue !== null &&\n (props.queue.size > 0 ? (\n <>\n \n Queue is not empty\n \n \n \n You are trying to delete a non-emtpy queue \"{props.queue.queue}\n \". Please empty the queue first before deleting.\n \n \n \n \n \n \n ) : (\n <>\n \n Are you sure you want to delete \"{props.queue.queue}\"?\n \n \n \n You can't undo this action.\n \n \n \n \n Cancel\n \n \n Delete\n \n \n \n ))}\n \n );\n}\n\nexport default connector(DeleteQueueConfirmationDialog);\n","// SortDirection describes the direction of sort.\nexport enum SortDirection {\n Asc = \"asc\",\n Desc = \"desc\",\n}\n\n// TableColumn is a config for a table column.\nexport interface TableColumn {\n key: string;\n label: string;\n align: \"left\" | \"right\" | \"center\";\n}\n\n// SortableTableColumn is a config for a table column\n// for table with sorting support.\n//\n// T is the enum of sort keys.\nexport interface SortableTableColumn extends TableColumn {\n sortBy: T;\n}\n","import React, { useState } from \"react\";\nimport clsx from \"clsx\";\nimport { Link } from \"react-router-dom\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport TableSortLabel from \"@material-ui/core/TableSortLabel\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport PauseCircleFilledIcon from \"@material-ui/icons/PauseCircleFilled\";\nimport PlayCircleFilledIcon from \"@material-ui/icons/PlayCircleFilled\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport DeleteQueueConfirmationDialog from \"./DeleteQueueConfirmationDialog\";\nimport { Queue } from \"../api\";\nimport { queueDetailsPath } from \"../paths\";\nimport { SortDirection, SortableTableColumn } from \"../types/table\";\nimport prettyBytes from \"pretty-bytes\";\nimport { percentage } from \"../utils\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n fixedCell: {\n position: \"sticky\",\n zIndex: 1,\n left: 0,\n background: theme.palette.background.paper,\n },\n}));\n\ninterface QueueWithMetadata extends Queue {\n requestPending: boolean; // indicates pause/resume/delete request is pending for the queue.\n}\n\ninterface Props {\n queues: QueueWithMetadata[];\n onPauseClick: (qname: string) => Promise;\n onResumeClick: (qname: string) => Promise;\n onDeleteClick: (qname: string) => Promise;\n}\n\nenum SortBy {\n Queue,\n State,\n Size,\n MemoryUsage,\n Latency,\n Processed,\n Failed,\n ErrorRate,\n\n None, // no sort support\n}\n\nconst colConfigs: SortableTableColumn[] = [\n { label: \"Queue\", key: \"queue\", sortBy: SortBy.Queue, align: \"left\" },\n { label: \"State\", key: \"state\", sortBy: SortBy.State, align: \"left\" },\n {\n label: \"Size\",\n key: \"size\",\n sortBy: SortBy.Size,\n align: \"right\",\n },\n {\n label: \"Memory usage\",\n key: \"memory_usage\",\n sortBy: SortBy.MemoryUsage,\n align: \"right\",\n },\n {\n label: \"Latency\",\n key: \"latency\",\n sortBy: SortBy.Latency,\n align: \"right\",\n },\n {\n label: \"Processed\",\n key: \"processed\",\n sortBy: SortBy.Processed,\n align: \"right\",\n },\n { label: \"Failed\", key: \"failed\", sortBy: SortBy.Failed, align: \"right\" },\n {\n label: \"Error rate\",\n key: \"error_rate\",\n sortBy: SortBy.ErrorRate,\n align: \"right\",\n },\n { label: \"Actions\", key: \"actions\", sortBy: SortBy.None, align: \"center\" },\n];\n\n// sortQueues takes a array of queues and return a sorted array.\n// It returns a new array and leave the original array untouched.\nfunction sortQueues(\n queues: QueueWithMetadata[],\n cmpFn: (first: QueueWithMetadata, second: QueueWithMetadata) => number\n): QueueWithMetadata[] {\n let copy = [...queues];\n copy.sort(cmpFn);\n return copy;\n}\n\nexport default function QueuesOverviewTable(props: Props) {\n const classes = useStyles();\n const [sortBy, setSortBy] = useState(SortBy.Queue);\n const [sortDir, setSortDir] = useState(SortDirection.Asc);\n const [queueToDelete, setQueueToDelete] = useState(\n null\n );\n const createSortClickHandler = (sortKey: SortBy) => (e: React.MouseEvent) => {\n if (sortKey === sortBy) {\n // Toggle sort direction.\n const nextSortDir =\n sortDir === SortDirection.Asc ? SortDirection.Desc : SortDirection.Asc;\n setSortDir(nextSortDir);\n } else {\n // Change the sort key.\n setSortBy(sortKey);\n }\n };\n\n const cmpFunc = (q1: QueueWithMetadata, q2: QueueWithMetadata): number => {\n let isQ1Smaller: boolean;\n switch (sortBy) {\n case SortBy.Queue:\n if (q1.queue === q2.queue) return 0;\n isQ1Smaller = q1.queue < q2.queue;\n break;\n case SortBy.State:\n if (q1.paused === q2.paused) return 0;\n isQ1Smaller = !q1.paused;\n break;\n case SortBy.Size:\n if (q1.size === q2.size) return 0;\n isQ1Smaller = q1.size < q2.size;\n break;\n case SortBy.MemoryUsage:\n if (q1.memory_usage_bytes === q2.memory_usage_bytes) return 0;\n isQ1Smaller = q1.memory_usage_bytes < q2.memory_usage_bytes;\n break;\n case SortBy.Latency:\n if (q1.latency_msec === q2.latency_msec) return 0;\n isQ1Smaller = q1.latency_msec < q2.latency_msec;\n break;\n case SortBy.Processed:\n if (q1.processed === q2.processed) return 0;\n isQ1Smaller = q1.processed < q2.processed;\n break;\n case SortBy.Failed:\n if (q1.failed === q2.failed) return 0;\n isQ1Smaller = q1.failed < q2.failed;\n break;\n case SortBy.ErrorRate:\n const q1ErrorRate = q1.failed / q1.processed;\n const q2ErrorRate = q2.failed / q2.processed;\n if (q1ErrorRate === q2ErrorRate) return 0;\n isQ1Smaller = q1ErrorRate < q2ErrorRate;\n break;\n default:\n // eslint-disable-next-line no-throw-literal\n throw `Unexpected order by value: ${sortBy}`;\n }\n if (sortDir === SortDirection.Asc) {\n return isQ1Smaller ? -1 : 1;\n } else {\n return isQ1Smaller ? 1 : -1;\n }\n };\n\n const handleDialogClose = () => {\n setQueueToDelete(null);\n };\n\n return (\n \n \n \n \n \n {colConfigs\n .filter((cfg) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || cfg.key !== \"actions\";\n })\n .map((cfg, i) => (\n \n {cfg.sortBy !== SortBy.None ? (\n \n {cfg.label}\n \n ) : (\n
{cfg.label}
\n )}\n \n ))}\n
\n
\n \n {sortQueues(props.queues, cmpFunc).map((q) => (\n props.onPauseClick(q.queue)}\n onResumeClick={() => props.onResumeClick(q.queue)}\n onDeleteClick={() => setQueueToDelete(q)}\n />\n ))}\n \n
\n
\n \n
\n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n row: {\n \"&:last-child td\": {\n borderBottomWidth: 0,\n },\n \"&:last-child th\": {\n borderBottomWidth: 0,\n },\n },\n linkText: {\n textDecoration: \"none\",\n color: theme.palette.text.primary,\n \"&:hover\": {\n textDecoration: \"underline\",\n },\n },\n textGreen: {\n color: theme.palette.success.dark,\n },\n textRed: {\n color: theme.palette.error.dark,\n },\n boldCell: {\n fontWeight: 600,\n },\n fixedCell: {\n position: \"sticky\",\n zIndex: 1,\n left: 0,\n background: theme.palette.background.paper,\n },\n actionIconsContainer: {\n display: \"flex\",\n justifyContent: \"center\",\n minWidth: \"100px\",\n },\n}));\n\ninterface RowProps {\n queue: QueueWithMetadata;\n onPauseClick: () => void;\n onResumeClick: () => void;\n onDeleteClick: () => void;\n}\n\nfunction Row(props: RowProps) {\n const classes = useRowStyles();\n const { queue: q } = props;\n const [showIcons, setShowIcons] = useState(false);\n return (\n \n \n \n {q.queue}\n \n \n \n {q.paused ? (\n paused\n ) : (\n run\n )}\n \n {q.size}\n {prettyBytes(q.memory_usage_bytes)}\n {q.display_latency}\n {q.processed}\n {q.failed}\n {percentage(q.failed, q.processed)}\n {!window.READ_ONLY && (\n setShowIcons(true)}\n onMouseLeave={() => setShowIcons(false)}\n >\n
\n {showIcons ? (\n \n {q.paused ? (\n \n \n \n \n \n ) : (\n \n \n \n \n \n )}\n \n \n \n \n \n \n ) : (\n \n \n \n )}\n
\n \n )}\n
\n );\n}\n","import { Theme, withStyles } from \"@material-ui/core/styles\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\n\n// Export custom style tooltip.\nexport default withStyles((theme: Theme) => ({\n tooltip: {\n backgroundColor: \"#f5f5f9\",\n color: \"rgba(0, 0, 0, 0.87)\",\n maxWidth: 400,\n fontSize: theme.typography.pxToRem(12),\n border: \"1px solid #dadde9\",\n },\n}))(Tooltip);\n","import React from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Button from \"@material-ui/core/Button\";\nimport ButtonGroup from \"@material-ui/core/ButtonGroup\";\nimport ArrowDropDownIcon from \"@material-ui/icons/ArrowDropDown\";\nimport ClickAwayListener from \"@material-ui/core/ClickAwayListener\";\nimport Grow from \"@material-ui/core/Grow\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Popper from \"@material-ui/core/Popper\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport MenuList from \"@material-ui/core/MenuList\";\nimport { isDarkTheme } from \"../theme\";\n\ninterface Option {\n label: string;\n key: string;\n}\n\ninterface Props {\n options: Option[];\n initialSelectedKey: string;\n onSelect: (key: string) => void;\n}\n\nconst useStyles = makeStyles((theme) => ({\n popper: {\n zIndex: 2,\n },\n buttonContained: {\n backgroundColor: isDarkTheme(theme)\n ? \"#303030\"\n : theme.palette.background.default,\n color: theme.palette.text.primary,\n \"&:hover\": {\n backgroundColor: theme.palette.action.hover,\n },\n },\n}));\n\nexport default function SplitButton(props: Props) {\n const classes = useStyles();\n const [open, setOpen] = React.useState(false);\n const anchorRef = React.useRef(null);\n const [selectedKey, setSelectedKey] = React.useState(\n props.initialSelectedKey\n );\n\n const handleMenuItemClick = (\n event: React.MouseEvent,\n key: string\n ) => {\n setSelectedKey(key);\n setOpen(false);\n props.onSelect(key);\n };\n\n const handleToggle = () => {\n setOpen((prevOpen) => !prevOpen);\n };\n\n const handleClose = (event: React.MouseEvent) => {\n if (\n anchorRef.current &&\n anchorRef.current.contains(event.target as HTMLElement)\n ) {\n return;\n }\n setOpen(false);\n };\n\n const selectedOpt = props.options.find((opt) => opt.key === selectedKey);\n\n return (\n <>\n \n \n \n \n \n \n \n {({ TransitionProps, placement }) => (\n \n \n \n \n {props.options.map((opt) => (\n handleMenuItemClick(event, opt.key)}\n >\n {opt.label}\n \n ))}\n \n \n \n \n )}\n \n \n );\n}\n","import { useEffect, useMemo } from \"react\";\nimport { useLocation } from \"react-router-dom\";\n\n// usePolling repeatedly calls doFn with a fix time delay specified\n// by interval (in millisecond).\nexport function usePolling(doFn: () => void, interval: number) {\n useEffect(() => {\n doFn();\n const id = setInterval(doFn, interval * 1000);\n return () => clearInterval(id);\n }, [interval, doFn]);\n}\n\n// useQuery gets the URL search params from the current URL.\nexport function useQuery(): URLSearchParams {\n const { search } = useLocation();\n return useMemo(() => new URLSearchParams(search), [search]);\n}\n","import React from \"react\";\nimport {\n LineChart,\n Line,\n XAxis,\n YAxis,\n CartesianGrid,\n Tooltip,\n Legend,\n ResponsiveContainer,\n} from \"recharts\";\nimport { useTheme, Theme } from \"@material-ui/core/styles\";\nimport { DailyStat } from \"../api\";\n\ninterface Props {\n data: { [qname: string]: DailyStat[] };\n numDays: number;\n}\n\ninterface ChartData {\n succeeded: number;\n failed: number;\n date: string;\n}\n\nexport default function DailyStatsChart(props: Props) {\n const data = makeChartData(props.data, props.numDays);\n const theme = useTheme();\n return (\n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nfunction makeChartData(\n queueStats: { [qname: string]: DailyStat[] },\n numDays: number\n): ChartData[] {\n const dataByDate: { [date: string]: ChartData } = {};\n for (const qname in queueStats) {\n for (const stat of queueStats[qname]) {\n if (!dataByDate.hasOwnProperty(stat.date)) {\n dataByDate[stat.date] = { succeeded: 0, failed: 0, date: stat.date };\n }\n dataByDate[stat.date].succeeded += stat.processed - stat.failed;\n dataByDate[stat.date].failed += stat.failed;\n }\n }\n return Object.values(dataByDate).sort(sortByDate).slice(-numDays);\n}\n\nfunction sortByDate(x: ChartData, y: ChartData): number {\n return Date.parse(x.date) - Date.parse(y.date);\n}\n","import React, { useEffect } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport Container from \"@material-ui/core/Container\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Typography from \"@material-ui/core/Typography\";\nimport InfoIcon from \"@material-ui/icons/Info\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport {\n listQueuesAsync,\n pauseQueueAsync,\n resumeQueueAsync,\n deleteQueueAsync,\n} from \"../actions/queuesActions\";\nimport { listQueueStatsAsync } from \"../actions/queueStatsActions\";\nimport { dailyStatsKeyChange } from \"../actions/settingsActions\";\nimport { AppState } from \"../store\";\nimport QueueSizeChart from \"../components/QueueSizeChart\";\nimport ProcessedTasksChart from \"../components/ProcessedTasksChart\";\nimport QueuesOverviewTable from \"../components/QueuesOverviewTable\";\nimport Tooltip from \"../components/Tooltip\";\nimport SplitButton from \"../components/SplitButton\";\nimport { usePolling } from \"../hooks\";\nimport DailyStatsChart from \"../components/DailyStatsChart\";\n\nconst useStyles = makeStyles((theme) => ({\n container: {\n paddingTop: theme.spacing(4),\n paddingBottom: theme.spacing(4),\n },\n paper: {\n padding: theme.spacing(2),\n display: \"flex\",\n overflow: \"auto\",\n flexDirection: \"column\",\n },\n chartHeader: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(2),\n },\n chartHeaderTitle: {\n display: \"flex\",\n alignItems: \"center\",\n },\n chartContainer: {\n width: \"100%\",\n height: \"300px\",\n },\n infoIcon: {\n marginLeft: theme.spacing(1),\n color: theme.palette.grey[500],\n cursor: \"pointer\",\n },\n tooltipSection: {\n marginBottom: \"4px\",\n },\n tableContainer: {\n marginBottom: theme.spacing(2),\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.queues.loading,\n queues: state.queues.data.map((q) => ({\n ...q.currentStats,\n requestPending: q.requestPending,\n })),\n error: state.queues.error,\n pollInterval: state.settings.pollInterval,\n queueStats: state.queueStats.data,\n dailyStatsKey: state.settings.dailyStatsChartType,\n };\n}\n\nconst mapDispatchToProps = {\n listQueuesAsync,\n pauseQueueAsync,\n resumeQueueAsync,\n deleteQueueAsync,\n listQueueStatsAsync,\n dailyStatsKeyChange,\n};\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype Props = ConnectedProps;\n\nexport type DailyStatsKey = \"today\" | \"last-7d\" | \"last-30d\" | \"last-90d\";\nexport const defaultDailyStatsKey = \"last-7d\";\n\nfunction DashboardView(props: Props) {\n const {\n pollInterval,\n listQueuesAsync,\n queues,\n listQueueStatsAsync,\n dailyStatsKey,\n } = props;\n const classes = useStyles();\n\n usePolling(listQueuesAsync, pollInterval);\n\n // Refetch queue stats if a queue is added or deleted.\n const qnames = queues\n .map((q) => q.queue)\n .sort()\n .join(\",\");\n\n useEffect(() => {\n listQueueStatsAsync();\n }, [listQueueStatsAsync, qnames]);\n\n const processedStats = queues.map((q) => ({\n queue: q.queue,\n succeeded: q.processed - q.failed,\n failed: q.failed,\n }));\n\n return (\n \n \n {props.error.length > 0 && (\n \n \n Error\n Could not retrieve queues live data —{\" \"}\n See the logs for details\n \n \n )}\n \n \n
\n
\n Queue Size\n \n
\n Total number of tasks in the queue\n
\n
\n Active: number of tasks currently being\n processed\n
\n
\n Pending: number of tasks ready to be\n processed\n
\n
\n Scheduled: number of tasks scheduled to\n be processed in the future\n
\n
\n Retry: number of tasks scheduled to be\n retried in the future\n
\n
\n Archived: number of tasks exhausted\n their retries\n
\n
\n }\n >\n \n \n
\n \n
\n \n
\n
\n
\n\n \n \n
\n
\n Tasks Processed\n \n
\n Total number of tasks processed in a given day (UTC)\n
\n
\n Succeeded: number of tasks successfully\n processed\n
\n
\n Failed: number of tasks failed to be\n processed\n
\n
\n }\n >\n \n \n
\n
\n \n props.dailyStatsKeyChange(key as DailyStatsKey)\n }\n />\n
\n \n
\n {dailyStatsKey === \"today\" && (\n \n )}\n {dailyStatsKey === \"last-7d\" && (\n \n )}\n {dailyStatsKey === \"last-30d\" && (\n \n )}\n {dailyStatsKey === \"last-90d\" && (\n \n )}\n
\n
\n
\n\n \n \n {/* TODO: Add loading indicator */}\n \n \n \n
\n
\n );\n}\n\nexport default connector(DashboardView);\n","import {\n DAILY_STATS_KEY_CHANGE,\n POLL_INTERVAL_CHANGE,\n SettingsActionTypes,\n TASK_ROWS_PER_PAGE_CHANGE,\n THEME_PREFERENCE_CHANGE,\n TOGGLE_DRAWER,\n} from \"../actions/settingsActions\";\nimport { defaultPageSize } from \"../components/TablePaginationActions\"\nimport { DailyStatsKey, defaultDailyStatsKey } from \"../views/DashboardView\";\n\nexport enum ThemePreference {\n SystemDefault,\n Always,\n Never,\n}\n\nexport interface SettingsState {\n // Time duration between data refresh.\n pollInterval: number;\n\n // UI theme setting.\n themePreference: ThemePreference;\n\n // Whether the drawer (i.e. sidebar) is open or not.\n isDrawerOpen: boolean;\n\n // Number of tasks displayed in task table.\n taskRowsPerPage: number,\n\n // Type of the chart displayed for \"Processed Tasks\" section in dashboard.\n dailyStatsChartType: DailyStatsKey;\n}\n\nexport const initialState: SettingsState = {\n pollInterval: 8,\n themePreference: ThemePreference.SystemDefault,\n isDrawerOpen: true,\n taskRowsPerPage: defaultPageSize,\n dailyStatsChartType: defaultDailyStatsKey,\n};\n\nfunction settingsReducer(\n state = initialState,\n action: SettingsActionTypes\n): SettingsState {\n switch (action.type) {\n case POLL_INTERVAL_CHANGE:\n return {\n ...state,\n pollInterval: action.value,\n };\n\n case THEME_PREFERENCE_CHANGE:\n return {\n ...state,\n themePreference: action.value,\n };\n\n case TOGGLE_DRAWER:\n return {\n ...state,\n isDrawerOpen: !state.isDrawerOpen,\n };\n\n case TASK_ROWS_PER_PAGE_CHANGE:\n return {\n ...state,\n taskRowsPerPage: action.value,\n }\n\n case DAILY_STATS_KEY_CHANGE:\n return {\n ...state,\n dailyStatsChartType: action.value,\n }\n\n default:\n return state;\n }\n}\n\nexport default settingsReducer;\n","import { createTheme, Theme } from \"@material-ui/core/styles\";\nimport { ThemePreference } from \"./reducers/settingsReducer\";\nimport useMediaQuery from \"@material-ui/core/useMediaQuery\";\n\nexport function useTheme(themePreference: ThemePreference): Theme {\n let prefersDarkMode = useMediaQuery(\"(prefers-color-scheme: dark)\");\n if (themePreference === ThemePreference.Always) {\n prefersDarkMode = true;\n } else if (themePreference === ThemePreference.Never) {\n prefersDarkMode = false;\n }\n return createTheme({\n // Got color palette from https://htmlcolors.com/palette/31/stripe\n palette: {\n primary: {\n main: \"#4379FF\",\n },\n secondary: {\n main: \"#97FBD1\",\n },\n background: {\n default: \"#f5f7f9\",\n },\n type: prefersDarkMode ? \"dark\" : \"light\",\n },\n });\n}\n\nexport function isDarkTheme(theme: Theme): boolean {\n return theme.palette.type === \"dark\";\n}\n","export const CLOSE_SNACKBAR = \"CLOSE_SNACKBAR\";\n\ninterface CloseSnakbarAction {\n type: typeof CLOSE_SNACKBAR;\n}\n\n// Union of all snackbar related action types\nexport type SnackbarActionTypes = CloseSnakbarAction;\n\nexport function closeSnackbar() {\n return { type: CLOSE_SNACKBAR };\n}\n","import React, { ReactElement } from \"react\";\nimport clsx from \"clsx\";\nimport ListItem from \"@material-ui/core/ListItem\";\nimport ListItemIcon from \"@material-ui/core/ListItemIcon\";\nimport ListItemText from \"@material-ui/core/ListItemText\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport {\n useRouteMatch,\n Link as RouterLink,\n LinkProps as RouterLinkProps,\n} from \"react-router-dom\";\nimport { isDarkTheme } from \"../theme\";\n\nconst useStyles = makeStyles((theme) => ({\n listItem: {\n borderTopRightRadius: \"24px\",\n borderBottomRightRadius: \"24px\",\n },\n selected: {\n backgroundColor: isDarkTheme(theme)\n ? `${theme.palette.secondary.main}30`\n : `${theme.palette.primary.main}30`,\n },\n selectedText: {\n fontWeight: 600,\n color: isDarkTheme(theme)\n ? theme.palette.secondary.main\n : theme.palette.primary.main,\n },\n selectedIcon: {\n color: isDarkTheme(theme)\n ? theme.palette.secondary.main\n : theme.palette.primary.main,\n },\n}));\n\ninterface Props {\n to: string;\n primary: string;\n icon?: ReactElement;\n}\n\n// Note: See https://material-ui.com/guides/composition/ for details.\nfunction ListItemLink(props: Props): ReactElement {\n const classes = useStyles();\n const { icon, primary, to } = props;\n const isMatch = useRouteMatch({\n path: to,\n strict: true,\n sensitive: true,\n exact: true,\n });\n const renderLink = React.useMemo(\n () =>\n React.forwardRef>((itemProps, ref) => (\n \n )),\n [to]\n );\n return (\n
  • \n \n \n {icon && (\n \n {icon}\n \n )}\n \n \n \n
  • \n );\n}\n\nexport default ListItemLink;\n","import React from \"react\";\nimport { useTheme, Theme } from \"@material-ui/core/styles\";\nimport ReactSyntaxHighlighter from \"react-syntax-highlighter\";\nimport styleDark from \"react-syntax-highlighter/dist/esm/styles/hljs/atom-one-dark\";\nimport styleLight from \"react-syntax-highlighter/dist/esm/styles/hljs/atom-one-light\";\nimport { isDarkTheme } from \"../theme\";\n\ninterface Props {\n language: string;\n children: string;\n customStyle?: object;\n}\n\n// Theme aware syntax-highlighter component.\nexport default function SyntaxHighlighter(props: Props) {\n const theme = useTheme();\n const style = isDarkTheme(theme) ? styleDark : styleLight;\n return (\n \n {props.children}\n \n );\n}\n","import { Dispatch } from \"@reduxjs/toolkit\";\nimport {\n listSchedulerEnqueueEvents,\n ListSchedulerEnqueueEventsResponse,\n listSchedulerEntries,\n ListSchedulerEntriesResponse,\n} from \"../api\";\nimport { toErrorString, toErrorStringWithHttpStatus } from \"../utils\";\n\n// List of scheduler-entry related action types.\nexport const LIST_SCHEDULER_ENTRIES_BEGIN = \"LIST_SCHEDULER_ENTRIES_BEGIN\";\nexport const LIST_SCHEDULER_ENTRIES_SUCCESS = \"LIST_SCHEDULER_ENTRIES_SUCCESS\";\nexport const LIST_SCHEDULER_ENTRIES_ERROR = \"LIST_SCHEDULER_ENTRIES_ERROR\";\nexport const LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN =\n \"LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN\";\nexport const LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS =\n \"LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS\";\nexport const LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR =\n \"LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR\";\n\ninterface ListSchedulerEntriesBeginAction {\n type: typeof LIST_SCHEDULER_ENTRIES_BEGIN;\n}\n\ninterface ListSchedulerEntriesSuccessAction {\n type: typeof LIST_SCHEDULER_ENTRIES_SUCCESS;\n payload: ListSchedulerEntriesResponse;\n}\n\ninterface ListSchedulerEntriesErrorAction {\n type: typeof LIST_SCHEDULER_ENTRIES_ERROR;\n error: string; // error description\n}\n\ninterface ListSchedulerEnqueueEventBeginAction {\n type: typeof LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN;\n entryId: string;\n}\n\ninterface ListSchedulerEnqueueEventSuccessAction {\n type: typeof LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS;\n entryId: string;\n payload: ListSchedulerEnqueueEventsResponse;\n}\n\ninterface ListSchedulerEnqueueEventErrorAction {\n type: typeof LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR;\n entryId: string;\n error: string;\n}\n\n// Union of all scheduler-entry related actions.\nexport type SchedulerEntriesActionTypes =\n | ListSchedulerEntriesBeginAction\n | ListSchedulerEntriesSuccessAction\n | ListSchedulerEntriesErrorAction\n | ListSchedulerEnqueueEventBeginAction\n | ListSchedulerEnqueueEventSuccessAction\n | ListSchedulerEnqueueEventErrorAction;\n\nexport function listSchedulerEntriesAsync() {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_SCHEDULER_ENTRIES_BEGIN });\n try {\n const response = await listSchedulerEntries();\n dispatch({\n type: LIST_SCHEDULER_ENTRIES_SUCCESS,\n payload: response,\n });\n } catch (error) {\n console.error(\n `listSchedulerEnqueueEventsAsync: ${toErrorStringWithHttpStatus(error)}`\n );\n dispatch({\n type: LIST_SCHEDULER_ENTRIES_ERROR,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listSchedulerEnqueueEventsAsync(entryId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN, entryId });\n try {\n const response = await listSchedulerEnqueueEvents(entryId);\n dispatch({\n type: LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS,\n payload: response,\n entryId,\n });\n } catch (error) {\n console.error(\n \"listSchedulerEnqueueEventsAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR,\n error: toErrorString(error),\n entryId,\n });\n }\n };\n}\n","import uniqBy from \"lodash.uniqby\";\nimport {\n LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN,\n LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR,\n LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS,\n LIST_SCHEDULER_ENTRIES_BEGIN,\n LIST_SCHEDULER_ENTRIES_ERROR,\n LIST_SCHEDULER_ENTRIES_SUCCESS,\n SchedulerEntriesActionTypes,\n} from \"../actions/schedulerEntriesActions\";\nimport { SchedulerEnqueueEvent, SchedulerEntry } from \"../api\";\n\ninterface SchedulerEntriesState {\n loading: boolean;\n data: SchedulerEntry[];\n error: string; // error description\n enqueueEventsByEntryId: {\n [entryId: string]: { data: SchedulerEnqueueEvent[]; loading: boolean };\n };\n}\n\nexport function getEnqueueEventsEntry(\n state: SchedulerEntriesState,\n entryId: string\n): { data: SchedulerEnqueueEvent[]; loading: boolean } {\n return state.enqueueEventsByEntryId[entryId] || { data: [], loading: false };\n}\n\nconst initialState: SchedulerEntriesState = {\n loading: false,\n data: [],\n error: \"\",\n enqueueEventsByEntryId: {},\n};\n\nfunction schedulerEntriesReducer(\n state = initialState,\n action: SchedulerEntriesActionTypes\n): SchedulerEntriesState {\n switch (action.type) {\n case LIST_SCHEDULER_ENTRIES_BEGIN:\n return {\n ...state,\n loading: true,\n };\n case LIST_SCHEDULER_ENTRIES_SUCCESS:\n return {\n ...state,\n error: \"\",\n loading: false,\n data: action.payload.entries,\n };\n case LIST_SCHEDULER_ENTRIES_ERROR:\n return {\n ...state,\n loading: false,\n error: action.error,\n };\n case LIST_SCHEDULER_ENQUEUE_EVENTS_BEGIN: {\n const entry = getEnqueueEventsEntry(state, action.entryId);\n return {\n ...state,\n enqueueEventsByEntryId: {\n ...state.enqueueEventsByEntryId,\n [action.entryId]: {\n ...entry,\n loading: true,\n },\n },\n };\n }\n case LIST_SCHEDULER_ENQUEUE_EVENTS_SUCCESS: {\n const sortByEnqueuedAt = (\n e1: SchedulerEnqueueEvent,\n e2: SchedulerEnqueueEvent\n ): number => {\n return Date.parse(e2.enqueued_at) - Date.parse(e1.enqueued_at);\n };\n const entry = getEnqueueEventsEntry(state, action.entryId);\n const newData = uniqBy(\n [...entry.data, ...action.payload.events],\n \"task_id\"\n ).sort(sortByEnqueuedAt);\n return {\n ...state,\n enqueueEventsByEntryId: {\n ...state.enqueueEventsByEntryId,\n [action.entryId]: {\n loading: false,\n data: newData,\n },\n },\n };\n }\n case LIST_SCHEDULER_ENQUEUE_EVENTS_ERROR: {\n const entry = getEnqueueEventsEntry(state, action.entryId);\n return {\n ...state,\n enqueueEventsByEntryId: {\n ...state.enqueueEventsByEntryId,\n [action.entryId]: {\n ...entry,\n loading: false,\n },\n },\n };\n }\n default:\n return state;\n }\n}\n\nexport default schedulerEntriesReducer;\n","import React, { useEffect } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport { AppState } from \"../store\";\nimport { getEnqueueEventsEntry } from \"../reducers/schedulerEntriesReducer\";\nimport { listSchedulerEnqueueEventsAsync } from \"../actions/schedulerEntriesActions\";\nimport { timeAgo } from \"../utils\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n height: \"80vh\",\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n}));\n\nfunction mapStateToProps(state: AppState, ownProps: Props) {\n return {\n events: getEnqueueEventsEntry(state.schedulerEntries, ownProps.entryId),\n };\n}\n\nconst connector = connect(mapStateToProps, { listSchedulerEnqueueEventsAsync });\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n entryId: string; // Scheduler Entry ID\n}\n\nfunction SchedulerEnqueueEventsTable(props: Props & ReduxProps) {\n const classes = useStyles();\n const { listSchedulerEnqueueEventsAsync, entryId, events } = props;\n\n useEffect(() => {\n listSchedulerEnqueueEventsAsync(entryId);\n }, [entryId, listSchedulerEnqueueEventsAsync]);\n\n // TODO: loading state UI\n\n // TODO: \"Load More\" button OR infinite scroll\n\n return (\n \n \n \n \n \n Enqueued\n \n \n Task ID\n \n \n \n \n {events.data.map((e) => (\n \n \n {timeAgo(e.enqueued_at)}\n \n {e.task_id}\n \n ))}\n \n \n \n );\n}\n\nexport default connector(SchedulerEnqueueEventsTable);\n","import React, { useState } from \"react\";\nimport clsx from \"clsx\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Modal from \"@material-ui/core/Modal\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport HistoryIcon from \"@material-ui/icons/History\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport { SortDirection, SortableTableColumn } from \"../types/table\";\nimport TableSortLabel from \"@material-ui/core/TableSortLabel\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport { SchedulerEntry } from \"../api\";\nimport { timeAgo, durationBefore, prettifyPayload } from \"../utils\";\nimport SchedulerEnqueueEventsTable from \"./SchedulerEnqueueEventsTable\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n noBorder: {\n border: \"none\",\n },\n fixedCell: {\n position: \"sticky\",\n zIndex: 1,\n left: 0,\n background: theme.palette.background.paper,\n },\n modal: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n },\n modalContent: {\n background: theme.palette.background.paper,\n padding: theme.spacing(2),\n width: \"540px\",\n outline: \"none\",\n borderRadius: theme.shape.borderRadius,\n },\n eventsTable: {\n maxHeight: \"80vh\",\n },\n}));\n\nenum SortBy {\n EntryId,\n Spec,\n Type,\n Payload,\n Options,\n NextEnqueue,\n PrevEnqueue,\n\n None,\n}\n\nconst colConfigs: SortableTableColumn[] = [\n {\n label: \"Entry ID\",\n key: \"entry_id\",\n sortBy: SortBy.EntryId,\n align: \"left\",\n },\n {\n label: \"Spec\",\n key: \"spec\",\n sortBy: SortBy.Spec,\n align: \"left\",\n },\n {\n label: \"Type\",\n key: \"type\",\n sortBy: SortBy.Type,\n align: \"left\",\n },\n {\n label: \"Payload\",\n key: \"task_payload\",\n sortBy: SortBy.Payload,\n align: \"left\",\n },\n {\n label: \"Options\",\n key: \"options\",\n sortBy: SortBy.Options,\n align: \"left\",\n },\n {\n label: \"Next Enqueue\",\n key: \"next_enqueue\",\n sortBy: SortBy.NextEnqueue,\n align: \"left\",\n },\n {\n label: \"Prev Enqueue\",\n key: \"prev_enqueue\",\n sortBy: SortBy.PrevEnqueue,\n align: \"left\",\n },\n {\n label: \"\",\n key: \"show_history\",\n sortBy: SortBy.None,\n align: \"left\",\n },\n];\n\n// sortEntries takes a array of entries and return a sorted array.\n// It returns a new array and leave the original array untouched.\nfunction sortEntries(\n entries: SchedulerEntry[],\n cmpFn: (first: SchedulerEntry, second: SchedulerEntry) => number\n): SchedulerEntry[] {\n let copy = [...entries];\n copy.sort(cmpFn);\n return copy;\n}\n\ninterface Props {\n entries: SchedulerEntry[];\n}\n\nexport default function SchedulerEntriesTable(props: Props) {\n const classes = useStyles();\n const [sortBy, setSortBy] = useState(SortBy.EntryId);\n const [sortDir, setSortDir] = useState(SortDirection.Asc);\n const [activeEntryId, setActiveEntryId] = useState(\"\");\n\n const createSortClickHandler = (sortKey: SortBy) => (e: React.MouseEvent) => {\n if (sortKey === sortBy) {\n // Toggle sort direction.\n const nextSortDir =\n sortDir === SortDirection.Asc ? SortDirection.Desc : SortDirection.Asc;\n setSortDir(nextSortDir);\n } else {\n // Change the sort key.\n setSortBy(sortKey);\n }\n };\n\n const cmpFunc = (e1: SchedulerEntry, e2: SchedulerEntry): number => {\n let isE1Smaller: boolean;\n switch (sortBy) {\n case SortBy.EntryId:\n if (e1.id === e2.id) return 0;\n isE1Smaller = e1.id < e2.id;\n break;\n case SortBy.Spec:\n if (e1.spec === e2.spec) return 0;\n isE1Smaller = e1.spec < e2.spec;\n break;\n case SortBy.Type:\n if (e1.task_type === e2.task_type) return 0;\n isE1Smaller = e1.task_type < e2.task_type;\n break;\n case SortBy.Payload:\n if (e1.task_payload === e2.task_payload) return 0;\n isE1Smaller = e1.task_payload < e2.task_payload;\n break;\n case SortBy.Options:\n if (e1.options === e2.options) return 0;\n isE1Smaller = e1.options < e2.options;\n break;\n case SortBy.NextEnqueue:\n if (e1.next_enqueue_at === e2.next_enqueue_at) return 0;\n isE1Smaller = e1.next_enqueue_at < e2.next_enqueue_at;\n break;\n case SortBy.PrevEnqueue:\n const e1PrevEnqueueAt = e1.prev_enqueue_at || \"\";\n const e2PrevEnqueueAt = e2.prev_enqueue_at || \"\";\n if (e1PrevEnqueueAt === e2PrevEnqueueAt) return 0;\n isE1Smaller = e1PrevEnqueueAt < e2PrevEnqueueAt;\n break;\n default:\n // eslint-disable-next-line no-throw-literal\n throw `Unexpected order by value: ${sortBy}`;\n }\n if (sortDir === SortDirection.Asc) {\n return isE1Smaller ? -1 : 1;\n } else {\n return isE1Smaller ? 1 : -1;\n }\n };\n\n if (props.entries.length === 0) {\n return (\n \n Info\n No entries found at this time.\n \n );\n }\n\n return (\n <>\n \n \n \n \n {colConfigs.map((cfg, i) => (\n \n \n {cfg.label}\n \n \n ))}\n \n \n \n {sortEntries(props.entries, cmpFunc).map((entry, idx) => (\n setActiveEntryId(entry.id)}\n />\n ))}\n \n
    \n setActiveEntryId(\"\")}\n className={classes.modal}\n >\n
    \n \n Recent History\n \n \n
    \n \n
    \n \n );\n}\n\ninterface RowProps {\n entry: SchedulerEntry;\n isLastRow: boolean;\n onShowHistoryClick: () => void;\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n rowRoot: {\n \"& > *\": {\n borderBottom: \"unset\",\n },\n },\n noBorder: {\n border: \"none\",\n },\n}));\n\nfunction Row(props: RowProps) {\n const { entry, isLastRow } = props;\n const classes = useRowStyles();\n return (\n \n \n {entry.id}\n \n \n {entry.spec}\n \n \n {entry.task_type}\n \n \n \n {prettifyPayload(entry.task_payload)}\n \n \n \n \n {entry.options.length > 0 ? entry.options.join(\", \") : \"No options\"}\n \n \n \n {durationBefore(entry.next_enqueue_at)}\n \n \n {entry.prev_enqueue_at ? timeAgo(entry.prev_enqueue_at) : \"N/A\"}\n \n \n \n \n \n \n \n \n \n );\n}\n","import React from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport Container from \"@material-ui/core/Container\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Grid from \"@material-ui/core/Grid\";\nimport Paper from \"@material-ui/core/Paper\";\nimport SchedulerEntriesTable from \"../components/SchedulerEntriesTable\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport { AppState } from \"../store\";\nimport { listSchedulerEntriesAsync } from \"../actions/schedulerEntriesActions\";\nimport { usePolling } from \"../hooks\";\n\nconst useStyles = makeStyles((theme) => ({\n container: {\n paddingTop: theme.spacing(4),\n paddingBottom: theme.spacing(4),\n },\n paper: {\n padding: theme.spacing(2),\n display: \"flex\",\n overflow: \"auto\",\n flexDirection: \"column\",\n },\n heading: {\n paddingLeft: theme.spacing(2),\n marginBottom: theme.spacing(1),\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.schedulerEntries.loading,\n error: state.schedulerEntries.error,\n entries: state.schedulerEntries.data,\n pollInterval: state.settings.pollInterval,\n };\n}\n\nconst connector = connect(mapStateToProps, { listSchedulerEntriesAsync });\n\ntype Props = ConnectedProps;\n\nfunction SchedulersView(props: Props) {\n const { pollInterval, listSchedulerEntriesAsync } = props;\n const classes = useStyles();\n\n usePolling(listSchedulerEntriesAsync, pollInterval);\n\n return (\n \n \n {props.error === \"\" ? (\n \n \n \n Scheduler Entries\n \n \n \n \n ) : (\n \n \n Error\n Could not retrieve scheduler entries live data —{\" \"}\n See the logs for details\n \n \n )}\n \n \n );\n}\n\nexport default connector(SchedulersView);\n","import {\n batchCancelActiveTasks,\n BatchCancelTasksResponse,\n batchDeleteArchivedTasks,\n batchDeleteRetryTasks,\n batchDeleteScheduledTasks,\n batchDeleteCompletedTasks,\n BatchDeleteTasksResponse,\n batchArchiveRetryTasks,\n batchArchiveScheduledTasks,\n BatchArchiveTasksResponse,\n batchRunArchivedTasks,\n batchRunRetryTasks,\n batchRunScheduledTasks,\n BatchRunTasksResponse,\n cancelActiveTask,\n cancelAllActiveTasks,\n deleteAllArchivedTasks,\n deleteAllRetryTasks,\n deleteAllScheduledTasks,\n deleteAllCompletedTasks,\n deleteArchivedTask,\n deleteRetryTask,\n deleteScheduledTask,\n deleteCompletedTask,\n archiveAllRetryTasks,\n archiveAllScheduledTasks,\n archiveRetryTask,\n archiveScheduledTask,\n listActiveTasks,\n listArchivedTasks,\n listPendingTasks,\n ListTasksResponse,\n listRetryTasks,\n listScheduledTasks,\n listCompletedTasks,\n PaginationOptions,\n runAllArchivedTasks,\n runAllRetryTasks,\n runAllScheduledTasks,\n runArchivedTask,\n runRetryTask,\n runScheduledTask,\n deletePendingTask,\n batchDeletePendingTasks,\n deleteAllPendingTasks,\n archivePendingTask,\n batchArchivePendingTasks,\n archiveAllPendingTasks,\n TaskInfo,\n getTaskInfo,\n} from \"../api\";\nimport { Dispatch } from \"redux\";\nimport { toErrorString, toErrorStringWithHttpStatus } from \"../utils\";\n\n// List of tasks related action types.\nexport const GET_TASK_INFO_BEGIN = \"GET_TASK_INFO_BEGIN\";\nexport const GET_TASK_INFO_SUCCESS = \"GET_TASK_INFO_SUCCESS\";\nexport const GET_TASK_INFO_ERROR = \"GET_TASK_INFO_ERROR\";\nexport const LIST_ACTIVE_TASKS_BEGIN = \"LIST_ACTIVE_TASKS_BEGIN\";\nexport const LIST_ACTIVE_TASKS_SUCCESS = \"LIST_ACTIVE_TASKS_SUCCESS\";\nexport const LIST_ACTIVE_TASKS_ERROR = \"LIST_ACTIVE_TASKS_ERROR\";\nexport const LIST_PENDING_TASKS_BEGIN = \"LIST_PENDING_TASKS_BEGIN\";\nexport const LIST_PENDING_TASKS_SUCCESS = \"LIST_PENDING_TASKS_SUCCESS\";\nexport const LIST_PENDING_TASKS_ERROR = \"LIST_PENDING_TASKS_ERROR\";\nexport const LIST_SCHEDULED_TASKS_BEGIN = \"LIST_SCHEDULED_TASKS_BEGIN\";\nexport const LIST_SCHEDULED_TASKS_SUCCESS = \"LIST_SCHEDULED_TASKS_SUCCESS\";\nexport const LIST_SCHEDULED_TASKS_ERROR = \"LIST_SCHEDULED_TASKS_ERROR\";\nexport const LIST_RETRY_TASKS_BEGIN = \"LIST_RETRY_TASKS_BEGIN\";\nexport const LIST_RETRY_TASKS_SUCCESS = \"LIST_RETRY_TASKS_SUCCESS\";\nexport const LIST_RETRY_TASKS_ERROR = \"LIST_RETRY_TASKS_ERROR\";\nexport const LIST_ARCHIVED_TASKS_BEGIN = \"LIST_ARCHIVED_TASKS_BEGIN\";\nexport const LIST_ARCHIVED_TASKS_SUCCESS = \"LIST_ARCHIVED_TASKS_SUCCESS\";\nexport const LIST_ARCHIVED_TASKS_ERROR = \"LIST_ARCHIVED_TASKS_ERROR\";\nexport const LIST_COMPLETED_TASKS_BEGIN = \"LIST_COMPLETED_TASKS_BEGIN\";\nexport const LIST_COMPLETED_TASKS_SUCCESS = \"LIST_COMPLETED_TASKS_SUCCESS\";\nexport const LIST_COMPLETED_TASKS_ERROR = \"LIST_COMPLETED_TASKS_ERROR\";\nexport const CANCEL_ACTIVE_TASK_BEGIN = \"CANCEL_ACTIVE_TASK_BEGIN\";\nexport const CANCEL_ACTIVE_TASK_SUCCESS = \"CANCEL_ACTIVE_TASK_SUCCESS\";\nexport const CANCEL_ACTIVE_TASK_ERROR = \"CANCEL_ACTIVE_TASK_ERROR\";\nexport const CANCEL_ALL_ACTIVE_TASKS_BEGIN = \"CANCEL_ALL_ACTIVE_TASKS_BEGIN\";\nexport const CANCEL_ALL_ACTIVE_TASKS_SUCCESS =\n \"CANCEL_ALL_ACTIVE_TASKS_SUCCESS\";\nexport const CANCEL_ALL_ACTIVE_TASKS_ERROR = \"CANCEL_ALL_ACTIVE_TASKS_ERROR\";\nexport const BATCH_CANCEL_ACTIVE_TASKS_BEGIN =\n \"BATCH_CANCEL_ACTIVE_TASKS_BEGIN\";\nexport const BATCH_CANCEL_ACTIVE_TASKS_SUCCESS =\n \"BATCH_CANCEL_ACTIVE_TASKS_SUCCESS\";\nexport const BATCH_CANCEL_ACTIVE_TASKS_ERROR =\n \"BATCH_CANCEL_ACTIVE_TASKS_ERROR\";\nexport const RUN_SCHEDULED_TASK_BEGIN = \"RUN_SCHEDULED_TASK_BEGIN\";\nexport const RUN_SCHEDULED_TASK_SUCCESS = \"RUN_SCHEDULED_TASK_SUCCESS\";\nexport const RUN_SCHEDULED_TASK_ERROR = \"RUN_SCHEDULED_TASK_ERROR\";\nexport const RUN_RETRY_TASK_BEGIN = \"RUN_RETRY_TASK_BEGIN\";\nexport const RUN_RETRY_TASK_SUCCESS = \"RUN_RETRY_TASK_SUCCESS\";\nexport const RUN_RETRY_TASK_ERROR = \"RUN_RETRY_TASK_ERROR\";\nexport const RUN_ARCHIVED_TASK_BEGIN = \"RUN_ARCHIVED_TASK_BEGIN\";\nexport const RUN_ARCHIVED_TASK_SUCCESS = \"RUN_ARCHIVED_TASK_SUCCESS\";\nexport const RUN_ARCHIVED_TASK_ERROR = \"RUN_ARCHIVED_TASK_ERROR\";\nexport const DELETE_PENDING_TASK_BEGIN = \"DELETE_PENDING_TASK_BEGIN\";\nexport const DELETE_PENDING_TASK_SUCCESS = \"DELETE_PENDING_TASK_SUCCESS\";\nexport const DELETE_PENDING_TASK_ERROR = \"DELETE_PENDING_TASK_ERROR\";\nexport const ARCHIVE_PENDING_TASK_BEGIN = \"ARCHIVE_PENDING_TASK_BEGIN\";\nexport const ARCHIVE_PENDING_TASK_SUCCESS = \"ARCHIVE_PENDING_TASK_SUCCESS\";\nexport const ARCHIVE_PENDING_TASK_ERROR = \"ARCHIVE_PENDING_TASK_ERROR\";\nexport const DELETE_SCHEDULED_TASK_BEGIN = \"DELETE_SCHEDULED_TASK_BEGIN\";\nexport const DELETE_SCHEDULED_TASK_SUCCESS = \"DELETE_SCHEDULED_TASK_SUCCESS\";\nexport const DELETE_SCHEDULED_TASK_ERROR = \"DELETE_SCHEDULED_TASK_ERROR\";\nexport const ARCHIVE_SCHEDULED_TASK_BEGIN = \"ARCHIVE_SCHEDULED_TASK_BEGIN\";\nexport const ARCHIVE_SCHEDULED_TASK_SUCCESS = \"ARCHIVE_SCHEDULED_TASK_SUCCESS\";\nexport const ARCHIVE_SCHEDULED_TASK_ERROR = \"ARCHIVE_SCHEDULED_TASK_ERROR\";\nexport const ARCHIVE_RETRY_TASK_BEGIN = \"ARCHIVE_RETRY_TASK_BEGIN\";\nexport const ARCHIVE_RETRY_TASK_SUCCESS = \"ARCHIVE_RETRY_TASK_SUCCESS\";\nexport const ARCHIVE_RETRY_TASK_ERROR = \"ARCHIVE_RETRY_TASK_ERROR\";\nexport const BATCH_ARCHIVE_PENDING_TASKS_BEGIN =\n \"BATCH_ARCHIVE_PENDING_TASKS_BEGIN\";\nexport const BATCH_ARCHIVE_PENDING_TASKS_SUCCESS =\n \"BATCH_ARCHIVE_PENDING_TASKS_SUCCESS\";\nexport const BATCH_ARCHIVE_PENDING_TASKS_ERROR =\n \"BATCH_RUN_PENDING_TASKS_ERROR\";\nexport const BATCH_DELETE_PENDING_TASKS_BEGIN =\n \"BATCH_DELETE_PENDING_TASKS_BEGIN\";\nexport const BATCH_DELETE_PENDING_TASKS_SUCCESS =\n \"BATCH_DELETE_PENDING_TASKS_SUCCESS\";\nexport const BATCH_DELETE_PENDING_TASKS_ERROR =\n \"BATCH_DELETE_PENDING_TASKS_ERROR\";\nexport const DELETE_ALL_PENDING_TASKS_BEGIN = \"DELETE_ALL_PENDING_TASKS_BEGIN\";\nexport const DELETE_ALL_PENDING_TASKS_SUCCESS =\n \"DELETE_ALL_PENDING_TASKS_SUCCESS\";\nexport const DELETE_ALL_PENDING_TASKS_ERROR = \"DELETE_ALL_PENDING_TASKS_ERROR\";\nexport const ARCHIVE_ALL_PENDING_TASKS_BEGIN =\n \"ARCHIVE_ALL_PENDING_TASKS_BEGIN\";\nexport const ARCHIVE_ALL_PENDING_TASKS_SUCCESS =\n \"ARCHIVE_ALL_PENDING_TASKS_SUCCESS\";\nexport const ARCHIVE_ALL_PENDING_TASKS_ERROR =\n \"ARCHIVE_ALL_PENDING_TASKS_ERROR\";\nexport const BATCH_RUN_SCHEDULED_TASKS_BEGIN =\n \"BATCH_RUN_SCHEDULED_TASKS_BEGIN\";\nexport const BATCH_RUN_SCHEDULED_TASKS_SUCCESS =\n \"BATCH_RUN_SCHEDULED_TASKS_SUCCESS\";\nexport const BATCH_RUN_SCHEDULED_TASKS_ERROR =\n \"BATCH_RUN_SCHEDULED_TASKS_ERROR\";\nexport const BATCH_ARCHIVE_SCHEDULED_TASKS_BEGIN =\n \"BATCH_ARCHIVE_SCHEDULED_TASKS_BEGIN\";\nexport const BATCH_ARCHIVE_SCHEDULED_TASKS_SUCCESS =\n \"BATCH_ARCHIVE_SCHEDULED_TASKS_SUCCESS\";\nexport const BATCH_ARCHIVE_SCHEDULED_TASKS_ERROR =\n \"BATCH_RUN_SCHEDULED_TASKS_ERROR\";\nexport const BATCH_DELETE_SCHEDULED_TASKS_BEGIN =\n \"BATCH_DELETE_SCHEDULED_TASKS_BEGIN\";\nexport const BATCH_DELETE_SCHEDULED_TASKS_SUCCESS =\n \"BATCH_DELETE_SCHEDULED_TASKS_SUCCESS\";\nexport const BATCH_DELETE_SCHEDULED_TASKS_ERROR =\n \"BATCH_DELETE_SCHEDULED_TASKS_ERROR\";\nexport const RUN_ALL_SCHEDULED_TASKS_BEGIN = \"RUN_ALL_SCHEDULED_TASKS_BEGIN\";\nexport const RUN_ALL_SCHEDULED_TASKS_SUCCESS =\n \"RUN_ALL_SCHEDULED_TASKS_SUCCESS\";\nexport const RUN_ALL_SCHEDULED_TASKS_ERROR = \"RUN_ALL_SCHEDULED_TASKS_ERROR\";\nexport const ARCHIVE_ALL_SCHEDULED_TASKS_BEGIN =\n \"ARCHIVE_ALL_SCHEDULED_TASKS_BEGIN\";\nexport const ARCHIVE_ALL_SCHEDULED_TASKS_SUCCESS =\n \"ARCHIVE_ALL_SCHEDULED_TASKS_SUCCESS\";\nexport const ARCHIVE_ALL_SCHEDULED_TASKS_ERROR =\n \"ARCHIVE_ALL_SCHEDULED_TASKS_ERROR\";\nexport const DELETE_ALL_SCHEDULED_TASKS_BEGIN =\n \"DELETE_ALL_SCHEDULED_TASKS_BEGIN\";\nexport const DELETE_ALL_SCHEDULED_TASKS_SUCCESS =\n \"DELETE_ALL_SCHEDULED_TASKS_SUCCESS\";\nexport const DELETE_ALL_SCHEDULED_TASKS_ERROR =\n \"DELETE_ALL_SCHEDULED_TASKS_ERROR\";\nexport const DELETE_RETRY_TASK_BEGIN = \"DELETE_RETRY_TASK_BEGIN\";\nexport const DELETE_RETRY_TASK_SUCCESS = \"DELETE_RETRY_TASK_SUCCESS\";\nexport const DELETE_RETRY_TASK_ERROR = \"DELETE_RETRY_TASK_ERROR\";\nexport const BATCH_RUN_RETRY_TASKS_BEGIN = \"BATCH_RUN_RETRY_TASKS_BEGIN\";\nexport const BATCH_RUN_RETRY_TASKS_SUCCESS = \"BATCH_RUN_RETRY_TASKS_SUCCESS\";\nexport const BATCH_RUN_RETRY_TASKS_ERROR = \"BATCH_RUN_RETRY_TASKS_ERROR\";\nexport const BATCH_ARCHIVE_RETRY_TASKS_BEGIN =\n \"BATCH_ARCHIVE_RETRY_TASKS_BEGIN\";\nexport const BATCH_ARCHIVE_RETRY_TASKS_SUCCESS =\n \"BATCH_ARCHIVE_RETRY_TASKS_SUCCESS\";\nexport const BATCH_ARCHIVE_RETRY_TASKS_ERROR =\n \"BATCH_ARCHIVE_RETRY_TASKS_ERROR\";\nexport const BATCH_DELETE_RETRY_TASKS_BEGIN = \"BATCH_DELETE_RETRY_TASKS_BEGIN\";\nexport const BATCH_DELETE_RETRY_TASKS_SUCCESS =\n \"BATCH_DELETE_RETRY_TASKS_SUCCESS\";\nexport const BATCH_DELETE_RETRY_TASKS_ERROR = \"BATCH_DELETE_RETRY_TASKS_ERROR\";\nexport const RUN_ALL_RETRY_TASKS_BEGIN = \"RUN_ALL_RETRY_TASKS_BEGIN\";\nexport const RUN_ALL_RETRY_TASKS_SUCCESS = \"RUN_ALL_RETRY_TASKS_SUCCESS\";\nexport const RUN_ALL_RETRY_TASKS_ERROR = \"RUN_ALL_RETRY_TASKS_ERROR\";\nexport const ARCHIVE_ALL_RETRY_TASKS_BEGIN = \"ARCHIVE_ALL_RETRY_TASKS_BEGIN\";\nexport const ARCHIVE_ALL_RETRY_TASKS_SUCCESS =\n \"ARCHIVE_ALL_RETRY_TASKS_SUCCESS\";\nexport const ARCHIVE_ALL_RETRY_TASKS_ERROR = \"ARCHIVE_ALL_RETRY_TASKS_ERROR\";\nexport const DELETE_ALL_RETRY_TASKS_BEGIN = \"DELETE_ALL_RETRY_TASKS_BEGIN\";\nexport const DELETE_ALL_RETRY_TASKS_SUCCESS = \"DELETE_ALL_RETRY_TASKS_SUCCESS\";\nexport const DELETE_ALL_RETRY_TASKS_ERROR = \"DELETE_ALL_RETRY_TASKS_ERROR\";\nexport const DELETE_ARCHIVED_TASK_BEGIN = \"DELETE_ARCHIVED_TASK_BEGIN\";\nexport const DELETE_ARCHIVED_TASK_SUCCESS = \"DELETE_ARCHIVED_TASK_SUCCESS\";\nexport const DELETE_ARCHIVED_TASK_ERROR = \"DELETE_ARCHIVED_TASK_ERROR\";\nexport const BATCH_RUN_ARCHIVED_TASKS_BEGIN = \"BATCH_RUN_ARCHIVED_TASKS_BEGIN\";\nexport const BATCH_RUN_ARCHIVED_TASKS_SUCCESS =\n \"BATCH_RUN_ARCHIVED_TASKS_SUCCESS\";\nexport const BATCH_RUN_ARCHIVED_TASKS_ERROR = \"BATCH_RUN_ARCHIVED_TASKS_ERROR\";\nexport const BATCH_DELETE_ARCHIVED_TASKS_BEGIN =\n \"BATCH_DELETE_ARCHIVED_TASKS_BEGIN\";\nexport const BATCH_DELETE_ARCHIVED_TASKS_SUCCESS =\n \"BATCH_DELETE_ARCHIVED_TASKS_SUCCESS\";\nexport const BATCH_DELETE_ARCHIVED_TASKS_ERROR =\n \"BATCH_DELETE_ARCHIVED_TASKS_ERROR\";\nexport const RUN_ALL_ARCHIVED_TASKS_BEGIN = \"RUN_ALL_ARCHIVED_TASKS_BEGIN\";\nexport const RUN_ALL_ARCHIVED_TASKS_SUCCESS = \"RUN_ALL_ARCHIVED_TASKS_SUCCESS\";\nexport const RUN_ALL_ARCHIVED_TASKS_ERROR = \"RUN_ALL_ARCHIVED_TASKS_ERROR\";\nexport const DELETE_ALL_ARCHIVED_TASKS_BEGIN =\n \"DELETE_ALL_ARCHIVED_TASKS_BEGIN\";\nexport const DELETE_ALL_ARCHIVED_TASKS_SUCCESS =\n \"DELETE_ALL_ARCHIVED_TASKS_SUCCESS\";\nexport const DELETE_ALL_ARCHIVED_TASKS_ERROR =\n \"DELETE_ALL_ARCHIVED_TASKS_ERROR\";\nexport const DELETE_COMPLETED_TASK_BEGIN = \"DELETE_COMPLETED_TASK_BEGIN\";\nexport const DELETE_COMPLETED_TASK_SUCCESS = \"DELETE_COMPLETED_TASK_SUCCESS\";\nexport const DELETE_COMPLETED_TASK_ERROR = \"DELETE_COMPLETED_TASK_ERROR\";\nexport const DELETE_ALL_COMPLETED_TASKS_BEGIN =\n \"DELETE_ALL_COMPLETED_TASKS_BEGIN\";\nexport const DELETE_ALL_COMPLETED_TASKS_SUCCESS =\n \"DELETE_ALL_COMPLETED_TASKS_SUCCESS\";\nexport const DELETE_ALL_COMPLETED_TASKS_ERROR =\n \"DELETE_ALL_COMPLETED_TASKS_ERROR\";\nexport const BATCH_DELETE_COMPLETED_TASKS_BEGIN =\n \"BATCH_DELETE_COMPLETED_TASKS_BEGIN\";\nexport const BATCH_DELETE_COMPLETED_TASKS_SUCCESS =\n \"BATCH_DELETE_COMPLETED_TASKS_SUCCESS\";\nexport const BATCH_DELETE_COMPLETED_TASKS_ERROR =\n \"BATCH_DELETE_COMPLETED_TASKS_ERROR\";\n\ninterface GetTaskInfoBeginAction {\n type: typeof GET_TASK_INFO_BEGIN;\n}\n\ninterface GetTaskInfoErrorAction {\n type: typeof GET_TASK_INFO_ERROR;\n error: string; // error description\n}\n\ninterface GetTaskInfoSuccessAction {\n type: typeof GET_TASK_INFO_SUCCESS;\n payload: TaskInfo;\n}\n\ninterface ListActiveTasksBeginAction {\n type: typeof LIST_ACTIVE_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ListActiveTasksSuccessAction {\n type: typeof LIST_ACTIVE_TASKS_SUCCESS;\n queue: string;\n payload: ListTasksResponse;\n}\n\ninterface ListActiveTasksErrorAction {\n type: typeof LIST_ACTIVE_TASKS_ERROR;\n queue: string;\n error: string; // error description\n}\n\ninterface ListPendingTasksBeginAction {\n type: typeof LIST_PENDING_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ListPendingTasksSuccessAction {\n type: typeof LIST_PENDING_TASKS_SUCCESS;\n queue: string;\n payload: ListTasksResponse;\n}\n\ninterface ListPendingTasksErrorAction {\n type: typeof LIST_PENDING_TASKS_ERROR;\n queue: string;\n error: string; // error description\n}\n\ninterface ListScheduledTasksBeginAction {\n type: typeof LIST_SCHEDULED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ListScheduledTasksSuccessAction {\n type: typeof LIST_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n payload: ListTasksResponse;\n}\n\ninterface ListScheduledTasksErrorAction {\n type: typeof LIST_SCHEDULED_TASKS_ERROR;\n queue: string;\n error: string; // error description\n}\n\ninterface ListRetryTasksBeginAction {\n type: typeof LIST_RETRY_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ListRetryTasksSuccessAction {\n type: typeof LIST_RETRY_TASKS_SUCCESS;\n queue: string;\n payload: ListTasksResponse;\n}\n\ninterface ListRetryTasksErrorAction {\n type: typeof LIST_RETRY_TASKS_ERROR;\n queue: string;\n error: string; // error description\n}\n\ninterface ListArchivedTasksBeginAction {\n type: typeof LIST_ARCHIVED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ListArchivedTasksSuccessAction {\n type: typeof LIST_ARCHIVED_TASKS_SUCCESS;\n queue: string;\n payload: ListTasksResponse;\n}\n\ninterface ListArchivedTasksErrorAction {\n type: typeof LIST_ARCHIVED_TASKS_ERROR;\n queue: string;\n error: string; // error description\n}\n\ninterface ListCompletedTasksBeginAction {\n type: typeof LIST_COMPLETED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ListCompletedTasksSuccessAction {\n type: typeof LIST_COMPLETED_TASKS_SUCCESS;\n queue: string;\n payload: ListTasksResponse;\n}\n\ninterface ListCompletedTasksErrorAction {\n type: typeof LIST_COMPLETED_TASKS_ERROR;\n queue: string;\n error: string; // error description\n}\n\ninterface CancelActiveTaskBeginAction {\n type: typeof CANCEL_ACTIVE_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface CancelActiveTaskSuccessAction {\n type: typeof CANCEL_ACTIVE_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface CancelActiveTaskErrorAction {\n type: typeof CANCEL_ACTIVE_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface CancelAllActiveTasksBeginAction {\n type: typeof CANCEL_ALL_ACTIVE_TASKS_BEGIN;\n queue: string;\n}\n\ninterface CancelAllActiveTasksSuccessAction {\n type: typeof CANCEL_ALL_ACTIVE_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface CancelAllActiveTasksErrorAction {\n type: typeof CANCEL_ALL_ACTIVE_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface BatchCancelActiveTasksBeginAction {\n type: typeof BATCH_CANCEL_ACTIVE_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchCancelActiveTasksSuccessAction {\n type: typeof BATCH_CANCEL_ACTIVE_TASKS_SUCCESS;\n queue: string;\n payload: BatchCancelTasksResponse;\n}\n\ninterface BatchCancelActiveTasksErrorAction {\n type: typeof BATCH_CANCEL_ACTIVE_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface DeletePendingTaskBeginAction {\n type: typeof DELETE_PENDING_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface DeletePendingTaskSuccessAction {\n type: typeof DELETE_PENDING_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface DeletePendingTaskErrorAction {\n type: typeof DELETE_PENDING_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface BatchDeletePendingTasksBeginAction {\n type: typeof BATCH_DELETE_PENDING_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchDeletePendingTasksSuccessAction {\n type: typeof BATCH_DELETE_PENDING_TASKS_SUCCESS;\n queue: string;\n payload: BatchDeleteTasksResponse;\n}\n\ninterface BatchDeletePendingTasksErrorAction {\n type: typeof BATCH_DELETE_PENDING_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface DeleteAllPendingTasksBeginAction {\n type: typeof DELETE_ALL_PENDING_TASKS_BEGIN;\n queue: string;\n}\n\ninterface DeleteAllPendingTasksSuccessAction {\n type: typeof DELETE_ALL_PENDING_TASKS_SUCCESS;\n queue: string;\n deleted: number;\n}\n\ninterface DeleteAllPendingTasksErrorAction {\n type: typeof DELETE_ALL_PENDING_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface ArchivePendingTaskBeginAction {\n type: typeof ARCHIVE_PENDING_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface ArchivePendingTaskSuccessAction {\n type: typeof ARCHIVE_PENDING_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface ArchivePendingTaskErrorAction {\n type: typeof ARCHIVE_PENDING_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface BatchArchivePendingTasksBeginAction {\n type: typeof BATCH_ARCHIVE_PENDING_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchArchivePendingTasksSuccessAction {\n type: typeof BATCH_ARCHIVE_PENDING_TASKS_SUCCESS;\n queue: string;\n payload: BatchArchiveTasksResponse;\n}\n\ninterface BatchArchivePendingTasksErrorAction {\n type: typeof BATCH_ARCHIVE_PENDING_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface ArchiveAllPendingTasksBeginAction {\n type: typeof ARCHIVE_ALL_PENDING_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ArchiveAllPendingTasksSuccessAction {\n type: typeof ARCHIVE_ALL_PENDING_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface ArchiveAllPendingTasksErrorAction {\n type: typeof ARCHIVE_ALL_PENDING_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface RunScheduledTaskBeginAction {\n type: typeof RUN_SCHEDULED_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface RunScheduledTaskSuccessAction {\n type: typeof RUN_SCHEDULED_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface RunScheduledTaskErrorAction {\n type: typeof RUN_SCHEDULED_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface ArchiveScheduledTaskBeginAction {\n type: typeof ARCHIVE_SCHEDULED_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface ArchiveScheduledTaskSuccessAction {\n type: typeof ARCHIVE_SCHEDULED_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface ArchiveScheduledTaskErrorAction {\n type: typeof ARCHIVE_SCHEDULED_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface RunRetryTaskBeginAction {\n type: typeof RUN_RETRY_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface RunRetryTaskSuccessAction {\n type: typeof RUN_RETRY_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface RunRetryTaskErrorAction {\n type: typeof RUN_RETRY_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface ArchiveRetryTaskBeginAction {\n type: typeof ARCHIVE_RETRY_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface ArchiveRetryTaskSuccessAction {\n type: typeof ARCHIVE_RETRY_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface ArchiveRetryTaskErrorAction {\n type: typeof ARCHIVE_RETRY_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface RunArchivedTaskBeginAction {\n type: typeof RUN_ARCHIVED_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface RunArchivedTaskSuccessAction {\n type: typeof RUN_ARCHIVED_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface RunArchivedTaskErrorAction {\n type: typeof RUN_ARCHIVED_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface DeleteScheduledTaskBeginAction {\n type: typeof DELETE_SCHEDULED_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteScheduledTaskSuccessAction {\n type: typeof DELETE_SCHEDULED_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteScheduledTaskErrorAction {\n type: typeof DELETE_SCHEDULED_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface BatchDeleteScheduledTasksBeginAction {\n type: typeof BATCH_DELETE_SCHEDULED_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchDeleteScheduledTasksSuccessAction {\n type: typeof BATCH_DELETE_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n payload: BatchDeleteTasksResponse;\n}\n\ninterface BatchDeleteScheduledTasksErrorAction {\n type: typeof BATCH_DELETE_SCHEDULED_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface BatchRunScheduledTasksBeginAction {\n type: typeof BATCH_RUN_SCHEDULED_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchRunScheduledTasksSuccessAction {\n type: typeof BATCH_RUN_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n payload: BatchRunTasksResponse;\n}\n\ninterface BatchRunScheduledTasksErrorAction {\n type: typeof BATCH_RUN_SCHEDULED_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface RunAllScheduledTasksBeginAction {\n type: typeof RUN_ALL_SCHEDULED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface RunAllScheduledTasksSuccessAction {\n type: typeof RUN_ALL_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface RunAllScheduledTasksErrorAction {\n type: typeof RUN_ALL_SCHEDULED_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface BatchArchiveScheduledTasksBeginAction {\n type: typeof BATCH_ARCHIVE_SCHEDULED_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchArchiveScheduledTasksSuccessAction {\n type: typeof BATCH_ARCHIVE_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n payload: BatchArchiveTasksResponse;\n}\n\ninterface BatchArchiveScheduledTasksErrorAction {\n type: typeof BATCH_ARCHIVE_SCHEDULED_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface ArchiveAllScheduledTasksBeginAction {\n type: typeof ARCHIVE_ALL_SCHEDULED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ArchiveAllScheduledTasksSuccessAction {\n type: typeof ARCHIVE_ALL_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface ArchiveAllScheduledTasksErrorAction {\n type: typeof ARCHIVE_ALL_SCHEDULED_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface DeleteAllScheduledTasksBeginAction {\n type: typeof DELETE_ALL_SCHEDULED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface DeleteAllScheduledTasksSuccessAction {\n type: typeof DELETE_ALL_SCHEDULED_TASKS_SUCCESS;\n queue: string;\n deleted: number;\n}\n\ninterface DeleteAllScheduledTasksErrorAction {\n type: typeof DELETE_ALL_SCHEDULED_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface DeleteRetryTaskBeginAction {\n type: typeof DELETE_RETRY_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteRetryTaskSuccessAction {\n type: typeof DELETE_RETRY_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteRetryTaskErrorAction {\n type: typeof DELETE_RETRY_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface BatchDeleteRetryTasksBeginAction {\n type: typeof BATCH_DELETE_RETRY_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchDeleteRetryTasksSuccessAction {\n type: typeof BATCH_DELETE_RETRY_TASKS_SUCCESS;\n queue: string;\n payload: BatchDeleteTasksResponse;\n}\n\ninterface BatchDeleteRetryTasksErrorAction {\n type: typeof BATCH_DELETE_RETRY_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface BatchRunRetryTasksBeginAction {\n type: typeof BATCH_RUN_RETRY_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchRunRetryTasksSuccessAction {\n type: typeof BATCH_RUN_RETRY_TASKS_SUCCESS;\n queue: string;\n payload: BatchRunTasksResponse;\n}\n\ninterface BatchRunRetryTasksErrorAction {\n type: typeof BATCH_RUN_RETRY_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface RunAllRetryTasksBeginAction {\n type: typeof RUN_ALL_RETRY_TASKS_BEGIN;\n queue: string;\n}\n\ninterface RunAllRetryTasksSuccessAction {\n type: typeof RUN_ALL_RETRY_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface RunAllRetryTasksErrorAction {\n type: typeof RUN_ALL_RETRY_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface BatchArchiveRetryTasksBeginAction {\n type: typeof BATCH_ARCHIVE_RETRY_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchArchiveRetryTasksSuccessAction {\n type: typeof BATCH_ARCHIVE_RETRY_TASKS_SUCCESS;\n queue: string;\n payload: BatchArchiveTasksResponse;\n}\n\ninterface BatchArchiveRetryTasksErrorAction {\n type: typeof BATCH_ARCHIVE_RETRY_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface ArchiveAllRetryTasksBeginAction {\n type: typeof ARCHIVE_ALL_RETRY_TASKS_BEGIN;\n queue: string;\n}\n\ninterface ArchiveAllRetryTasksSuccessAction {\n type: typeof ARCHIVE_ALL_RETRY_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface ArchiveAllRetryTasksErrorAction {\n type: typeof ARCHIVE_ALL_RETRY_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface DeleteAllRetryTasksBeginAction {\n type: typeof DELETE_ALL_RETRY_TASKS_BEGIN;\n queue: string;\n}\n\ninterface DeleteAllRetryTasksSuccessAction {\n type: typeof DELETE_ALL_RETRY_TASKS_SUCCESS;\n queue: string;\n deleted: number;\n}\n\ninterface DeleteAllRetryTasksErrorAction {\n type: typeof DELETE_ALL_RETRY_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface DeleteArchivedTaskBeginAction {\n type: typeof DELETE_ARCHIVED_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteArchivedTaskSuccessAction {\n type: typeof DELETE_ARCHIVED_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteArchivedTaskErrorAction {\n type: typeof DELETE_ARCHIVED_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface BatchDeleteArchivedTasksBeginAction {\n type: typeof BATCH_DELETE_ARCHIVED_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchDeleteArchivedTasksSuccessAction {\n type: typeof BATCH_DELETE_ARCHIVED_TASKS_SUCCESS;\n queue: string;\n payload: BatchDeleteTasksResponse;\n}\n\ninterface BatchDeleteArchivedTasksErrorAction {\n type: typeof BATCH_DELETE_ARCHIVED_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface BatchRunArchivedTasksBeginAction {\n type: typeof BATCH_RUN_ARCHIVED_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchRunArchivedTasksSuccessAction {\n type: typeof BATCH_RUN_ARCHIVED_TASKS_SUCCESS;\n queue: string;\n payload: BatchRunTasksResponse;\n}\n\ninterface BatchRunArchivedTasksErrorAction {\n type: typeof BATCH_RUN_ARCHIVED_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface RunAllArchivedTasksBeginAction {\n type: typeof RUN_ALL_ARCHIVED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface RunAllArchivedTasksSuccessAction {\n type: typeof RUN_ALL_ARCHIVED_TASKS_SUCCESS;\n queue: string;\n}\n\ninterface RunAllArchivedTasksErrorAction {\n type: typeof RUN_ALL_ARCHIVED_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface DeleteAllArchivedTasksBeginAction {\n type: typeof DELETE_ALL_ARCHIVED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface DeleteAllArchivedTasksSuccessAction {\n type: typeof DELETE_ALL_ARCHIVED_TASKS_SUCCESS;\n queue: string;\n deleted: number;\n}\n\ninterface DeleteAllArchivedTasksErrorAction {\n type: typeof DELETE_ALL_ARCHIVED_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\ninterface DeleteCompletedTaskBeginAction {\n type: typeof DELETE_COMPLETED_TASK_BEGIN;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteCompletedTaskSuccessAction {\n type: typeof DELETE_COMPLETED_TASK_SUCCESS;\n queue: string;\n taskId: string;\n}\n\ninterface DeleteCompletedTaskErrorAction {\n type: typeof DELETE_COMPLETED_TASK_ERROR;\n queue: string;\n taskId: string;\n error: string;\n}\n\ninterface BatchDeleteCompletedTasksBeginAction {\n type: typeof BATCH_DELETE_COMPLETED_TASKS_BEGIN;\n queue: string;\n taskIds: string[];\n}\n\ninterface BatchDeleteCompletedTasksSuccessAction {\n type: typeof BATCH_DELETE_COMPLETED_TASKS_SUCCESS;\n queue: string;\n payload: BatchDeleteTasksResponse;\n}\n\ninterface BatchDeleteCompletedTasksErrorAction {\n type: typeof BATCH_DELETE_COMPLETED_TASKS_ERROR;\n queue: string;\n taskIds: string[];\n error: string;\n}\n\ninterface DeleteAllCompletedTasksBeginAction {\n type: typeof DELETE_ALL_COMPLETED_TASKS_BEGIN;\n queue: string;\n}\n\ninterface DeleteAllCompletedTasksSuccessAction {\n type: typeof DELETE_ALL_COMPLETED_TASKS_SUCCESS;\n queue: string;\n deleted: number;\n}\n\ninterface DeleteAllCompletedTasksErrorAction {\n type: typeof DELETE_ALL_COMPLETED_TASKS_ERROR;\n queue: string;\n error: string;\n}\n\n// Union of all tasks related action types.\nexport type TasksActionTypes =\n | GetTaskInfoBeginAction\n | GetTaskInfoErrorAction\n | GetTaskInfoSuccessAction\n | ListActiveTasksBeginAction\n | ListActiveTasksSuccessAction\n | ListActiveTasksErrorAction\n | ListPendingTasksBeginAction\n | ListPendingTasksSuccessAction\n | ListPendingTasksErrorAction\n | ListScheduledTasksBeginAction\n | ListScheduledTasksSuccessAction\n | ListScheduledTasksErrorAction\n | ListRetryTasksBeginAction\n | ListRetryTasksSuccessAction\n | ListRetryTasksErrorAction\n | ListArchivedTasksBeginAction\n | ListArchivedTasksSuccessAction\n | ListArchivedTasksErrorAction\n | ListCompletedTasksBeginAction\n | ListCompletedTasksSuccessAction\n | ListCompletedTasksErrorAction\n | CancelActiveTaskBeginAction\n | CancelActiveTaskSuccessAction\n | CancelActiveTaskErrorAction\n | CancelAllActiveTasksBeginAction\n | CancelAllActiveTasksSuccessAction\n | CancelAllActiveTasksErrorAction\n | BatchCancelActiveTasksBeginAction\n | BatchCancelActiveTasksSuccessAction\n | BatchCancelActiveTasksErrorAction\n | DeletePendingTaskBeginAction\n | DeletePendingTaskSuccessAction\n | DeletePendingTaskErrorAction\n | BatchDeletePendingTasksBeginAction\n | BatchDeletePendingTasksSuccessAction\n | BatchDeletePendingTasksErrorAction\n | DeleteAllPendingTasksBeginAction\n | DeleteAllPendingTasksSuccessAction\n | DeleteAllPendingTasksErrorAction\n | ArchivePendingTaskBeginAction\n | ArchivePendingTaskSuccessAction\n | ArchivePendingTaskErrorAction\n | BatchArchivePendingTasksBeginAction\n | BatchArchivePendingTasksSuccessAction\n | BatchArchivePendingTasksErrorAction\n | ArchiveAllPendingTasksBeginAction\n | ArchiveAllPendingTasksSuccessAction\n | ArchiveAllPendingTasksErrorAction\n | RunScheduledTaskBeginAction\n | RunScheduledTaskSuccessAction\n | RunScheduledTaskErrorAction\n | RunRetryTaskBeginAction\n | RunRetryTaskSuccessAction\n | RunRetryTaskErrorAction\n | RunArchivedTaskBeginAction\n | RunArchivedTaskSuccessAction\n | RunArchivedTaskErrorAction\n | ArchiveScheduledTaskBeginAction\n | ArchiveScheduledTaskSuccessAction\n | ArchiveScheduledTaskErrorAction\n | ArchiveRetryTaskBeginAction\n | ArchiveRetryTaskSuccessAction\n | ArchiveRetryTaskErrorAction\n | DeleteScheduledTaskBeginAction\n | DeleteScheduledTaskSuccessAction\n | DeleteScheduledTaskErrorAction\n | BatchDeleteScheduledTasksBeginAction\n | BatchDeleteScheduledTasksSuccessAction\n | BatchDeleteScheduledTasksErrorAction\n | BatchRunScheduledTasksBeginAction\n | BatchRunScheduledTasksSuccessAction\n | BatchRunScheduledTasksErrorAction\n | RunAllScheduledTasksBeginAction\n | RunAllScheduledTasksSuccessAction\n | RunAllScheduledTasksErrorAction\n | BatchArchiveScheduledTasksBeginAction\n | BatchArchiveScheduledTasksSuccessAction\n | BatchArchiveScheduledTasksErrorAction\n | ArchiveAllScheduledTasksBeginAction\n | ArchiveAllScheduledTasksSuccessAction\n | ArchiveAllScheduledTasksErrorAction\n | DeleteAllScheduledTasksBeginAction\n | DeleteAllScheduledTasksSuccessAction\n | DeleteAllScheduledTasksErrorAction\n | DeleteRetryTaskBeginAction\n | DeleteRetryTaskSuccessAction\n | DeleteRetryTaskErrorAction\n | BatchDeleteRetryTasksBeginAction\n | BatchDeleteRetryTasksSuccessAction\n | BatchDeleteRetryTasksErrorAction\n | BatchRunRetryTasksBeginAction\n | BatchRunRetryTasksSuccessAction\n | BatchRunRetryTasksErrorAction\n | RunAllRetryTasksBeginAction\n | RunAllRetryTasksSuccessAction\n | RunAllRetryTasksErrorAction\n | BatchArchiveRetryTasksBeginAction\n | BatchArchiveRetryTasksSuccessAction\n | BatchArchiveRetryTasksErrorAction\n | ArchiveAllRetryTasksBeginAction\n | ArchiveAllRetryTasksSuccessAction\n | ArchiveAllRetryTasksErrorAction\n | DeleteAllRetryTasksBeginAction\n | DeleteAllRetryTasksSuccessAction\n | DeleteAllRetryTasksErrorAction\n | DeleteArchivedTaskBeginAction\n | DeleteArchivedTaskSuccessAction\n | DeleteArchivedTaskErrorAction\n | BatchDeleteArchivedTasksBeginAction\n | BatchDeleteArchivedTasksSuccessAction\n | BatchDeleteArchivedTasksErrorAction\n | BatchRunArchivedTasksBeginAction\n | BatchRunArchivedTasksSuccessAction\n | BatchRunArchivedTasksErrorAction\n | RunAllArchivedTasksBeginAction\n | RunAllArchivedTasksSuccessAction\n | RunAllArchivedTasksErrorAction\n | DeleteAllArchivedTasksBeginAction\n | DeleteAllArchivedTasksSuccessAction\n | DeleteAllArchivedTasksErrorAction\n | DeleteCompletedTaskBeginAction\n | DeleteCompletedTaskSuccessAction\n | DeleteCompletedTaskErrorAction\n | BatchDeleteCompletedTasksBeginAction\n | BatchDeleteCompletedTasksSuccessAction\n | BatchDeleteCompletedTasksErrorAction\n | DeleteAllCompletedTasksBeginAction\n | DeleteAllCompletedTasksSuccessAction\n | DeleteAllCompletedTasksErrorAction;\n\nexport function getTaskInfoAsync(qname: string, id: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: GET_TASK_INFO_BEGIN });\n try {\n const response = await getTaskInfo(qname, id);\n dispatch({\n type: GET_TASK_INFO_SUCCESS,\n payload: response,\n });\n } catch (error) {\n console.error(\"getTaskInfoAsync: \", toErrorStringWithHttpStatus(error));\n dispatch({\n type: GET_TASK_INFO_ERROR,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listActiveTasksAsync(\n qname: string,\n pageOpts?: PaginationOptions\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_ACTIVE_TASKS_BEGIN, queue: qname });\n try {\n const response = await listActiveTasks(qname, pageOpts);\n dispatch({\n type: LIST_ACTIVE_TASKS_SUCCESS,\n queue: qname,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listActiveTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_ACTIVE_TASKS_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listPendingTasksAsync(\n qname: string,\n pageOpts?: PaginationOptions\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_PENDING_TASKS_BEGIN, queue: qname });\n try {\n const response = await listPendingTasks(qname, pageOpts);\n dispatch({\n type: LIST_PENDING_TASKS_SUCCESS,\n queue: qname,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listPendingTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_PENDING_TASKS_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listScheduledTasksAsync(\n qname: string,\n pageOpts?: PaginationOptions\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_SCHEDULED_TASKS_BEGIN, queue: qname });\n try {\n const response = await listScheduledTasks(qname, pageOpts);\n dispatch({\n type: LIST_SCHEDULED_TASKS_SUCCESS,\n queue: qname,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_SCHEDULED_TASKS_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listRetryTasksAsync(\n qname: string,\n pageOpts?: PaginationOptions\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_RETRY_TASKS_BEGIN, queue: qname });\n try {\n const response = await listRetryTasks(qname, pageOpts);\n dispatch({\n type: LIST_RETRY_TASKS_SUCCESS,\n queue: qname,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_RETRY_TASKS_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listArchivedTasksAsync(\n qname: string,\n pageOpts?: PaginationOptions\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: LIST_ARCHIVED_TASKS_BEGIN, queue: qname });\n try {\n const response = await listArchivedTasks(qname, pageOpts);\n dispatch({\n type: LIST_ARCHIVED_TASKS_SUCCESS,\n queue: qname,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listArchivedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_ARCHIVED_TASKS_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function listCompletedTasksAsync(\n qname: string,\n pageOpts?: PaginationOptions\n) {\n return async (dispatch: Dispatch) => {\n try {\n dispatch({ type: LIST_COMPLETED_TASKS_BEGIN, queue: qname });\n const response = await listCompletedTasks(qname, pageOpts);\n dispatch({\n type: LIST_COMPLETED_TASKS_SUCCESS,\n queue: qname,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"listCompletedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: LIST_COMPLETED_TASKS_ERROR,\n queue: qname,\n error: toErrorString(error),\n });\n }\n };\n}\n\nexport function cancelActiveTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: CANCEL_ACTIVE_TASK_BEGIN, queue, taskId });\n try {\n await cancelActiveTask(queue, taskId);\n dispatch({ type: CANCEL_ACTIVE_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"cancelActiveTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: CANCEL_ACTIVE_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function cancelAllActiveTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: CANCEL_ALL_ACTIVE_TASKS_BEGIN, queue });\n try {\n await cancelAllActiveTasks(queue);\n dispatch({ type: CANCEL_ALL_ACTIVE_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"cancelAllActiveTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: CANCEL_ALL_ACTIVE_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function batchCancelActiveTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_CANCEL_ACTIVE_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchCancelActiveTasks(queue, taskIds);\n dispatch({\n type: BATCH_CANCEL_ACTIVE_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchCancelActiveTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_CANCEL_ACTIVE_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function runScheduledTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RUN_SCHEDULED_TASK_BEGIN, queue, taskId });\n try {\n await runScheduledTask(queue, taskId);\n dispatch({ type: RUN_SCHEDULED_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"runScheduledTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: RUN_SCHEDULED_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function runRetryTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RUN_RETRY_TASK_BEGIN, queue, taskId });\n try {\n await runRetryTask(queue, taskId);\n dispatch({ type: RUN_RETRY_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\"runRetryTaskAsync: \", toErrorStringWithHttpStatus(error));\n dispatch({\n type: RUN_RETRY_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function archivePendingTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: ARCHIVE_PENDING_TASK_BEGIN, queue, taskId });\n try {\n await archivePendingTask(queue, taskId);\n dispatch({ type: ARCHIVE_PENDING_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"archivePendingTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: ARCHIVE_PENDING_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function archiveScheduledTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: ARCHIVE_SCHEDULED_TASK_BEGIN, queue, taskId });\n try {\n await archiveScheduledTask(queue, taskId);\n dispatch({ type: ARCHIVE_SCHEDULED_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"archiveScheduledTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: ARCHIVE_SCHEDULED_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function archiveRetryTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: ARCHIVE_RETRY_TASK_BEGIN, queue, taskId });\n try {\n await archiveRetryTask(queue, taskId);\n dispatch({ type: ARCHIVE_RETRY_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"archiveRetryTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: ARCHIVE_RETRY_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function runArchivedTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RUN_ARCHIVED_TASK_BEGIN, queue, taskId });\n try {\n await runArchivedTask(queue, taskId);\n dispatch({ type: RUN_ARCHIVED_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"runArchivedTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: RUN_ARCHIVED_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function deletePendingTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_PENDING_TASK_BEGIN, queue, taskId });\n try {\n await deletePendingTask(queue, taskId);\n dispatch({ type: DELETE_PENDING_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"deletePendingTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_PENDING_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function batchDeletePendingTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_DELETE_PENDING_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchDeletePendingTasks(queue, taskIds);\n dispatch({\n type: BATCH_DELETE_PENDING_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchDeletePendingTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_DELETE_PENDING_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function deleteScheduledTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_SCHEDULED_TASK_BEGIN, queue, taskId });\n try {\n await deleteScheduledTask(queue, taskId);\n dispatch({ type: DELETE_SCHEDULED_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"deleteScheduledTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_SCHEDULED_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function batchDeleteScheduledTasksAsync(\n queue: string,\n taskIds: string[]\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_DELETE_SCHEDULED_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchDeleteScheduledTasks(queue, taskIds);\n dispatch({\n type: BATCH_DELETE_SCHEDULED_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchDeleteScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_DELETE_SCHEDULED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function batchRunScheduledTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_RUN_SCHEDULED_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchRunScheduledTasks(queue, taskIds);\n dispatch({\n type: BATCH_RUN_SCHEDULED_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchRunScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_RUN_SCHEDULED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function batchArchiveScheduledTasksAsync(\n queue: string,\n taskIds: string[]\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_ARCHIVE_SCHEDULED_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchArchiveScheduledTasks(queue, taskIds);\n dispatch({\n type: BATCH_ARCHIVE_SCHEDULED_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchArchiveScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_ARCHIVE_SCHEDULED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function batchArchivePendingTasksAsync(\n queue: string,\n taskIds: string[]\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_ARCHIVE_PENDING_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchArchivePendingTasks(queue, taskIds);\n dispatch({\n type: BATCH_ARCHIVE_PENDING_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchArchivePendingTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_ARCHIVE_PENDING_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function archiveAllPendingTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: ARCHIVE_ALL_PENDING_TASKS_BEGIN, queue });\n try {\n await archiveAllPendingTasks(queue);\n dispatch({ type: ARCHIVE_ALL_PENDING_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"archiveAllPendingTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: ARCHIVE_ALL_PENDING_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function deleteAllPendingTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_ALL_PENDING_TASKS_BEGIN, queue });\n try {\n const response = await deleteAllPendingTasks(queue);\n dispatch({\n type: DELETE_ALL_PENDING_TASKS_SUCCESS,\n deleted: response.deleted,\n queue,\n });\n } catch (error) {\n console.error(\n \"deleteAllPendingTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_ALL_PENDING_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function deleteAllScheduledTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_ALL_SCHEDULED_TASKS_BEGIN, queue });\n try {\n const response = await deleteAllScheduledTasks(queue);\n dispatch({\n type: DELETE_ALL_SCHEDULED_TASKS_SUCCESS,\n deleted: response.deleted,\n queue,\n });\n } catch (error) {\n console.error(\n \"deleteAllScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_ALL_SCHEDULED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function runAllScheduledTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RUN_ALL_SCHEDULED_TASKS_BEGIN, queue });\n try {\n await runAllScheduledTasks(queue);\n dispatch({ type: RUN_ALL_SCHEDULED_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"runAllScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: RUN_ALL_SCHEDULED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function archiveAllScheduledTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: ARCHIVE_ALL_SCHEDULED_TASKS_BEGIN, queue });\n try {\n await archiveAllScheduledTasks(queue);\n dispatch({ type: ARCHIVE_ALL_SCHEDULED_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"archiveAllScheduledTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: ARCHIVE_ALL_SCHEDULED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function deleteRetryTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_RETRY_TASK_BEGIN, queue, taskId });\n try {\n await deleteRetryTask(queue, taskId);\n dispatch({ type: DELETE_RETRY_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"deleteRetryTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_RETRY_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function batchDeleteRetryTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_DELETE_RETRY_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchDeleteRetryTasks(queue, taskIds);\n dispatch({\n type: BATCH_DELETE_RETRY_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchDeleteRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_DELETE_RETRY_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function batchRunRetryTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_RUN_RETRY_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchRunRetryTasks(queue, taskIds);\n dispatch({\n type: BATCH_RUN_RETRY_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchRunRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_RUN_RETRY_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function batchArchiveRetryTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_ARCHIVE_RETRY_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchArchiveRetryTasks(queue, taskIds);\n dispatch({\n type: BATCH_ARCHIVE_RETRY_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchArchiveRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_ARCHIVE_RETRY_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function deleteAllRetryTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_ALL_RETRY_TASKS_BEGIN, queue });\n try {\n const response = await deleteAllRetryTasks(queue);\n dispatch({\n type: DELETE_ALL_RETRY_TASKS_SUCCESS,\n deleted: response.deleted,\n queue,\n });\n } catch (error) {\n console.error(\n \"deleteAllRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_ALL_RETRY_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function runAllRetryTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RUN_ALL_RETRY_TASKS_BEGIN, queue });\n try {\n await runAllRetryTasks(queue);\n dispatch({ type: RUN_ALL_RETRY_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"runAllRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: RUN_ALL_RETRY_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function archiveAllRetryTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: ARCHIVE_ALL_RETRY_TASKS_BEGIN, queue });\n try {\n await archiveAllRetryTasks(queue);\n dispatch({ type: ARCHIVE_ALL_RETRY_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"archiveAllRetryTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: ARCHIVE_ALL_RETRY_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function deleteArchivedTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_ARCHIVED_TASK_BEGIN, queue, taskId });\n try {\n await deleteArchivedTask(queue, taskId);\n dispatch({ type: DELETE_ARCHIVED_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"deleteArchivedTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_ARCHIVED_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function batchDeleteArchivedTasksAsync(\n queue: string,\n taskIds: string[]\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_DELETE_ARCHIVED_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchDeleteArchivedTasks(queue, taskIds);\n dispatch({\n type: BATCH_DELETE_ARCHIVED_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchDeleteArchivedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_DELETE_ARCHIVED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function batchRunArchivedTasksAsync(queue: string, taskIds: string[]) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_RUN_ARCHIVED_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchRunArchivedTasks(queue, taskIds);\n dispatch({\n type: BATCH_RUN_ARCHIVED_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchRunArchivedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_RUN_ARCHIVED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function deleteAllArchivedTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_ALL_ARCHIVED_TASKS_BEGIN, queue });\n try {\n const response = await deleteAllArchivedTasks(queue);\n dispatch({\n type: DELETE_ALL_ARCHIVED_TASKS_SUCCESS,\n deleted: response.deleted,\n queue,\n });\n } catch (error) {\n console.error(\n \"deleteAllArchivedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_ALL_ARCHIVED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function runAllArchivedTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: RUN_ALL_ARCHIVED_TASKS_BEGIN, queue });\n try {\n await runAllArchivedTasks(queue);\n dispatch({ type: RUN_ALL_ARCHIVED_TASKS_SUCCESS, queue });\n } catch (error) {\n console.error(\n \"runAllArchivedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: RUN_ALL_ARCHIVED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n\nexport function deleteCompletedTaskAsync(queue: string, taskId: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_COMPLETED_TASK_BEGIN, queue, taskId });\n try {\n await deleteCompletedTask(queue, taskId);\n dispatch({ type: DELETE_COMPLETED_TASK_SUCCESS, queue, taskId });\n } catch (error) {\n console.error(\n \"deleteCompletedTaskAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_COMPLETED_TASK_ERROR,\n error: toErrorString(error),\n queue,\n taskId,\n });\n }\n };\n}\n\nexport function batchDeleteCompletedTasksAsync(\n queue: string,\n taskIds: string[]\n) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: BATCH_DELETE_COMPLETED_TASKS_BEGIN, queue, taskIds });\n try {\n const response = await batchDeleteCompletedTasks(queue, taskIds);\n dispatch({\n type: BATCH_DELETE_COMPLETED_TASKS_SUCCESS,\n queue: queue,\n payload: response,\n });\n } catch (error) {\n console.error(\n \"batchDeleteCompletedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: BATCH_DELETE_COMPLETED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n taskIds,\n });\n }\n };\n}\n\nexport function deleteAllCompletedTasksAsync(queue: string) {\n return async (dispatch: Dispatch) => {\n dispatch({ type: DELETE_ALL_COMPLETED_TASKS_BEGIN, queue });\n try {\n const response = await deleteAllCompletedTasks(queue);\n dispatch({\n type: DELETE_ALL_COMPLETED_TASKS_SUCCESS,\n deleted: response.deleted,\n queue,\n });\n } catch (error) {\n console.error(\n \"deleteAllCompletedTasksAsync: \",\n toErrorStringWithHttpStatus(error)\n );\n dispatch({\n type: DELETE_ALL_COMPLETED_TASKS_ERROR,\n error: toErrorString(error),\n queue,\n });\n }\n };\n}\n","import React, { useState } from \"react\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Menu from \"@material-ui/core/Menu\";\nimport MenuItem from \"@material-ui/core/MenuItem\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\n\nconst useStyles = makeStyles((theme) => ({\n actionsContainer: {\n display: \"flex\",\n padding: \"4px\",\n },\n moreIcon: {\n marginRight: \"8px\",\n },\n iconGroup: {\n paddingLeft: theme.spacing(1),\n borderLeft: `1px solid ${theme.palette.grey[100]}`,\n },\n}));\n\ninterface MenuItemAction {\n label: string;\n onClick: () => void;\n disabled: boolean;\n}\n\ninterface IconButtonAction {\n icon: React.ReactElement;\n tooltip: string;\n onClick: () => void;\n disabled: boolean;\n}\n\ninterface Props {\n menuItemActions: MenuItemAction[];\n iconButtonActions: IconButtonAction[];\n showIconButtons: boolean;\n}\n\nexport default function TableActions(props: Props) {\n const classes = useStyles();\n const [menuAnchor, setMenuAnchor] = useState(null);\n\n const handleMenuClick = (event: React.MouseEvent) => {\n setMenuAnchor(event.currentTarget);\n };\n\n const closeMenu = () => setMenuAnchor(null);\n\n return (\n
    \n \n \n \n \n \n \n {props.menuItemActions.map((action) => (\n {\n action.onClick();\n closeMenu();\n }}\n disabled={action.disabled}\n >\n {action.label}\n \n ))}\n \n {props.showIconButtons && (\n
    \n {props.iconButtonActions.map((action) => (\n \n \n {action.icon}\n \n \n ))}\n
    \n )}\n
    \n );\n}\n","import Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Paper from \"@material-ui/core/Paper\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport CancelIcon from \"@material-ui/icons/Cancel\";\nimport FileCopyOutlinedIcon from \"@material-ui/icons/FileCopyOutlined\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport React, { useCallback, useState } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport {\n batchCancelActiveTasksAsync,\n cancelActiveTaskAsync,\n cancelAllActiveTasksAsync,\n listActiveTasksAsync,\n} from \"../actions/tasksActions\";\nimport { usePolling } from \"../hooks\";\nimport { taskDetailsPath } from \"../paths\";\nimport { ActiveTaskExtended } from \"../reducers/tasksReducer\";\nimport { AppState } from \"../store\";\nimport { TableColumn } from \"../types/table\";\nimport { durationBefore, prettifyPayload, timeAgo, uuidPrefix } from \"../utils\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport TableActions from \"./TableActions\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n alert: {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n },\n pagination: {\n border: \"none\",\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.tasks.activeTasks.loading,\n error: state.tasks.activeTasks.error,\n tasks: state.tasks.activeTasks.data,\n batchActionPending: state.tasks.activeTasks.batchActionPending,\n allActionPending: state.tasks.activeTasks.allActionPending,\n pollInterval: state.settings.pollInterval,\n pageSize: state.settings.taskRowsPerPage,\n };\n}\n\nconst mapDispatchToProps = {\n listActiveTasksAsync,\n cancelActiveTaskAsync,\n batchCancelActiveTasksAsync,\n cancelAllActiveTasksAsync,\n taskRowsPerPageChange,\n};\n\nconst columns: TableColumn[] = [\n { key: \"id\", label: \"ID\", align: \"left\" },\n { key: \"type\", label: \"Type\", align: \"left\" },\n { key: \"payload\", label: \"Payload\", align: \"left\" },\n { key: \"status\", label: \"Status\", align: \"left\" },\n { key: \"start-time\", label: \"Started\", align: \"left\" },\n { key: \"deadline\", label: \"Deadline\", align: \"left\" },\n { key: \"actions\", label: \"Actions\", align: \"center\" },\n];\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n queue: string; // name of the queue\n}\n\nfunction ActiveTasksTable(props: Props & ReduxProps) {\n const { pollInterval, listActiveTasksAsync, queue, pageSize } = props;\n const classes = useStyles();\n const [page, setPage] = useState(0);\n const [selectedIds, setSelectedIds] = useState([]);\n const [activeTaskId, setActiveTaskId] = useState(\"\");\n\n const handlePageChange = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleRowsPerPageChange = (\n event: React.ChangeEvent\n ) => {\n props.taskRowsPerPageChange(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n const handleSelectAllClick = (event: React.ChangeEvent) => {\n if (event.target.checked) {\n const newSelected = props.tasks.map((t) => t.id);\n setSelectedIds(newSelected);\n } else {\n setSelectedIds([]);\n }\n };\n\n const handleCancelAllClick = () => {\n props.cancelAllActiveTasksAsync(queue);\n };\n\n const handleBatchCancelClick = () => {\n props\n .batchCancelActiveTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const fetchData = useCallback(() => {\n const pageOpts = { page: page + 1, size: pageSize };\n listActiveTasksAsync(queue, pageOpts);\n }, [page, pageSize, queue, listActiveTasksAsync]);\n\n usePolling(fetchData, pollInterval);\n\n if (props.error.length > 0) {\n return (\n \n Error\n {props.error}\n \n );\n }\n\n if (props.tasks.length === 0) {\n return (\n \n Info\n No active tasks at this time.\n \n );\n }\n\n const rowCount = props.tasks.length;\n const numSelected = selectedIds.length;\n return (\n
    \n {!window.READ_ONLY && (\n 0}\n iconButtonActions={[\n {\n tooltip: \"Cancel\",\n icon: ,\n onClick: handleBatchCancelClick,\n disabled: props.batchActionPending,\n },\n ]}\n menuItemActions={[\n {\n label: \"Cancel All\",\n onClick: handleCancelAllClick,\n disabled: props.allActionPending,\n },\n ]}\n />\n )}\n \n \n \n \n {!window.READ_ONLY && (\n \n \n 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={handleSelectAllClick}\n inputProps={{\n \"aria-label\": \"select all tasks shown in the table\",\n }}\n />\n \n \n )}\n {columns\n .filter((col) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || col.key !== \"actions\";\n })\n .map((col) => (\n \n {col.label}\n \n ))}\n \n \n \n {/* TODO: loading and empty state */}\n {props.tasks.map((task) => (\n {\n if (checked) {\n setSelectedIds(selectedIds.concat(task.id));\n } else {\n setSelectedIds(selectedIds.filter((id) => id !== task.id));\n }\n }}\n onCancelClick={() => {\n props.cancelActiveTaskAsync(queue, task.id);\n }}\n onActionCellEnter={() => setActiveTaskId(task.id)}\n onActionCellLeave={() => setActiveTaskId(\"\")}\n showActions={activeTaskId === task.id}\n />\n ))}\n \n \n \n \n \n \n \n \n
    \n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n root: {\n cursor: \"pointer\",\n \"&:hover\": {\n boxShadow: theme.shadows[2],\n },\n \"&:hover $copyButton\": {\n display: \"inline-block\",\n },\n \"&:hover .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\n },\n idCell: {\n width: \"200px\",\n },\n copyButton: {\n display: \"none\",\n },\n IdGroup: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\ninterface RowProps {\n task: ActiveTaskExtended;\n isSelected: boolean;\n onSelectChange: (checked: boolean) => void;\n onCancelClick: () => void;\n showActions: boolean;\n onActionCellEnter: () => void;\n onActionCellLeave: () => void;\n}\n\nfunction Row(props: RowProps) {\n const { task } = props;\n const classes = useRowStyles();\n const history = useHistory();\n return (\n history.push(taskDetailsPath(task.queue, task.id))}\n >\n {!window.READ_ONLY && (\n e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n )}\n \n
    \n {uuidPrefix(task.id)}\n \n {\n e.stopPropagation();\n navigator.clipboard.writeText(task.id);\n }}\n size=\"small\"\n className={classes.copyButton}\n >\n \n \n \n
    \n
    \n {task.type}\n \n \n {prettifyPayload(task.payload)}\n \n \n \n {task.canceling\n ? \"Canceling\"\n : task.is_orphaned\n ? \"Orphaned\"\n : \"Running\"}\n \n \n {task.is_orphaned\n ? \"-\"\n : task.start_time === \"-\"\n ? \"just now\"\n : timeAgo(task.start_time)}\n \n \n {task.deadline === \"-\" ? \"-\" : durationBefore(task.deadline)}\n \n {!window.READ_ONLY && (\n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n )}\n \n );\n}\n\nexport default connector(ActiveTasksTable);\n","import Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Paper from \"@material-ui/core/Paper\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport ArchiveIcon from \"@material-ui/icons/Archive\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport FileCopyOutlinedIcon from \"@material-ui/icons/FileCopyOutlined\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport React, { useCallback, useState } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport {\n archiveAllPendingTasksAsync,\n archivePendingTaskAsync,\n batchArchivePendingTasksAsync,\n batchDeletePendingTasksAsync,\n deleteAllPendingTasksAsync,\n deletePendingTaskAsync,\n listPendingTasksAsync,\n} from \"../actions/tasksActions\";\nimport { usePolling } from \"../hooks\";\nimport { taskDetailsPath } from \"../paths\";\nimport { TaskInfoExtended } from \"../reducers/tasksReducer\";\nimport { AppState } from \"../store\";\nimport { TableColumn } from \"../types/table\";\nimport { prettifyPayload, uuidPrefix } from \"../utils\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport TableActions from \"./TableActions\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n alert: {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n },\n pagination: {\n border: \"none\",\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.tasks.pendingTasks.loading,\n error: state.tasks.pendingTasks.error,\n tasks: state.tasks.pendingTasks.data,\n batchActionPending: state.tasks.pendingTasks.batchActionPending,\n allActionPending: state.tasks.pendingTasks.allActionPending,\n pollInterval: state.settings.pollInterval,\n pageSize: state.settings.taskRowsPerPage,\n };\n}\n\nconst mapDispatchToProps = {\n listPendingTasksAsync,\n deletePendingTaskAsync,\n batchDeletePendingTasksAsync,\n deleteAllPendingTasksAsync,\n archivePendingTaskAsync,\n batchArchivePendingTasksAsync,\n archiveAllPendingTasksAsync,\n taskRowsPerPageChange,\n};\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n queue: string;\n totalTaskCount: number; // total number of pending tasks\n}\n\nfunction PendingTasksTable(props: Props & ReduxProps) {\n const { pollInterval, listPendingTasksAsync, queue, pageSize } = props;\n const classes = useStyles();\n const [page, setPage] = useState(0);\n const [selectedIds, setSelectedIds] = useState([]);\n const [activeTaskId, setActiveTaskId] = useState(\"\");\n\n const handlePageChange = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleRowsPerPageChange = (\n event: React.ChangeEvent\n ) => {\n props.taskRowsPerPageChange(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n const handleSelectAllClick = (event: React.ChangeEvent) => {\n if (event.target.checked) {\n const newSelected = props.tasks.map((t) => t.id);\n setSelectedIds(newSelected);\n } else {\n setSelectedIds([]);\n }\n };\n\n const handleDeleteAllClick = () => {\n props.deleteAllPendingTasksAsync(queue);\n };\n\n const handleArchiveAllClick = () => {\n props.archiveAllPendingTasksAsync(queue);\n };\n\n const handleBatchDeleteClick = () => {\n props\n .batchDeletePendingTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const handleBatchArchiveClick = () => {\n props\n .batchArchivePendingTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const fetchData = useCallback(() => {\n const pageOpts = { page: page + 1, size: pageSize };\n listPendingTasksAsync(queue, pageOpts);\n }, [page, pageSize, queue, listPendingTasksAsync]);\n\n usePolling(fetchData, pollInterval);\n\n if (props.error.length > 0) {\n return (\n \n Error\n {props.error}\n \n );\n }\n if (props.tasks.length === 0) {\n return (\n \n Info\n No pending tasks at this time.\n \n );\n }\n\n const columns: TableColumn[] = [\n { key: \"id\", label: \"ID\", align: \"left\" },\n { key: \"type\", label: \"Type\", align: \"left\" },\n { key: \"paylod\", label: \"Payload\", align: \"left\" },\n { key: \"retried\", label: \"Retried\", align: \"right\" },\n { key: \"max_retry\", label: \"Max Retry\", align: \"right\" },\n { key: \"actions\", label: \"Actions\", align: \"center\" },\n ];\n\n const rowCount = props.tasks.length;\n const numSelected = selectedIds.length;\n return (\n
    \n {!window.READ_ONLY && (\n 0}\n iconButtonActions={[\n {\n tooltip: \"Delete\",\n icon: ,\n onClick: handleBatchDeleteClick,\n disabled: props.batchActionPending,\n },\n {\n tooltip: \"Archive\",\n icon: ,\n onClick: handleBatchArchiveClick,\n disabled: props.batchActionPending,\n },\n ]}\n menuItemActions={[\n {\n label: \"Delete All\",\n onClick: handleDeleteAllClick,\n disabled: props.allActionPending,\n },\n {\n label: \"Archive All\",\n onClick: handleArchiveAllClick,\n disabled: props.allActionPending,\n },\n ]}\n />\n )}\n \n \n \n \n {!window.READ_ONLY && (\n \n \n 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={handleSelectAllClick}\n inputProps={{\n \"aria-label\": \"select all tasks shown in the table\",\n }}\n />\n \n \n )}\n {columns\n .filter((col) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || col.key !== \"actions\";\n })\n .map((col) => (\n \n {col.label}\n \n ))}\n \n \n \n {props.tasks.map((task) => (\n {\n if (checked) {\n setSelectedIds(selectedIds.concat(task.id));\n } else {\n setSelectedIds(selectedIds.filter((id) => id !== task.id));\n }\n }}\n allActionPending={props.allActionPending}\n onDeleteClick={() =>\n props.deletePendingTaskAsync(queue, task.id)\n }\n onArchiveClick={() => {\n props.archivePendingTaskAsync(queue, task.id);\n }}\n onActionCellEnter={() => setActiveTaskId(task.id)}\n onActionCellLeave={() => setActiveTaskId(\"\")}\n showActions={activeTaskId === task.id}\n />\n ))}\n \n \n \n \n \n \n \n \n
    \n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n root: {\n cursor: \"pointer\",\n \"&:hover\": {\n boxShadow: theme.shadows[2],\n },\n \"&:hover $copyButton\": {\n display: \"inline-block\",\n },\n \"&:hover .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\n },\n\n actionCell: {\n width: \"96px\",\n },\n actionButton: {\n marginLeft: 3,\n marginRight: 3,\n },\n idCell: {\n width: \"200px\",\n },\n copyButton: {\n display: \"none\",\n },\n IdGroup: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\ninterface RowProps {\n task: TaskInfoExtended;\n isSelected: boolean;\n onSelectChange: (checked: boolean) => void;\n onDeleteClick: () => void;\n onArchiveClick: () => void;\n allActionPending: boolean;\n showActions: boolean;\n onActionCellEnter: () => void;\n onActionCellLeave: () => void;\n}\n\nfunction Row(props: RowProps) {\n const { task } = props;\n const classes = useRowStyles();\n const history = useHistory();\n return (\n history.push(taskDetailsPath(task.queue, task.id))}\n >\n {!window.READ_ONLY && (\n e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n )}\n \n
    \n {uuidPrefix(task.id)}\n \n {\n e.stopPropagation();\n navigator.clipboard.writeText(task.id);\n }}\n size=\"small\"\n className={classes.copyButton}\n >\n \n \n \n
    \n
    \n {task.type}\n \n \n {prettifyPayload(task.payload)}\n \n \n {task.retried}\n {task.max_retry}\n {!window.READ_ONLY && (\n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n )}\n \n );\n}\n\nexport default connector(PendingTasksTable);\n","import React, { useState, useCallback } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport PlayArrowIcon from \"@material-ui/icons/PlayArrow\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport ArchiveIcon from \"@material-ui/icons/Archive\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport {\n batchDeleteScheduledTasksAsync,\n batchRunScheduledTasksAsync,\n batchArchiveScheduledTasksAsync,\n deleteAllScheduledTasksAsync,\n runAllScheduledTasksAsync,\n archiveAllScheduledTasksAsync,\n listScheduledTasksAsync,\n deleteScheduledTaskAsync,\n runScheduledTaskAsync,\n archiveScheduledTaskAsync,\n} from \"../actions/tasksActions\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport { AppState } from \"../store\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\nimport TableActions from \"./TableActions\";\nimport { durationBefore, uuidPrefix, prettifyPayload } from \"../utils\";\nimport { usePolling } from \"../hooks\";\nimport { TaskInfoExtended } from \"../reducers/tasksReducer\";\nimport { TableColumn } from \"../types/table\";\nimport { taskDetailsPath } from \"../paths\";\nimport FileCopyOutlinedIcon from \"@material-ui/icons/FileCopyOutlined\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n alert: {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n },\n pagination: {\n border: \"none\",\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.tasks.scheduledTasks.loading,\n error: state.tasks.scheduledTasks.error,\n tasks: state.tasks.scheduledTasks.data,\n batchActionPending: state.tasks.scheduledTasks.batchActionPending,\n allActionPending: state.tasks.scheduledTasks.allActionPending,\n pollInterval: state.settings.pollInterval,\n pageSize: state.settings.taskRowsPerPage,\n };\n}\n\nconst mapDispatchToProps = {\n listScheduledTasksAsync,\n batchDeleteScheduledTasksAsync,\n batchRunScheduledTasksAsync,\n batchArchiveScheduledTasksAsync,\n deleteAllScheduledTasksAsync,\n runAllScheduledTasksAsync,\n archiveAllScheduledTasksAsync,\n deleteScheduledTaskAsync,\n runScheduledTaskAsync,\n archiveScheduledTaskAsync,\n taskRowsPerPageChange,\n};\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n queue: string; // name of the queue.\n totalTaskCount: number; // totoal number of scheduled tasks.\n}\n\nfunction ScheduledTasksTable(props: Props & ReduxProps) {\n const { pollInterval, listScheduledTasksAsync, queue, pageSize } = props;\n const classes = useStyles();\n const [page, setPage] = useState(0);\n const [selectedIds, setSelectedIds] = useState([]);\n const [activeTaskId, setActiveTaskId] = useState(\"\");\n\n const handlePageChange = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleRowsPerPageChange = (\n event: React.ChangeEvent\n ) => {\n props.taskRowsPerPageChange(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n const handleSelectAllClick = (event: React.ChangeEvent) => {\n if (event.target.checked) {\n const newSelected = props.tasks.map((t) => t.id);\n setSelectedIds(newSelected);\n } else {\n setSelectedIds([]);\n }\n };\n\n const handleRunAllClick = () => {\n props.runAllScheduledTasksAsync(queue);\n };\n\n const handleDeleteAllClick = () => {\n props.deleteAllScheduledTasksAsync(queue);\n };\n\n const handleArchiveAllClick = () => {\n props.archiveAllScheduledTasksAsync(queue);\n };\n\n const handleBatchRunClick = () => {\n props\n .batchRunScheduledTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const handleBatchDeleteClick = () => {\n props\n .batchDeleteScheduledTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const handleBatchArchiveClick = () => {\n props\n .batchArchiveScheduledTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const fetchData = useCallback(() => {\n const pageOpts = { page: page + 1, size: pageSize };\n listScheduledTasksAsync(queue, pageOpts);\n }, [page, pageSize, queue, listScheduledTasksAsync]);\n\n usePolling(fetchData, pollInterval);\n\n if (props.error.length > 0) {\n return (\n \n Error\n {props.error}\n \n );\n }\n if (props.tasks.length === 0) {\n return (\n \n Info\n No scheduled tasks at this time.\n \n );\n }\n\n const columns: TableColumn[] = [\n { key: \"id\", label: \"ID\", align: \"left\" },\n { key: \"type\", label: \"Type\", align: \"left\" },\n { key: \"payload\", label: \"Payload\", align: \"left\" },\n { key: \"process_in\", label: \"Process In\", align: \"left\" },\n { key: \"actions\", label: \"Actions\", align: \"center\" },\n ];\n\n const rowCount = props.tasks.length;\n const numSelected = selectedIds.length;\n return (\n
    \n {!window.READ_ONLY && (\n 0}\n iconButtonActions={[\n {\n tooltip: \"Delete\",\n icon: ,\n onClick: handleBatchDeleteClick,\n disabled: props.batchActionPending,\n },\n {\n tooltip: \"Archive\",\n icon: ,\n onClick: handleBatchArchiveClick,\n disabled: props.batchActionPending,\n },\n {\n tooltip: \"Run\",\n icon: ,\n onClick: handleBatchRunClick,\n disabled: props.batchActionPending,\n },\n ]}\n menuItemActions={[\n {\n label: \"Delete All\",\n onClick: handleDeleteAllClick,\n disabled: props.allActionPending,\n },\n {\n label: \"Archive All\",\n onClick: handleArchiveAllClick,\n disabled: props.allActionPending,\n },\n {\n label: \"Run All\",\n onClick: handleRunAllClick,\n disabled: props.allActionPending,\n },\n ]}\n />\n )}\n \n \n \n \n {!window.READ_ONLY && (\n \n \n 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={handleSelectAllClick}\n inputProps={{\n \"aria-label\": \"select all tasks shown in the table\",\n }}\n />\n \n \n )}\n {columns\n .filter((col) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || col.key !== \"actions\";\n })\n .map((col) => (\n \n {col.label}\n \n ))}\n \n \n \n {props.tasks.map((task) => (\n {\n if (checked) {\n setSelectedIds(selectedIds.concat(task.id));\n } else {\n setSelectedIds(selectedIds.filter((id) => id !== task.id));\n }\n }}\n onRunClick={() => {\n props.runScheduledTaskAsync(queue, task.id);\n }}\n onDeleteClick={() => {\n props.deleteScheduledTaskAsync(queue, task.id);\n }}\n onArchiveClick={() => {\n props.archiveScheduledTaskAsync(queue, task.id);\n }}\n onActionCellEnter={() => setActiveTaskId(task.id)}\n onActionCellLeave={() => setActiveTaskId(\"\")}\n showActions={activeTaskId === task.id}\n />\n ))}\n \n \n \n \n \n \n \n \n
    \n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n root: {\n cursor: \"pointer\",\n \"&:hover\": {\n boxShadow: theme.shadows[2],\n },\n \"&:hover $copyButton\": {\n display: \"inline-block\",\n },\n \"&:hover .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\n },\n actionCell: {\n width: \"140px\",\n },\n actionButton: {\n marginLeft: 3,\n marginRight: 3,\n },\n idCell: {\n width: \"200px\",\n },\n copyButton: {\n display: \"none\",\n },\n IdGroup: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\ninterface RowProps {\n task: TaskInfoExtended;\n isSelected: boolean;\n onSelectChange: (checked: boolean) => void;\n onRunClick: () => void;\n onDeleteClick: () => void;\n onArchiveClick: () => void;\n allActionPending: boolean;\n showActions: boolean;\n onActionCellEnter: () => void;\n onActionCellLeave: () => void;\n}\n\nfunction Row(props: RowProps) {\n const { task } = props;\n const classes = useRowStyles();\n const history = useHistory();\n return (\n history.push(taskDetailsPath(task.queue, task.id))}\n >\n {!window.READ_ONLY && (\n e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n )}\n \n
    \n {uuidPrefix(task.id)}\n \n {\n e.stopPropagation();\n navigator.clipboard.writeText(task.id);\n }}\n size=\"small\"\n className={classes.copyButton}\n >\n \n \n \n
    \n
    \n {task.type}\n \n \n {prettifyPayload(task.payload)}\n \n \n {durationBefore(task.next_process_at)}\n {!window.READ_ONLY && (\n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n )}\n \n );\n}\nexport default connector(ScheduledTasksTable);\n","import Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Paper from \"@material-ui/core/Paper\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport ArchiveIcon from \"@material-ui/icons/Archive\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport FileCopyOutlinedIcon from \"@material-ui/icons/FileCopyOutlined\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport PlayArrowIcon from \"@material-ui/icons/PlayArrow\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport React, { useCallback, useState } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport {\n archiveAllRetryTasksAsync,\n archiveRetryTaskAsync,\n batchArchiveRetryTasksAsync,\n batchDeleteRetryTasksAsync,\n batchRunRetryTasksAsync,\n deleteAllRetryTasksAsync,\n deleteRetryTaskAsync,\n listRetryTasksAsync,\n runAllRetryTasksAsync,\n runRetryTaskAsync,\n} from \"../actions/tasksActions\";\nimport { usePolling } from \"../hooks\";\nimport { taskDetailsPath } from \"../paths\";\nimport { TaskInfoExtended } from \"../reducers/tasksReducer\";\nimport { AppState } from \"../store\";\nimport { TableColumn } from \"../types/table\";\nimport { durationBefore, prettifyPayload, uuidPrefix } from \"../utils\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport TableActions from \"./TableActions\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n alert: {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n },\n pagination: {\n border: \"none\",\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.tasks.retryTasks.loading,\n error: state.tasks.retryTasks.error,\n tasks: state.tasks.retryTasks.data,\n batchActionPending: state.tasks.retryTasks.batchActionPending,\n allActionPending: state.tasks.retryTasks.allActionPending,\n pollInterval: state.settings.pollInterval,\n pageSize: state.settings.taskRowsPerPage,\n };\n}\n\nconst mapDispatchToProps = {\n batchDeleteRetryTasksAsync,\n batchRunRetryTasksAsync,\n batchArchiveRetryTasksAsync,\n deleteAllRetryTasksAsync,\n runAllRetryTasksAsync,\n archiveAllRetryTasksAsync,\n listRetryTasksAsync,\n deleteRetryTaskAsync,\n runRetryTaskAsync,\n archiveRetryTaskAsync,\n taskRowsPerPageChange,\n};\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n queue: string; // name of the queue.\n totalTaskCount: number; // totoal number of scheduled tasks.\n}\n\nfunction RetryTasksTable(props: Props & ReduxProps) {\n const { pollInterval, listRetryTasksAsync, queue, pageSize } = props;\n const classes = useStyles();\n const [page, setPage] = useState(0);\n const [selectedIds, setSelectedIds] = useState([]);\n const [activeTaskId, setActiveTaskId] = useState(\"\");\n\n const handlePageChange = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleRowsPerPageChange = (\n event: React.ChangeEvent\n ) => {\n props.taskRowsPerPageChange(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n const handleSelectAllClick = (event: React.ChangeEvent) => {\n if (event.target.checked) {\n const newSelected = props.tasks.map((t) => t.id);\n setSelectedIds(newSelected);\n } else {\n setSelectedIds([]);\n }\n };\n\n const handleRunAllClick = () => {\n props.runAllRetryTasksAsync(queue);\n };\n\n const handleDeleteAllClick = () => {\n props.deleteAllRetryTasksAsync(queue);\n };\n\n const handleArchiveAllClick = () => {\n props.archiveAllRetryTasksAsync(queue);\n };\n\n const handleBatchRunClick = () => {\n props\n .batchRunRetryTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const handleBatchDeleteClick = () => {\n props\n .batchDeleteRetryTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const handleBatchArchiveClick = () => {\n props\n .batchArchiveRetryTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const fetchData = useCallback(() => {\n const pageOpts = { page: page + 1, size: pageSize };\n listRetryTasksAsync(queue, pageOpts);\n }, [page, pageSize, queue, listRetryTasksAsync]);\n\n usePolling(fetchData, pollInterval);\n\n if (props.error.length > 0) {\n return (\n \n Error\n {props.error}\n \n );\n }\n if (props.tasks.length === 0) {\n return (\n \n Info\n No retry tasks at this time.\n \n );\n }\n\n const columns: TableColumn[] = [\n { key: \"id\", label: \"ID\", align: \"left\" },\n { key: \"type\", label: \"Type\", align: \"left\" },\n { key: \"payload\", label: \"Payload\", align: \"left\" },\n { key: \"retry_in\", label: \"Retry In\", align: \"left\" },\n { key: \"last_error\", label: \"Last Error\", align: \"left\" },\n { key: \"retried\", label: \"Retried\", align: \"right\" },\n { key: \"max_retry\", label: \"Max Retry\", align: \"right\" },\n { key: \"actions\", label: \"Actions\", align: \"center\" },\n ];\n\n const rowCount = props.tasks.length;\n const numSelected = selectedIds.length;\n return (\n
    \n {!window.READ_ONLY && (\n 0}\n iconButtonActions={[\n {\n tooltip: \"Delete\",\n icon: ,\n onClick: handleBatchDeleteClick,\n disabled: props.batchActionPending,\n },\n {\n tooltip: \"Archive\",\n icon: ,\n onClick: handleBatchArchiveClick,\n disabled: props.batchActionPending,\n },\n {\n tooltip: \"Run\",\n icon: ,\n onClick: handleBatchRunClick,\n disabled: props.batchActionPending,\n },\n ]}\n menuItemActions={[\n {\n label: \"Delete All\",\n onClick: handleDeleteAllClick,\n disabled: props.allActionPending,\n },\n {\n label: \"Archive All\",\n onClick: handleArchiveAllClick,\n disabled: props.allActionPending,\n },\n {\n label: \"Run All\",\n onClick: handleRunAllClick,\n disabled: props.allActionPending,\n },\n ]}\n />\n )}\n \n \n \n \n {!window.READ_ONLY && (\n \n \n 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={handleSelectAllClick}\n inputProps={{\n \"aria-label\": \"select all tasks shown in the table\",\n }}\n />\n \n \n )}\n {columns\n .filter((col) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || col.key !== \"actions\";\n })\n .map((col) => (\n \n {col.label}\n \n ))}\n \n \n \n {props.tasks.map((task) => (\n {\n if (checked) {\n setSelectedIds(selectedIds.concat(task.id));\n } else {\n setSelectedIds(selectedIds.filter((id) => id !== task.id));\n }\n }}\n onRunClick={() => {\n props.runRetryTaskAsync(task.queue, task.id);\n }}\n onDeleteClick={() => {\n props.deleteRetryTaskAsync(task.queue, task.id);\n }}\n onArchiveClick={() => {\n props.archiveRetryTaskAsync(task.queue, task.id);\n }}\n onActionCellEnter={() => setActiveTaskId(task.id)}\n onActionCellLeave={() => setActiveTaskId(\"\")}\n showActions={activeTaskId === task.id}\n />\n ))}\n \n \n \n \n \n \n \n \n
    \n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n root: {\n cursor: \"pointer\",\n \"&:hover\": {\n boxShadow: theme.shadows[2],\n },\n \"&:hover $copyButton\": {\n display: \"inline-block\",\n },\n \"&:hover .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\n },\n actionCell: {\n width: \"140px\",\n },\n actionButton: {\n marginLeft: 3,\n marginRight: 3,\n },\n idCell: {\n width: \"200px\",\n },\n copyButton: {\n display: \"none\",\n },\n IdGroup: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\ninterface RowProps {\n task: TaskInfoExtended;\n isSelected: boolean;\n onSelectChange: (checked: boolean) => void;\n onDeleteClick: () => void;\n onRunClick: () => void;\n onArchiveClick: () => void;\n allActionPending: boolean;\n showActions: boolean;\n onActionCellEnter: () => void;\n onActionCellLeave: () => void;\n}\n\nfunction Row(props: RowProps) {\n const { task } = props;\n const classes = useRowStyles();\n const history = useHistory();\n\n return (\n history.push(taskDetailsPath(task.queue, task.id))}\n >\n {!window.READ_ONLY && (\n e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n )}\n \n
    \n {uuidPrefix(task.id)}\n \n {\n e.stopPropagation();\n navigator.clipboard.writeText(task.id);\n }}\n size=\"small\"\n className={classes.copyButton}\n >\n \n \n \n
    \n
    \n {task.type}\n \n \n {prettifyPayload(task.payload)}\n \n \n {durationBefore(task.next_process_at)}\n {task.error_message}\n {task.retried}\n {task.max_retry}\n {!window.READ_ONLY && (\n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n )}\n \n );\n}\n\nexport default connector(RetryTasksTable);\n","import Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Paper from \"@material-ui/core/Paper\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport FileCopyOutlinedIcon from \"@material-ui/icons/FileCopyOutlined\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport PlayArrowIcon from \"@material-ui/icons/PlayArrow\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport React, { useCallback, useState } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport {\n batchDeleteArchivedTasksAsync,\n batchRunArchivedTasksAsync,\n deleteAllArchivedTasksAsync,\n deleteArchivedTaskAsync,\n listArchivedTasksAsync,\n runAllArchivedTasksAsync,\n runArchivedTaskAsync,\n} from \"../actions/tasksActions\";\nimport { usePolling } from \"../hooks\";\nimport { taskDetailsPath } from \"../paths\";\nimport { TaskInfoExtended } from \"../reducers/tasksReducer\";\nimport { AppState } from \"../store\";\nimport { TableColumn } from \"../types/table\";\nimport { prettifyPayload, timeAgo, uuidPrefix } from \"../utils\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport TableActions from \"./TableActions\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n alert: {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n },\n pagination: {\n border: \"none\",\n },\n idCell: {\n width: \"200px\",\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.tasks.archivedTasks.loading,\n error: state.tasks.archivedTasks.error,\n tasks: state.tasks.archivedTasks.data,\n batchActionPending: state.tasks.archivedTasks.batchActionPending,\n allActionPending: state.tasks.archivedTasks.allActionPending,\n pollInterval: state.settings.pollInterval,\n pageSize: state.settings.taskRowsPerPage,\n };\n}\n\nconst mapDispatchToProps = {\n listArchivedTasksAsync,\n runArchivedTaskAsync,\n runAllArchivedTasksAsync,\n deleteArchivedTaskAsync,\n deleteAllArchivedTasksAsync,\n batchRunArchivedTasksAsync,\n batchDeleteArchivedTasksAsync,\n taskRowsPerPageChange,\n};\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n queue: string; // name of the queue.\n totalTaskCount: number; // totoal number of archived tasks.\n}\n\nfunction ArchivedTasksTable(props: Props & ReduxProps) {\n const { pollInterval, listArchivedTasksAsync, queue, pageSize } = props;\n const classes = useStyles();\n const [page, setPage] = useState(0);\n const [selectedIds, setSelectedIds] = useState([]);\n const [activeTaskId, setActiveTaskId] = useState(\"\");\n\n const handlePageChange = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleRowsPerPageChange = (\n event: React.ChangeEvent\n ) => {\n props.taskRowsPerPageChange(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n const handleSelectAllClick = (event: React.ChangeEvent) => {\n if (event.target.checked) {\n const newSelected = props.tasks.map((t) => t.id);\n setSelectedIds(newSelected);\n } else {\n setSelectedIds([]);\n }\n };\n\n const handleRunAllClick = () => {\n props.runAllArchivedTasksAsync(queue);\n };\n\n const handleDeleteAllClick = () => {\n props.deleteAllArchivedTasksAsync(queue);\n };\n\n const handleBatchRunClick = () => {\n props\n .batchRunArchivedTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const handleBatchDeleteClick = () => {\n props\n .batchDeleteArchivedTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const fetchData = useCallback(() => {\n const pageOpts = { page: page + 1, size: pageSize };\n listArchivedTasksAsync(queue, pageOpts);\n }, [page, pageSize, queue, listArchivedTasksAsync]);\n\n usePolling(fetchData, pollInterval);\n\n if (props.error.length > 0) {\n return (\n \n Error\n {props.error}\n \n );\n }\n if (props.tasks.length === 0) {\n return (\n \n Info\n No archived tasks at this time.\n \n );\n }\n\n const columns: TableColumn[] = [\n { key: \"id\", label: \"ID\", align: \"left\" },\n { key: \"type\", label: \"Type\", align: \"left\" },\n { key: \"payload\", label: \"Payload\", align: \"left\" },\n { key: \"last_failed\", label: \"Last Failed\", align: \"left\" },\n { key: \"last_error\", label: \"Last Error\", align: \"left\" },\n { key: \"actions\", label: \"Actions\", align: \"center\" },\n ];\n\n const rowCount = props.tasks.length;\n const numSelected = selectedIds.length;\n return (\n
    \n {!window.READ_ONLY && (\n 0}\n iconButtonActions={[\n {\n tooltip: \"Delete\",\n icon: ,\n onClick: handleBatchDeleteClick,\n disabled: props.batchActionPending,\n },\n {\n tooltip: \"Run\",\n icon: ,\n onClick: handleBatchRunClick,\n disabled: props.batchActionPending,\n },\n ]}\n menuItemActions={[\n {\n label: \"Delete All\",\n onClick: handleDeleteAllClick,\n disabled: props.allActionPending,\n },\n {\n label: \"Run All\",\n onClick: handleRunAllClick,\n disabled: props.allActionPending,\n },\n ]}\n />\n )}\n \n \n \n \n {!window.READ_ONLY && (\n \n \n 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={handleSelectAllClick}\n inputProps={{\n \"aria-label\": \"select all tasks shown in the table\",\n }}\n />\n \n \n )}\n {columns\n .filter((col) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || col.key !== \"actions\";\n })\n .map((col) => (\n \n {col.label}\n \n ))}\n \n \n \n {props.tasks.map((task) => (\n {\n if (checked) {\n setSelectedIds(selectedIds.concat(task.id));\n } else {\n setSelectedIds(selectedIds.filter((id) => id !== task.id));\n }\n }}\n onRunClick={() => {\n props.runArchivedTaskAsync(queue, task.id);\n }}\n onDeleteClick={() => {\n props.deleteArchivedTaskAsync(queue, task.id);\n }}\n allActionPending={props.allActionPending}\n onActionCellEnter={() => setActiveTaskId(task.id)}\n onActionCellLeave={() => setActiveTaskId(\"\")}\n showActions={activeTaskId === task.id}\n />\n ))}\n \n \n \n \n \n \n \n \n
    \n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n root: {\n cursor: \"pointer\",\n \"&:hover\": {\n boxShadow: theme.shadows[2],\n },\n \"&:hover $copyButton\": {\n display: \"inline-block\",\n },\n \"&:hover .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\n },\n actionCell: {\n width: \"96px\",\n },\n actionButton: {\n marginLeft: 3,\n marginRight: 3,\n },\n idCell: {\n width: \"200px\",\n },\n copyButton: {\n display: \"none\",\n },\n IdGroup: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\ninterface RowProps {\n task: TaskInfoExtended;\n isSelected: boolean;\n onSelectChange: (checked: boolean) => void;\n onRunClick: () => void;\n onDeleteClick: () => void;\n allActionPending: boolean;\n showActions: boolean;\n onActionCellEnter: () => void;\n onActionCellLeave: () => void;\n}\n\nfunction Row(props: RowProps) {\n const { task } = props;\n const classes = useRowStyles();\n const history = useHistory();\n return (\n history.push(taskDetailsPath(task.queue, task.id))}\n >\n {!window.READ_ONLY && (\n e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n )}\n \n
    \n {uuidPrefix(task.id)}\n \n {\n e.stopPropagation();\n navigator.clipboard.writeText(task.id);\n }}\n size=\"small\"\n className={classes.copyButton}\n >\n \n \n \n
    \n
    \n {task.type}\n \n \n {prettifyPayload(task.payload)}\n \n \n {timeAgo(task.last_failed_at)}\n {task.error_message}\n {!window.READ_ONLY && (\n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n )}\n \n );\n}\n\nexport default connector(ArchivedTasksTable);\n","import Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport Paper from \"@material-ui/core/Paper\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Table from \"@material-ui/core/Table\";\nimport TableBody from \"@material-ui/core/TableBody\";\nimport TableCell from \"@material-ui/core/TableCell\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport FileCopyOutlinedIcon from \"@material-ui/icons/FileCopyOutlined\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport React, { useCallback, useState } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { useHistory } from \"react-router-dom\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport {\n batchDeleteCompletedTasksAsync,\n deleteAllCompletedTasksAsync,\n deleteCompletedTaskAsync,\n listCompletedTasksAsync,\n} from \"../actions/tasksActions\";\nimport { usePolling } from \"../hooks\";\nimport { taskDetailsPath } from \"../paths\";\nimport { TaskInfoExtended } from \"../reducers/tasksReducer\";\nimport { AppState } from \"../store\";\nimport { TableColumn } from \"../types/table\";\nimport {\n durationFromSeconds,\n prettifyPayload,\n stringifyDuration,\n timeAgo,\n uuidPrefix,\n} from \"../utils\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport TableActions from \"./TableActions\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\n\nconst useStyles = makeStyles((theme) => ({\n table: {\n minWidth: 650,\n },\n stickyHeaderCell: {\n background: theme.palette.background.paper,\n },\n alert: {\n borderTopLeftRadius: 0,\n borderTopRightRadius: 0,\n },\n pagination: {\n border: \"none\",\n },\n}));\n\nfunction mapStateToProps(state: AppState) {\n return {\n loading: state.tasks.completedTasks.loading,\n error: state.tasks.completedTasks.error,\n tasks: state.tasks.completedTasks.data,\n batchActionPending: state.tasks.completedTasks.batchActionPending,\n allActionPending: state.tasks.completedTasks.allActionPending,\n pollInterval: state.settings.pollInterval,\n pageSize: state.settings.taskRowsPerPage,\n };\n}\n\nconst mapDispatchToProps = {\n listCompletedTasksAsync,\n deleteCompletedTaskAsync,\n deleteAllCompletedTasksAsync,\n batchDeleteCompletedTasksAsync,\n taskRowsPerPageChange,\n};\n\nconst connector = connect(mapStateToProps, mapDispatchToProps);\n\ntype ReduxProps = ConnectedProps;\n\ninterface Props {\n queue: string; // name of the queue.\n totalTaskCount: number; // totoal number of completed tasks.\n}\n\nfunction CompletedTasksTable(props: Props & ReduxProps) {\n const { pollInterval, listCompletedTasksAsync, queue, pageSize } = props;\n const classes = useStyles();\n const [page, setPage] = useState(0);\n const [selectedIds, setSelectedIds] = useState([]);\n const [activeTaskId, setActiveTaskId] = useState(\"\");\n\n const handlePageChange = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleRowsPerPageChange = (\n event: React.ChangeEvent\n ) => {\n props.taskRowsPerPageChange(parseInt(event.target.value, 10));\n setPage(0);\n };\n\n const handleSelectAllClick = (event: React.ChangeEvent) => {\n if (event.target.checked) {\n const newSelected = props.tasks.map((t) => t.id);\n setSelectedIds(newSelected);\n } else {\n setSelectedIds([]);\n }\n };\n\n const handleDeleteAllClick = () => {\n props.deleteAllCompletedTasksAsync(queue);\n };\n\n const handleBatchDeleteClick = () => {\n props\n .batchDeleteCompletedTasksAsync(queue, selectedIds)\n .then(() => setSelectedIds([]));\n };\n\n const fetchData = useCallback(() => {\n const pageOpts = { page: page + 1, size: pageSize };\n listCompletedTasksAsync(queue, pageOpts);\n }, [page, pageSize, queue, listCompletedTasksAsync]);\n\n usePolling(fetchData, pollInterval);\n\n if (props.error.length > 0) {\n return (\n \n Error\n {props.error}\n \n );\n }\n if (props.tasks.length === 0) {\n return (\n \n Info\n No completed tasks at this time.\n \n );\n }\n\n const columns: TableColumn[] = [\n { key: \"id\", label: \"ID\", align: \"left\" },\n { key: \"type\", label: \"Type\", align: \"left\" },\n { key: \"payload\", label: \"Payload\", align: \"left\" },\n { key: \"completed_at\", label: \"Completed\", align: \"left\" },\n { key: \"result\", label: \"Result\", align: \"left\" },\n { key: \"ttl\", label: \"TTL\", align: \"left\" },\n { key: \"actions\", label: \"Actions\", align: \"center\" },\n ];\n\n const rowCount = props.tasks.length;\n const numSelected = selectedIds.length;\n return (\n
    \n {!window.READ_ONLY && (\n 0}\n iconButtonActions={[\n {\n tooltip: \"Delete\",\n icon: ,\n onClick: handleBatchDeleteClick,\n disabled: props.batchActionPending,\n },\n ]}\n menuItemActions={[\n {\n label: \"Delete All\",\n onClick: handleDeleteAllClick,\n disabled: props.allActionPending,\n },\n ]}\n />\n )}\n \n \n \n \n {!window.READ_ONLY && (\n \n \n 0 && numSelected < rowCount}\n checked={rowCount > 0 && numSelected === rowCount}\n onChange={handleSelectAllClick}\n inputProps={{\n \"aria-label\": \"select all tasks shown in the table\",\n }}\n />\n \n \n )}\n {columns\n .filter((col) => {\n // Filter out actions column in readonly mode.\n return !window.READ_ONLY || col.key !== \"actions\";\n })\n .map((col) => (\n \n {col.label}\n \n ))}\n \n \n \n {props.tasks.map((task) => (\n {\n if (checked) {\n setSelectedIds(selectedIds.concat(task.id));\n } else {\n setSelectedIds(selectedIds.filter((id) => id !== task.id));\n }\n }}\n onDeleteClick={() => {\n props.deleteCompletedTaskAsync(queue, task.id);\n }}\n allActionPending={props.allActionPending}\n onActionCellEnter={() => setActiveTaskId(task.id)}\n onActionCellLeave={() => setActiveTaskId(\"\")}\n showActions={activeTaskId === task.id}\n />\n ))}\n \n \n \n \n \n \n \n \n
    \n );\n}\n\nconst useRowStyles = makeStyles((theme) => ({\n root: {\n cursor: \"pointer\",\n \"&:hover\": {\n boxShadow: theme.shadows[2],\n },\n \"&:hover $copyButton\": {\n display: \"inline-block\",\n },\n \"&:hover .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\n },\n actionCell: {\n width: \"96px\",\n },\n actionButton: {\n marginLeft: 3,\n marginRight: 3,\n },\n idCell: {\n width: \"200px\",\n },\n copyButton: {\n display: \"none\",\n },\n IdGroup: {\n display: \"flex\",\n alignItems: \"center\",\n },\n}));\n\ninterface RowProps {\n task: TaskInfoExtended;\n isSelected: boolean;\n onSelectChange: (checked: boolean) => void;\n onDeleteClick: () => void;\n allActionPending: boolean;\n showActions: boolean;\n onActionCellEnter: () => void;\n onActionCellLeave: () => void;\n}\n\nfunction Row(props: RowProps) {\n const { task } = props;\n const classes = useRowStyles();\n const history = useHistory();\n return (\n history.push(taskDetailsPath(task.queue, task.id))}\n >\n {!window.READ_ONLY && (\n e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n )}\n \n
    \n {uuidPrefix(task.id)}\n \n {\n e.stopPropagation();\n navigator.clipboard.writeText(task.id);\n }}\n size=\"small\"\n className={classes.copyButton}\n >\n \n \n \n
    \n
    \n {task.type}\n \n \n {prettifyPayload(task.payload)}\n \n \n {timeAgo(task.completed_at)}\n \n \n {prettifyPayload(task.result)}\n \n \n \n {task.ttl_seconds > 0\n ? `${stringifyDuration(durationFromSeconds(task.ttl_seconds))} left`\n : `expired`}\n \n {!window.READ_ONLY && (\n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n )}\n \n );\n}\n\nexport default connector(CompletedTasksTable);\n","import React, { useState } from \"react\";\nimport { connect, ConnectedProps } from \"react-redux\";\nimport { makeStyles } from \"@material-ui/core/styles\";\nimport Typography from \"@material-ui/core/Typography\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Chip from \"@material-ui/core/Chip\";\nimport InputBase from \"@material-ui/core/InputBase\";\nimport SearchIcon from \"@material-ui/icons/Search\";\nimport ActiveTasksTable from \"./ActiveTasksTable\";\nimport PendingTasksTable from \"./PendingTasksTable\";\nimport ScheduledTasksTable from \"./ScheduledTasksTable\";\nimport RetryTasksTable from \"./RetryTasksTable\";\nimport ArchivedTasksTable from \"./ArchivedTasksTable\";\nimport CompletedTasksTable from \"./CompletedTasksTable\";\nimport { useHistory } from \"react-router-dom\";\nimport { queueDetailsPath, taskDetailsPath } from \"../paths\";\nimport { QueueInfo } from \"../reducers/queuesReducer\";\nimport { AppState } from \"../store\";\nimport { isDarkTheme } from \"../theme\";\n\ninterface TabPanelProps {\n children?: React.ReactNode;\n selected: string; // currently selected value\n value: string; // tab panel will be shown if selected value equals to the value\n}\n\nfunction TabPanel(props: TabPanelProps) {\n const { children, value, selected, ...other } = props;\n\n return (\n