Skip to main content

Questions tagged [batch-operations]

Use it for questions about the core API that allows developers to split a big task in several minor chunks or batches.

2 votes
0 answers
34 views

Within a batch step, $context['message'] defines what will show up above the progress bar in the UI. However, it seems it shows up after the execution of the step finished, which makes sense. I have ...
commonpike's user avatar
0 votes
1 answer
117 views

We have developed a batch process to fetch entities and retrieve the necessary details. Given the large number of entities, the process handles them in chunks of 100. We are not storing the processed ...
Jaswin Singh's user avatar
0 votes
2 answers
74 views

I'm trying to write a module to duplicate a series of nodes and to make sure there is no timeout I want to use the Batch Api for this. This is what I have at this moment in src/Controller/...
Joost's user avatar
  • 1,428
0 votes
0 answers
224 views

I'm working with a brand new install of Drupal 10 and am having issues with the administrator account (both the default one created at startup and my own personal account) having 'Access Denied' ...
Joseph Quinn's user avatar
1 vote
0 answers
101 views

In the event of a runtime error on a custom batch process how can i either quit the entire batch process or mark that the process was not able to complete?
blu's user avatar
  • 478
2 votes
2 answers
431 views

In a custom Drupal 9 module, I need to delete entities using Batch API without a form or user interface. The list of entity IDs are generated and the batch is built in hook_views_post_execute(). When ...
bacteriaman's user avatar
2 votes
0 answers
139 views

I'm importing a large dataset into the database using the BatchBuilder in Drupal. It takes more than one and a half hours to complete all the operations in the batch. The process starts with user ...
Abhi Das's user avatar
  • 121
1 vote
0 answers
960 views

I am trying to set a batch from a confirmation form. When it is submitted, this is the code: $operations = []; $operations[] = [ [UpdateEntity::class, 'execute'], ['field_group'] ]; $batch = ...
Kevin's user avatar
  • 28.2k
3 votes
1 answer
2k views

I have a content type to which I added an image field. The database has a custom table with different columns, including the image ID. Previously, I created a batch that writes data from this table to ...
nathan111777's user avatar
1 vote
2 answers
512 views

I am trying to create a drush command to run a batch process. When I run the command, the batch runs just once, and I get this error : in Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase-&...
el sparrow's user avatar
1 vote
0 answers
200 views

I have two modules, module_alpha and module_beta. Both modules install a database table with hook_schema() which they use to track information about published nodes. Data is logged in the table with ...
sonfd's user avatar
  • 8,214
1 vote
1 answer
1k views

The batch processed all the items, but instead of showing the finish message, I see the error "Allowed memory size of 536870912 bytes exhausted". When I debug the code, I notice that Drupal ...
Egor Elkin's user avatar
0 votes
0 answers
680 views

The existing code when a form is submitted I execute this batch : /** * {@inheritdoc} */ public function submitForm(array &$form, FormStateInterface $form_state) { $node_titles = ['node1', '...
Marwen Amri's user avatar
1 vote
1 answer
1k views

I have a form with 5 buttons and each button run a different batch, some batch processes take several minutes. I want to block the button if the batch processes is already running, because other user ...
Mauricio's user avatar
  • 117
0 votes
1 answer
404 views

I'm using the Views Data Export module for exporting Views as .csv. Standard exports work in most cases, but with larger table only batch exports work. The problem with batch exports is that the ...
user1205853's user avatar

15 30 50 per page
1
2 3 4 5
10