Documentation

Cron
in package

AbstractYes

Schedules execution of jobs at specified intervals

  • Jobs run synchronously on a schedule.
  • Timer-based execution rather on-demand job queueing.
  • One instance runs at a time.
  • Periodic batch of jobs.
Tags
link
https://packagist.org/packages/peppeocchi/php-cron-scheduler

Table of Contents

Properties

$id  : string
Unique cron identifier. This is required by the command "run:cron".

Methods

getId()  : string
Returns the unique cron identifier.
run()  : void
Registers a new cron instance into app()->scheduler.
work()  : void
Forces to work a cron.

Properties

$id

Unique cron identifier. This is required by the command "run:cron".

protected string $id

Methods

getId()

Returns the unique cron identifier.

public getId() : string
Tags
throws
Exception
Return values
string

run()

Registers a new cron instance into app()->scheduler.

public abstract run() : void

work()

Forces to work a cron.

public abstract work() : void

        
On this page

Search results