---
id: gk-foundation-scheduler-task-execute-failed
title: "Action - gk/foundation/scheduler/task/execute/failed"
sidebar_label: "gk/foundation/scheduler/task/execute/failed"
tags:
  - "1.12.0"
---

# Action: gk/foundation/scheduler/task/execute/failed

Fires when a task fails after exhausting retries.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $task | `\Task` | The failed task. |
| $job | `\JobInstance` | The job instance. |
| $exception | `\Throwable` | The exception that caused the failure. |

### Since

- 1.12.0

### Source

Defined in `Scheduler/Handlers/ScheduleHandler.php` at line 502

