- md5
- 6a763f2eb50ad282ffe135276c599bc9
- sha1
- 2bf34e09a2849ddee4a0dba3a51c06d18931daec
- sha256
- bd81fa8b2e46b20081b4de783e119a9d609af937b617782a1371b4a7013847ec
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
<?php
/**
* @package Joomla.Administrator
* @subpackage com_scheduler
*
* @copyright (C) 2021 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\Component\Scheduler\Administrator\Task;
/**
* A namespace mapping Task statuses to integer values.
*
* @since 4.1.0
*/
abstract class Status
{
/**
* Replacement exit code used when a routine returns an invalid (non-integer) exit code.
*
* @since 4.1.0
*/
public const INVALID_EXIT = -2;
/**
* Replacement exit code used when a routine does not return an exit code.
*
* @since 4.1.0
*/
public const NO_EXIT = -1;
/**
* Status code used when the routine just starts. This is not meant to be an exit code.
*
* @since 4.1.0
*/
public const RUNNING = 1;
/**
* Exit code used on failure to acquire a pseudo-lock.
*
* @since 4.1.0
*/
public const NO_LOCK = 2;
/**
* Exit code used on failure to run the task.
*
* @since 4.1.0
*/
public const NO_RUN = 3;
/**
* Exit code used on failure to release lock/update the record.
*
* @since 4.1.0
*/
public const NO_RELEASE = 4;
/**
* Exit code used when a routine is either "knocked out" by an exception or encounters an exception it cannot handle
* gracefully.
* ? Should this be retained ?
*
* @since 4.1.0
*/
public const KNOCKOUT = 5;
/**
* Exit code used when a task times out.
*
* @since 4.1.0
*/
public const TIMEOUT = 124;
/**
* Exit code when a *task* does not exist.
*
* @since 4.1.0
*/
public const NO_TASK = 125;
/**
* Exit code used when a *routine* is missing.
*
* @since 4.1.0
*/
public const NO_ROUTINE = 127;
/**
* Exit code on success.
*
* @since 4.1.0
*/
public const OK = 0;
}
The same content is in 3 releases, Joomla 4.1.0-beta1 to 4.1.0-beta3. See them all, or every version of this file.