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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2894497-batch_size.patch | 575 bytes | zuernbernhard |
Comments
Comment #2
zuernbernhard commentedHere is a patch with a default batch_size of 10 which solves the problem.
Comment #3
liam morlandComment #4
liam morlandPatch Failed to Apply
Comment #5
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.