Function reloadTasksResourceOnTaskEvent

  • Creates a reload task for the app that runs when another task finishes with the given status. This is a convenience wrapper over POST /scheduling/tasks; the full task definition is generated server-side. Use POST /scheduling/tasks for advanced configurations.

    The upstream task (onTaskId) must belong to the caller's tenant, and the caller needs read access to the upstream task's app. The server adds the upstream task's spaceId and appId to the event correlations of the created task. If the upstream task is deleted later, this task no longer runs.

    Errors:

    • 400 CHO-001: the request body or the path id is invalid. This includes a name or description over its maximum length, and an onTaskStatus other than succeeded, failed or any.
    • 400 CHO-016: onTaskId is not a UUID, or no such task exists in the caller's tenant.
    • 403 CHO-003: the app does not exist, is not accessible, or the caller lacks app:reload on it. CHO-015: the caller cannot read the upstream task's app.
    • 422 CHO-014: the app already has the maximum number of tasks. CHO-018: the caller has reached the per-user task quota, when one is configured.
    • 424 CHO-013: the task could not be stored. Nothing is created.
    • 404 CHO-004: the upstream task was deleted while the request was processed.

    Parameters

    Returns Promise<ReloadTasksResourceOnTaskEventHttpResponse>

    ReloadTasksResourceOnTaskEventHttpError