---
id: gk-foundation-scheduler-task-get-can-fail
title: "Filter - gk/foundation/scheduler/task/get/can-fail"
sidebar_label: "gk/foundation/scheduler/task/get/can-fail"
tags:
  - "1.12.0"
---

# Filter: gk/foundation/scheduler/task/get/can-fail

Filters whether the task can fail without stopping the job.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $can_fail | `bool` | Whether the task can fail without affecting the job status. |
| $instance | `\Task` | The task object. |

### Since

- 1.12.0

### Source

Defined in `Scheduler/Models/Task.php` at line 368

