diff --git a/docs/jobs-queue/overview.mdx b/docs/jobs-queue/overview.mdx index 8c50db3ce..ac57fcbb7 100644 --- a/docs/jobs-queue/overview.mdx +++ b/docs/jobs-queue/overview.mdx @@ -43,7 +43,7 @@ Simply add a task to the `jobs.tasks` array in your Payload config. A task consi | `outputSchema` | Define the output field schema - payload will generate a type for this schema. | | `label` | Define a human-friendly label for this task. | | `onFail` | Function to be executed if the task fails. | -| `onSuccess` | Function to be executed if the task fails. | +| `onSuccess` | Function to be executed if the task succeeds. | | `retries` | Specify the number of times that this step should be retried if it fails. | The logic for the Task is defined in the `handler` - which can be defined as a function, or a path to a function. The `handler` will run once a worker picks picks up a Job that includes this task.