---
id: gk-foundation-scheduler-task-set-args
title: "Filter - gk/foundation/scheduler/task/set/args"
sidebar_label: "gk/foundation/scheduler/task/set/args"
tags:
  - "1.12.0"
---

# Filter: gk/foundation/scheduler/task/set/args

Filters the task args before setting them.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $args | `array` | The task args. |
| $instance | `\Task` | The task object. |

### Since

- 1.12.0

### Source

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

