From da5ad2f1caa4fd039b82232a438661a0288a8fba Mon Sep 17 00:00:00 2001 From: Phil Norton Date: Wed, 23 Oct 2024 21:03:57 +0100 Subject: [PATCH] Added animations to the top tips slides. --- src/slides.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/slides.md b/src/slides.md index 219608c..c6281c4 100644 --- a/src/slides.md +++ b/src/slides.md @@ -432,6 +432,12 @@ public static function batchProcess(array &$context): void { --- +## The Batch "finished" State + +- Use the `finished` state over the pre-loaded batch operations where possible. + +--- + # Running Batch With Drush --- @@ -560,17 +566,17 @@ function batch_update_example_update_10001(&$sandbox) { ## Top Tips -- If the data needs to be processed in real time then use a batch; otherwise use a standard queue. -- Kick off your batches in a form or controller, but process the batch in a separate class. This allows easy Drush integration. -- Use the `finished` property to make dynamic batches; rather than preloaded. +* If the data needs to be processed in real time then use a batch; otherwise use a standard queue. +* Kick off your batches in a form or controller, but process the batch in a separate class. This allows easy Drush integration. +* Use the `finished` property to make dynamic batches; rather than preloaded. --- ## Top Tips -- Keep your batch operations simple. Break them apart into separate operations if needed. -- Think about the footprint of your batch operations. Keep them small. You can still cause timeouts during the batch if you aren't careful. -- Try to allow batch operations to pick up where they left off. If any errors occur you can re-run to complete the task. +* Keep your batch operations simple. Break them apart into separate operations if needed. +* Think about the footprint of your batch operations. Keep them small. You can still cause timeouts during the batch if you aren't careful. +* Try to allow batch operations to pick up where they left off. If any errors occur you can re-run to complete the task. ---