Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

Static Public Member Functions | Static Private Member Functions | List of all members
eZRunCronjobs Class Reference

## Static Public Member Functions
static | runScript ( $cli, $scriptFile)
static | maxScriptExecutionTime ()

## Static Private Member Functions
static | stealMutex ( $cli, $scriptMutex, $force=false)

## Detailed Description

Class containing helper functions to execute cronjob parts.

Definition at line 14 of file ezruncronjobs.php.

## Member Function Documentation

## ◆ maxScriptExecutionTime()

static eZRunCronjobs::maxScriptExecutionTime | ( |  | ) |
| static

Returns the maximum permitted execution time for cronjobs. This may be different per cronjob part (see cronjob.ini).

Returns
  execution time in seconds

Definition at line 70 of file ezruncronjobs.php.

Referenced by runScript().

## ◆ runScript()

static eZRunCronjobs::runScript | ( |  | $cli,
|  |  | $scriptFile
| ) |  |
| static

Function for running a cronjob script.

Definition at line 20 of file ezruncronjobs.php.

References maxScriptExecutionTime(), and stealMutex().

## ◆ stealMutex()

static eZRunCronjobs::stealMutex | ( |  | $cli,
|  |  | $scriptMutex,
|  |  | $force = `false`
| ) |  |
| static private

Steal a script mutex

Parameters

  cli |
  script | mutex to steal
  force | stealing of mutex ( optional, false by default )

Returns
  true if mutex is stole successfully

Definition at line 94 of file ezruncronjobs.php.

Referenced by runScript().

The documentation for this class was generated from the following file:

- ezruncronjobs.php

Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.