Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
DatabaseQueue和BatchQueue之间的Drupal差异_Drupal - Fatal编程技术网

DatabaseQueue和BatchQueue之间的Drupal差异

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 (

看看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 (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
最常与表单一起使用,因为它将在构建批处理后自动处理该批处理

  • 是的,先进先出
  • 不,商品不会过期
  • 是的,串行处理