Documentation

CronSchedule
in package
implements Stringable

FinalYes

CronSchedule - Optional cron schedule for workflow. If a cron schedule is specified, the workflow will run as a cron based on the schedule. The scheduling will be based on UTC time. Schedule for next run only happen after the current run is completed/failed/timeout. If a {@see RetryPolicy} is also supplied, and the workflow failed or timeout, the workflow will be retried based on the retry policy. While the workflow is retrying, it won't schedule its next run. If next schedule is due while workflow is running (or retrying), then it will skip that schedule. Cron workflow will not stop until it is terminated or canceled.

Tags
psalm-import-type

DateIntervalValue from DateInterval

see
DateInterval
Annotation
NamedArgumentConstructor
Target

({ "METHOD" })

Table of Contents

Interfaces

Stringable

Properties

$interval  : string
The cron spec is as following:

Methods

__construct()  : mixed
__toString()  : string
{@inheritDoc}

Attributes

#[Attribute]

#[Attribute]

#[NamedArgumentConstructor]

#[NamedArgumentConstructor]

Properties

$interval

The cron spec is as following:

public string $interval
 ┌───────────── minute (0 - 59)
 │ ┌───────────── hour (0 - 23)
 │ │ ┌───────────── day of the month (1 - 31)
 │ │ │ ┌───────────── month (1 - 12)
 │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
 │ │ │ │ │
 │ │ │ │ │
 * * * * *

Methods

__construct()

public __construct(string $interval) : mixed
Parameters
$interval : string

__toString()

{@inheritDoc}

public __toString() : string
Return values
string

        
On this page

Search results