Manual:Job table/fr

La table job contient une liste de en attente. Sert uniquement si utilise la classe.

job_id
Clé primaire.

job_cmd
Nom de commande, limité à 60 caractères pour empêcher le débordement de la longueur de la clé. Noms de commandes correspondant aux clés de.

job_namespace
sur lequel agir. Doit être à  si la commande n'est pas effective sur un titre. Utilisé avec.

job_title
sur lequel agir. Doit être vide si la commande n'est pas effective sur un titre. Utilisé avec.

job_timestamp
of when the job was inserted. NULL for jobs added before addition of the timestamp.

job_params
Any other parameters to the command. Stored as a PHP serialized array, or an empty string if there are no parameters.

job_random
Random, non-unique, number used for concurrent job acquisition.

job_attempts
The number of times this job has been locked.

job_token
Field that conveys process locks on rows via process UUIDs. Unlocked jobs have this field set to an empty string.

job_token_timestamp
Timestamp when the job was locked. Unlocked jobs have this field null.

job_sha1
Base 36 SHA1 of the job parameters relevant to detecting duplicates.

Résumé du schéma
+-+--+--+-+-++ +-+--+--+-+-++ +-+--+--+-+-++
 * Field              | Type             | Null | Key | Default | Extra          |
 * job_id             | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * job_cmd            | varbinary(60)    | NO   | MUL |         |                |
 * job_namespace      | int(11)          | NO   |     | NULL    |                |
 * job_title          | varbinary(255)   | NO   |     | NULL    |                |
 * job_timestamp      | varbinary(14)    | YES  | MUL | NULL    |                |
 * job_params         | mediumblob       | NO   |     | NULL    |                |
 * job_random         | int(10) unsigned | NO   |     | 0       |                |
 * job_attempts       | int(10) unsigned | NO   |     | 0       |                |
 * job_token          | varbinary(32)    | NO   |     |         |                |
 * job_token_timestamp | varbinary(14)   | YES  |     | NULL    |                |
 * job_sha1           | varbinary(32)    | NO   | MUL |         |                |

+-+--+--+-+-++ +-+--+--+-+-++ +-+--+--+-+-++
 * Field              | Type             | Null | Key | Default | Extra          |
 * job_id             | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 * job_cmd            | varbinary(60)    | NO   | MUL |         |                |
 * job_namespace      | int(11)          | NO   |     | NULL    |                |
 * job_title          | varbinary(255)   | NO   |     | NULL    |                |
 * job_timestamp      | varbinary(14)    | YES  | MUL | NULL    |                |
 * job_params         | blob             | NO   |     | NULL    |                |
 * job_random         | int(10) unsigned | NO   |     | 0       |                |
 * job_attempts       | int(10) unsigned | NO   |     | 0       |                |
 * job_token          | varbinary(32)    | NO   |     |         |                |
 * job_token_timestamp | varbinary(14)   | YES  |     | NULL    |                |
 * job_sha1           | varbinary(32)    | NO   | MUL |         |                |

+---+-+--+-+-++ +---+-+--+-+-++ +---+-+--+-+-++
 * Field        | Type                | Null | Key | Default | Extra          |
 * job_id       | int(10) unsigned    | NO   | PRI | NULL    | AUTO_INCREMENT |
 * job_cmd      | varbinary(60)       | NO   | MUL | NULL    |                |
 * job_namespace | int(11)            | NO   |     | NULL    |                |
 * job_title    | varchar(255) binary | NO   |     | NULL    |                |
 * job_timestamp | varbinary(14)      | YES  | MUL | NULL    |                |
 * job_params   | blob                | NO   |     | NULL    |                |

+---+-+--+-+-++ +---+-+--+-+-++ +---+-+--+-+-++
 * Field        | Type                | Null | Key | Default | Extra          |
 * job_id       | int(10) unsigned    | NO   | PRI | NULL    | AUTO_INCREMENT |
 * job_cmd      | varbinary(60)       | NO   | MUL | NULL    |                |
 * job_namespace | int(11)            | NO   |     | NULL    |                |
 * job_title    | varchar(255) binary | NO   |     | NULL    |                |
 * job_params   | blob                | NO   |     | NULL    |                |

+---+-+--+-+-++ +---+-+--+-+-++ +---+-+--+-+-++
 * Field        | Type                | Null | Key | Default | Extra          |
 * job_id       | int(9) unsigned     | NO   | PRI | NULL    | AUTO_INCREMENT |
 * job_cmd      | varchar(255)        | NO   | MUL | NULL    |                |
 * job_namespace | int(11)            | NO   |     | NULL    |                |
 * job_title    | varchar(255) binary | NO   |     | NULL    |                |
 * job_params   | blob                | NO   |     | NULL    |                |