{"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/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","views/PageNotFoundView.tsx","App.tsx","reducers/queuesReducer.ts","reducers/tasksReducer.ts","reducers/serversReducer.ts","reducers/snackbarReducer.ts","reducers/queueStatsReducer.ts","reducers/redisInfoReducer.ts","localStorage.ts","store.ts","serviceWorker.ts","index.tsx"],"names":["paths","HOME","window","ROOT_PATH","SETTINGS","SERVERS","SCHEDULERS","QUEUE_DETAILS","REDIS","TASK_DETAILS","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","onChangePage","className","IconButton","onClick","event","disabled","aria-label","direction","Math","ceil","max","rowsPerPageOptions","BASE_URL","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","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","listServers","listSchedulerEntries","listSchedulerEnqueueEvents","entryId","getRedisInfo","toErrorStringWithHttpStatus","error","response","status","statusText","toErrorString","durationBetween","start","end","durationInMillisec","totalSeconds","floor","hour","minute","second","stringifyDuration","d","n","durationBefore","timestamp","duration","Date","parse","now","timeAgo","timeAgoUnix","console","unixtime","uuidPrefix","uuid","idx","indexOf","substr","percentage","numerator","denominator","perc","toFixed","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","params","allQueues","map","b","activeLabel","includes","push","style","cursor","CartesianGrid","strokeDasharray","XAxis","dataKey","YAxis","Tooltip","Legend","Bar","stackId","fill","ProcessedTasksChart","palette","success","light","connector","SortDirection","connect","state","ownProps","requestPending","q","queues","find","name","undefined","Dialog","open","onClose","aria-labelledby","aria-describedby","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","Processed","Failed","ErrorRate","None","sortQueues","cmpFn","copy","sort","QueuesOverviewTable","useState","setSortBy","Asc","sortDir","setSortDir","queueToDelete","setQueueToDelete","Fragment","TableContainer","Table","TableHead","TableRow","cfg","i","TableCell","clsx","TableSortLabel","active","sortKey","e","nextSortDir","Desc","TableBody","q1","q2","isQ1Smaller","paused","memory_usage_bytes","processed","failed","q1ErrorRate","q2ErrorRate","Row","onPauseClick","onResumeClick","onDeleteClick","useRowStyles","row","borderBottomWidth","linkText","textDecoration","text","primary","textGreen","dark","textRed","boldCell","fontWeight","actionIconsContainer","display","justifyContent","showIcons","setShowIcons","component","scope","to","prettyBytes","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","aria-controls","aria-expanded","aria-haspopup","prevOpen","Popper","anchorEl","role","transition","disablePortal","TransitionProps","placement","Grow","transformOrigin","Paper","ClickAwayListener","onClickAway","MenuList","MenuItem","selected","onSelect","usePolling","doFn","interval","useEffect","setInterval","clearInterval","DailyStatsChart","queueStats","numDays","dataByDate","stat","hasOwnProperty","date","succeeded","Object","values","sortByDate","slice","makeChartData","LineChart","minTickGap","Line","stroke","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","join","processedStats","Container","Grid","length","item","xs","Alert","severity","AlertTitle","Typography","initialState","themePreference","SystemDefault","isDrawerOpen","taskRowsPerPage","settingsReducer","CLOSE_SNACKBAR","listItem","borderTopRightRadius","borderBottomRightRadius","secondary","selectedText","selectedIcon","ListItemLink","icon","isMatch","useRouteMatch","strict","sensitive","exact","renderLink","useMemo","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","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","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","task","isSelected","stopPropagation","Checkbox","onChange","onSelectChange","checked","margin","canceling","start_time","deadline","onActionCellEnter","onActionCellLeave","showActions","onCancelClick","setPage","selectedIds","setSelectedIds","activeTaskId","setActiveTaskId","useCallback","rowCount","numSelected","then","indeterminate","newSelected","t","inputProps","col","concat","filter","TableFooter","TablePagination","colSpan","SelectProps","native","newPage","onChangeRowsPerPage","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","TabPanel","other","hidden","flex","overflowY","queueInfo","pending","scheduled","retry","archived","header","paddingRight","chip","taskcount","textAlign","searchbar","search","searchIcon","pointerEvents","inputRoot","inputInput","chips","searchQuery","setSearchQuery","c","Chip","InputBase","placeholder","input","onKeyDown","trim","banner","bannerItem","flexGrow","divider","StyledBreadcrumb","fontWeightRegular","emphasize","QueueBreadcrumbs","setAnchorEl","handleClick","preventDefault","Breadcrumbs","Link","queueName","deleteIcon","onDelete","breadcrumbs","tasksTable","validStatus","useParams","URLSearchParams","useLocation","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","RedisMetricCards","redisInfo","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","redis","redisAddress","address","redisInfoRaw","rawData","redisClusterEnabled","cluster","redisClusterNodesRaw","rawClusterNodes","getRedisInfoAsync","href","headingText","PageNotFoundView","closeSnackbar","toggleDrawer","SlideUpTransition","Slide","snackbar","prefersDarkMode","useMediaQuery","createMuiTheme","toolbar","toolbarIcon","mixins","appBar","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","anchorOrigin","vertical","horizontal","isOpen","autoHideDuration","TransitionComponent","SnackbarContent","message","List","queuesReducer","stats","archived_ids","deleted_ids","pending_ids","tasksReducer","canceled_ids","error_ids","snackbarReducer","isSameDate","ts1","ts2","toDateString","LOCAL_STORAGE_KEY","rootReducer","combineReducers","newStats","info","raw_info","raw_cluster_nodes","queue_locations","preloadedState","serializedState","localStorage","getItem","savedState","JSON","settingsInitialState","err","log","loadState","store","configureStore","reducer","location","hostname","match","currentSettings","subscribe","getState","setItem","saveState","ReactDOM","render","StrictMode","CssBaseline","document","getElementById","navigator","serviceWorker","ready","registration","unregister","catch"],"mappings":"4cAAaA,EAAQ,CACnBC,KAAK,GAAD,OAAKC,OAAOC,UAAZ,KACJC,SAAS,GAAD,OAAKF,OAAOC,UAAZ,aACRE,QAAQ,GAAD,OAAKH,OAAOC,UAAZ,YACPG,WAAW,GAAD,OAAKJ,OAAOC,UAAZ,eACVI,cAAc,GAAD,OAAKL,OAAOC,UAAZ,kBACbK,MAAM,GAAD,OAAKN,OAAOC,UAAZ,UACLM,aAAa,GAAD,OAAKP,OAAOC,UAAZ,iCAOP,SAASO,EAAiBC,EAAeC,GAC9C,IAAMC,EAAOb,EAAMO,cAAcO,QAAQ,SAAUH,GACnD,OAAIC,EACI,GAAN,OAAUC,EAAV,mBAAyBD,GAEpBC,EAGF,SAASE,EAAgBJ,EAAeK,GAC7C,OAAOhB,EAAMS,aAAaK,QAAQ,SAAUH,GAAOG,QAAQ,UAAWE,G,aCpB3DC,EAAuB,uBACvBC,EAA0B,0BAC1BC,EAAgB,gBAChBC,EAA4B,4BAC5BC,EAAyB,yBAoD/B,SAASC,EAAsBC,GACpC,MAAO,CACLC,KAAMJ,EACNG,S,mHCjDEE,GAAYC,aAAW,SAACC,GAAD,OAC3BC,aAAa,CACXC,KAAM,CACJC,WAAY,EACZC,WAAYJ,EAAMK,QAAQ,WAsFjBC,OAvEf,SAAgCC,GAC9B,IAAMC,EAAUV,KACVE,EAAQS,eACNC,EAA2CH,EAA3CG,MAAOC,EAAoCJ,EAApCI,KAAMC,EAA8B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IAAD,CAAUd,MAAOA,GAAjB,SACE,eAAC,GAAD,SAGJe,SAASC,eAAe,SD+GpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrB/T,MAAK,SAAAgU,GACJA,EAAaC,gBAEdC,OAAM,SAAAv4B,GACLyB,QAAQzB,MAAMA,EAAMg1B,c","file":"static/js/main.090c4a40.chunk.js","sourcesContent":["export 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};\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.TASK_DETAILS.replace(\":qname\", qname).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}","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 onChangePage: (\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, onChangePage } = props;\n\n const handleFirstPageButtonClick = (\n event: React.MouseEvent\n ) => {\n onChangePage(event, 0);\n };\n\n const handleBackButtonClick = (\n event: React.MouseEvent\n ) => {\n onChangePage(event, page - 1);\n };\n\n const handleNextButtonClick = (\n event: React.MouseEvent\n ) => {\n onChangePage(event, page + 1);\n };\n\n const handleLastPageButtonClick = (\n event: React.MouseEvent\n ) => {\n onChangePage(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 BASE_URL =\n process.env.NODE_ENV === \"production\" ? `${window.ROOT_PATH}/api` : `http://localhost:8080${window.ROOT_PATH}/api`;\n\nexport interface ListQueuesResponse {\n queues: Queue[];\n}\n\nexport interface ListActiveTasksResponse {\n tasks: ActiveTask[];\n stats: Queue;\n}\n\nexport interface ListPendingTasksResponse {\n tasks: PendingTask[];\n stats: Queue;\n}\n\nexport interface ListScheduledTasksResponse {\n tasks: ScheduledTask[];\n stats: Queue;\n}\n\nexport interface ListRetryTasksResponse {\n tasks: RetryTask[];\n stats: Queue;\n}\n\nexport interface ListArchivedTasksResponse {\n tasks: ArchivedTask[];\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\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 memory_usage_bytes: number;\n active: number;\n pending: number;\n scheduled: number;\n retry: number;\n archived: 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\n// BaseTask corresponds to asynq.Task type.\ninterface BaseTask {\n type: string;\n payload: string;\n}\n\nexport interface TaskInfo {\n id: string;\n queue: string;\n type: string;\n payload: string;\n state: string;\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}\n\nexport interface ActiveTask extends BaseTask {\n id: string;\n queue: string;\n start_time: string;\n deadline: string;\n max_retry: number;\n retried: number;\n error_message: string;\n}\n\nexport interface PendingTask extends BaseTask {\n id: string;\n queue: string;\n max_retry: number;\n retried: number;\n error_message: string;\n}\n\nexport interface ScheduledTask extends BaseTask {\n id: string;\n queue: string;\n max_retry: number;\n retried: number;\n error_message: string;\n next_process_at: string;\n}\n\nexport interface RetryTask extends BaseTask {\n id: string;\n queue: string;\n next_process_at: string;\n max_retry: number;\n retried: number;\n error_message: string;\n}\n\nexport interface ArchivedTask extends BaseTask {\n id: string;\n queue: string;\n max_retry: number;\n retried: number;\n last_failed_at: string;\n error_message: string;\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: `${BASE_URL}/queues`,\n });\n return resp.data;\n}\n\nexport async function deleteQueue(qname: string): Promise {\n await axios({\n method: \"delete\",\n url: `${BASE_URL}/queues/${qname}`,\n });\n}\n\nexport async function pauseQueue(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${BASE_URL}/queues/${qname}:pause`,\n });\n}\n\nexport async function resumeQueue(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${BASE_URL}/queues/${qname}:resume`,\n });\n}\n\nexport async function listQueueStats(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${BASE_URL}/queue_stats`,\n });\n return resp.data;\n}\n\nexport async function getTaskInfo(qname: string, id: string): Promise {\n const url = `${BASE_URL}/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 = `${BASE_URL}/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: `${BASE_URL}/queues/${qname}/active_tasks/${taskId}:cancel`,\n });\n}\n\nexport async function cancelAllActiveTasks(qname: string): Promise {\n await axios({\n method: \"post\",\n url: `${BASE_URL}/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: `${BASE_URL}/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 = `${BASE_URL}/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 = `${BASE_URL}/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 = `${BASE_URL}/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 = `${BASE_URL}/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 archivePendingTask(\n qname: string,\n taskId: string\n): Promise {\n await axios({\n method: \"post\",\n url: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/queues/${qname}/archived_tasks:run_all`,\n });\n}\n\nexport async function listServers(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${BASE_URL}/servers`,\n });\n return resp.data;\n}\n\nexport async function listSchedulerEntries(): Promise {\n const resp = await axios({\n method: \"get\",\n url: `${BASE_URL}/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: `${BASE_URL}/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: `${BASE_URL}/redis_info`,\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// 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 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\nfunction 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","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 { 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}\n\nfunction QueueSizeChart(props: Props) {\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\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 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: \"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.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.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.processed}\n {q.failed}\n {percentage(q.failed, q.processed)}\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","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 } from \"react\";\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","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 retreive 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 { createMuiTheme, 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 createMuiTheme({\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 } 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 {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 retreive 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 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 deleteArchivedTask,\n deleteRetryTask,\n deleteScheduledTask,\n archiveAllRetryTasks,\n archiveAllScheduledTasks,\n archiveRetryTask,\n archiveScheduledTask,\n listActiveTasks,\n ListActiveTasksResponse,\n listArchivedTasks,\n ListArchivedTasksResponse,\n listPendingTasks,\n ListPendingTasksResponse,\n listRetryTasks,\n ListRetryTasksResponse,\n listScheduledTasks,\n ListScheduledTasksResponse,\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 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\";\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: ListActiveTasksResponse;\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: ListPendingTasksResponse;\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: ListScheduledTasksResponse;\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: ListRetryTasksResponse;\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: ListArchivedTasksResponse;\n}\n\ninterface ListArchivedTasksErrorAction {\n type: typeof LIST_ARCHIVED_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\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 | 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\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 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(\n queue: string,\n taskIds: string[]\n) {\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","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 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 Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\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 Tooltip from \"@material-ui/core/Tooltip\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport CancelIcon from \"@material-ui/icons/Cancel\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport {\n listActiveTasksAsync,\n cancelActiveTaskAsync,\n batchCancelActiveTasksAsync,\n cancelAllActiveTasksAsync,\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 { usePolling } from \"../hooks\";\nimport { ActiveTaskExtended } from \"../reducers/tasksReducer\";\nimport { durationBefore, timeAgo, uuidPrefix } from \"../utils\";\nimport { TableColumn } from \"../types/table\";\nimport { taskDetailsPath } from \"../paths\";\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 handleChangePage = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleChangeRowsPerPage = (\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 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 \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 {columns.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 .MuiTableCell-root\": {\n borderBottomColor: theme.palette.background.paper,\n },\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 e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n \n {uuidPrefix(task.id)}\n \n {task.type}\n \n \n {task.payload}\n \n \n {task.canceling ? \"Canceling\" : \"Running\"}\n \n {task.start_time === \"-\" ? \"just now\" : timeAgo(task.start_time)}\n \n \n {task.deadline === \"-\" ? \"-\" : durationBefore(task.deadline)}\n \n e.stopPropagation()}\n >\n {props.showActions ? (\n \n \n \n \n \n \n \n ) : (\n \n \n \n )}\n \n \n );\n}\n\nexport default connector(ActiveTasksTable);\n","import React, { useCallback, useState } 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 Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport Paper from \"@material-ui/core/Paper\";\nimport Checkbox from \"@material-ui/core/Checkbox\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport ArchiveIcon from \"@material-ui/icons/Archive\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\nimport TableActions from \"./TableActions\";\nimport {\n listPendingTasksAsync,\n deletePendingTaskAsync,\n batchDeletePendingTasksAsync,\n deleteAllPendingTasksAsync,\n archivePendingTaskAsync,\n batchArchivePendingTasksAsync,\n archiveAllPendingTasksAsync,\n} from \"../actions/tasksActions\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport { AppState } from \"../store\";\nimport { usePolling } from \"../hooks\";\nimport { uuidPrefix } from \"../utils\";\nimport { TableColumn } from \"../types/table\";\nimport { PendingTaskExtended } from \"../reducers/tasksReducer\";\nimport { taskDetailsPath } from \"../paths\";\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 handleChangePage = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleChangeRowsPerPage = (\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 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 \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 {columns.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 .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}));\n\ninterface RowProps {\n task: PendingTaskExtended;\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 e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n \n {uuidPrefix(task.id)}\n \n {task.type}\n \n \n {task.payload}\n \n \n {task.retried}\n {task.max_retry}\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\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 } from \"../utils\";\nimport { usePolling } from \"../hooks\";\nimport { ScheduledTaskExtended } from \"../reducers/tasksReducer\";\nimport { TableColumn } from \"../types/table\";\nimport { taskDetailsPath } from \"../paths\";\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 handleChangePage = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleChangeRowsPerPage = (\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 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 \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 {columns.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 .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}));\n\ninterface RowProps {\n task: ScheduledTaskExtended;\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 e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n \n {uuidPrefix(task.id)}\n \n {task.type}\n \n \n {task.payload}\n \n \n {durationBefore(task.next_process_at)}\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}\nexport default connector(ScheduledTasksTable);\n","import React, { useCallback, useState } 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 batchDeleteRetryTasksAsync,\n batchRunRetryTasksAsync,\n batchArchiveRetryTasksAsync,\n deleteAllRetryTasksAsync,\n runAllRetryTasksAsync,\n archiveAllRetryTasksAsync,\n listRetryTasksAsync,\n deleteRetryTaskAsync,\n runRetryTaskAsync,\n archiveRetryTaskAsync,\n} from \"../actions/tasksActions\";\nimport { AppState } from \"../store\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport TableActions from \"./TableActions\";\nimport { durationBefore, uuidPrefix } from \"../utils\";\nimport { usePolling } from \"../hooks\";\nimport { RetryTaskExtended } from \"../reducers/tasksReducer\";\nimport { TableColumn } from \"../types/table\";\nimport { taskDetailsPath } from \"../paths\";\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 handleChangePage = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleChangeRowsPerPage = (\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 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 \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 {columns.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 .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}));\n\ninterface RowProps {\n task: RetryTaskExtended;\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 e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n \n {uuidPrefix(task.id)}\n \n {task.type}\n \n \n {task.payload}\n \n \n {durationBefore(task.next_process_at)}\n {task.error_message}\n {task.retried}\n {task.max_retry}\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(RetryTasksTable);\n","import React, { useCallback, useState } 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 Checkbox from \"@material-ui/core/Checkbox\";\nimport TableContainer from \"@material-ui/core/TableContainer\";\nimport TableHead from \"@material-ui/core/TableHead\";\nimport TableRow from \"@material-ui/core/TableRow\";\nimport Tooltip from \"@material-ui/core/Tooltip\";\nimport Paper from \"@material-ui/core/Paper\";\nimport IconButton from \"@material-ui/core/IconButton\";\nimport PlayArrowIcon from \"@material-ui/icons/PlayArrow\";\nimport DeleteIcon from \"@material-ui/icons/Delete\";\nimport MoreHorizIcon from \"@material-ui/icons/MoreHoriz\";\nimport TableFooter from \"@material-ui/core/TableFooter\";\nimport TablePagination from \"@material-ui/core/TablePagination\";\nimport Alert from \"@material-ui/lab/Alert\";\nimport AlertTitle from \"@material-ui/lab/AlertTitle\";\nimport SyntaxHighlighter from \"./SyntaxHighlighter\";\nimport { AppState } from \"../store\";\nimport {\n batchDeleteArchivedTasksAsync,\n batchRunArchivedTasksAsync,\n deleteArchivedTaskAsync,\n deleteAllArchivedTasksAsync,\n listArchivedTasksAsync,\n runArchivedTaskAsync,\n runAllArchivedTasksAsync,\n} from \"../actions/tasksActions\";\nimport TablePaginationActions, {\n rowsPerPageOptions,\n} from \"./TablePaginationActions\";\nimport { taskRowsPerPageChange } from \"../actions/settingsActions\";\nimport TableActions from \"./TableActions\";\nimport { timeAgo, uuidPrefix } from \"../utils\";\nimport { usePolling } from \"../hooks\";\nimport { ArchivedTaskExtended } from \"../reducers/tasksReducer\";\nimport { TableColumn } from \"../types/table\";\nimport { taskDetailsPath } from \"../paths\";\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.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 handleChangePage = (\n event: React.MouseEvent | null,\n newPage: number\n ) => {\n setPage(newPage);\n };\n\n const handleChangeRowsPerPage = (\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 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 \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 {columns.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 .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}));\n\ninterface RowProps {\n task: ArchivedTaskExtended;\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 e.stopPropagation()}>\n \n ) =>\n props.onSelectChange(event.target.checked)\n }\n checked={props.isSelected}\n />\n \n \n \n {uuidPrefix(task.id)}\n \n {task.type}\n \n \n {task.payload}\n \n \n {timeAgo(task.last_failed_at)}\n {task.error_message}\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\nexport default connector(ArchivedTasksTable);\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 { 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