Skip to content

Commit

Permalink
Added animations to the top tips slides.
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnorton42 committed Oct 23, 2024
1 parent 8b63e91 commit da5ad2f
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

---
Expand Down Expand Up @@ -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.

---

Expand Down

0 comments on commit da5ad2f

Please sign in to comment.