fix: increase task limit to 500 (#19424)

pull/19435/head
Andrew Watkins 2020-08-25 08:48:23 -07:00 committed by GitHub
parent 543bbd12c1
commit 63047111c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -4,3 +4,4 @@ export const LIMIT = 100
export const BUCKET_LIMIT = 100
export const RULE_LIMIT = 100
export const DASHBOARD_LIMIT = 100
export const TASK_LIMIT = 500

View File

@ -48,6 +48,9 @@ import {checkTaskLimits} from 'src/cloud/actions/limits'
import {getOrg} from 'src/organizations/selectors'
import {getStatus} from 'src/resources/selectors'
// Types
import {TASK_LIMIT} from 'src/resources/constants'
type Action = TaskAction | ExternalActions | ReturnType<typeof getTasks>
type ExternalActions = NotifyAction | ReturnType<typeof checkTaskLimits>
@ -64,7 +67,7 @@ export const getTasks = () => async (
const org = getOrg(state)
const resp = await api.getTasks({query: {orgID: org.id}})
const resp = await api.getTasks({query: {orgID: org.id, limit: TASK_LIMIT}})
if (resp.status !== 200) {
throw new Error(resp.data.message)