Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Drush for Developers - Second Edition
  • Table Of Contents Toc
Drush for Developers - Second Edition

Drush for Developers - Second Edition

By : Juan Pablo Novillo Requena, Juan P Novillo Requena
4.5 (6)
close
close
Drush for Developers - Second Edition

Drush for Developers - Second Edition

4.5 (6)
By: Juan Pablo Novillo Requena, Juan P Novillo Requena

Overview of this book

This book is a best fit for backend developers with a basic knowledge of Drupal's APIs and some experience using the command line. Perhaps you already worked on one or two Drupal projects, but have never dived deep into Drush's toolset. In any case, this book will give you a lot of advice by covering real-world challenges in Drupal projects that can be solved using Drush.
Table of Contents (8 chapters)
close
close
2
2. Keeping Database Configuration and Code Together
7
Index

Chapter 3. Running and Monitoring Tasks in Drupal Projects

Looking at Wikipedia for the definition of a task (http://en.wikipedia.org/wiki/Task), I found two of them. Here they are:

  • In project management, an activity that needs to be accomplished within a defined period of time
  • In computing, a program execution context

Some examples of tasks in Drupal projects are clearing caches, indexing content into a search engine, or importing content from a third-party API. These can be classified in the following types:

  • One-off: This includes Drupal's database updates
  • On demand: This includes reindexing all content in Apache Solr
  • Periodic: This would be the case of Drupal's cron

Drush is really good at running long tasks in an isolated process. It supports both Batch and Queue APIs, so the workload can be either split into batches or workers, respectively. In this chapter, we will see some tips and examples of best practices to run tasks against a Drupal project using Drush. Here are...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Drush for Developers - Second Edition
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon