DatabaseQueue和BatchQueue之间的Drupal差异
看看a和a之间的区别,现在还不清楚?都是先进先出吗?它们会过期吗?串行表示非并发处理?来自Batch.php的源代码:DatabaseQueue和BatchQueue之间的Drupal差异,drupal,Drupal,看看a和a之间的区别,现在还不清楚?都是先进先出吗?它们会过期吗?串行表示非并发处理?来自Batch.php的源代码: /** * Defines a batch queue handler used by the Batch API. * * This implementation: * - Ensures FIFO ordering. * - Allows an item to be repeatedly claimed until it is actually deleted (
/**
* Defines a batch queue handler used by the Batch API.
*
* This implementation:
* - Ensures FIFO ordering.
* - Allows an item to be repeatedly claimed until it is actually deleted (no
* notion of lease time or 'expire' date), to allow multipass operations.
*
* Stale items from failed batches are cleaned from the {queue} table on cron
* using the 'created' date.
*
* @ingroup queue
*/
class Batch extends DatabaseQueue {
批处理扩展数据库队列。根据我的经验,batch
最常与表单一起使用,因为它将在构建批处理后自动处理该批处理
- 是的,先进先出
- 不,商品不会过期
- 是的,串行处理