We want to export webform submissions for certain webforms each day. To achieve this we use hook_cron. As webform_results_export is deprecated we use webform_results_export_batch and process the batch with the background_batch module.
The webform_results_export_batch sets some default options in the batch-array (range_type, components, .... - see function webform_results_download_default_options). But range[batch_size] option is no default option. This leads to a problem in the function processing the single batch rows. As ceil($context['sandbox']['sid_count'] / $options['range']['batch_size']) always evaluates to INF the 'batch_max'-Option also is INF and the batch-process will never finish.

CommentFileSizeAuthor
#2 2894497-batch_size.patch575 byteszuernbernhard

Comments

zuernBernhard created an issue. See original summary.

zuernbernhard’s picture

StatusFileSize
new575 bytes

Here is a patch with a default batch_size of 10 which solves the problem.

liam morland’s picture

Status: Active » Needs review
liam morland’s picture

Status: Needs review » Needs work

Patch Failed to Apply

liam morland’s picture

Status: Needs work » Closed (outdated)

Drupal 7 is no longer supported. If this applies to a supported version, please re-open.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.