#! code: Drupal 11: Creating Custom Queues
Creating queues using the core queue classes in Drupal is fairly straightforward. You just need a mechanism of adding data to the queue and a worker to process that data.
As the data you add to the queue is serialised you can add pretty much any data you want to the queue, so the only limitation is rebuilding the data once you pull it out of the queue.
There are some situations where the core Drupal queue system needs to be altered in some way. You might want to separate the data into different tables, or have a different logic for creating or storing the queue items, or even integrate with a third party queue system for manage the queues.
Whilst all of these examples are possible, they require a certain amount of understanding of the queue API and need additional services and settings to get working.
In this article we will look at how to create a custom queue, along with the queue factory needed to integrate that queue with Drupal. We will also look at some settings needed to swap out certain queues for you custom queue implementations. All of the code seen in this article is available in our Drupal Queue Examples repository on GitHub, specifically the queue_custom_example module.
First, let's look at what is requires for a queue to work in Drupal.
Create A Custom Queue With The QueueInterface Interface
The interface \Drupal\Core\Queue\QueueInterface is used to build the framework of the queue, which is used to manage the queue items. Your queue object must have the following methods.
philipnorton42 Sun, 01/19/2025 - 19:54Freelock Blog: Drupal CMS: Making the easy stuff easy
Drupal CMS: Making the easy stuff easy
Jan 17, 2025 By John LockeIn the past couple days I've gotten two different questions regarding building functionality out in WordPress. This seems a bit...weird with timing, given that Drupal CMS just launched three days ago!
Ask Freelock Read MoreThe Drop Times: Building the Digital City: Why the Middle Ground is the Future of Web Development
Droptica: How to create inquiry form in Drupal? Instructions
Contact forms are an integral part of any modern website, especially for businesses that want customers to contact them quickly or send detailed questions. In this article, I’ll show you step-by-step how to prepare a business-specific inquiry form in Drupal. I invite you to read the article or watch a video of the “Nowoczesny Drupal” series.
Golems GABB: ECA module and integration with AI
The ECA module, in combination with generative neural networks, opens up new possibilities for automating content creation. Combining the capabilities of ECA with powerful generative neural networks, such as OpenAI's GPT, opens up new horizons for automating and personalizing many workflows, from creating meta descriptions to generating ideas for new articles.
Read on our blog to learn how to make your content marketing more efficient and scalable, freeing up time for creative tasks with the ECA module and its integration with AI.
Sitback Solutions: Drupal CMS has arrived: revolutionising digital experiences for businesses
MidCamp - Midwest Drupal Camp: MidCamp 2025: Empowering Tech Professionals to Thrive
MidCamp 2025: Empowering Tech Professionals to Thrive
MidCamp 2025 is on the horizon, promising to bring tech professionals together for an immersive learning and networking experience. As a cornerstone event for developers, designers, and project managers, MidCamp offers hands-on workshops, insightful sessions, and opportunities to connect with industry leaders.
For many attendees, however, one hurdle remains: securing their employer’s approval to attend. Understanding this challenge, MidCamp organizers have launched a Convince Your Boss Tool, designed to help potential attendees articulate the value of attending.
The tool provides:
- A clear breakdown of ROI: Demonstrating how MidCamp attendance translates to skill development and actionable insights for your team.
- Customizable benefits summaries: Tailored arguments to show how MidCamp aligns with your company’s goals.
- Practical conversation starters: Tips for framing the ask in a way that resonates with decision-makers.
MidCamp’s agenda is packed with opportunities to enhance your professional toolkit, including sessions on cutting-edge technologies, effective collaboration practices, and insights from leading voices in the industry.
“Investing in professional development is key to staying competitive in today’s fast-evolving tech landscape,” says a MidCamp representative. “This tool empowers attendees to advocate for their growth while demonstrating value to their employers.”
Use the Tool to Convince Your Boss
Tickets Are Available Now!
Ready to join us at MidCamp 2025? Grab your tickets today and secure your spot at this year’s premier tech event. Don’t wait—tickets are limited!
Stay in the Loop
Don’t miss a beat!
- Join us on MidCamp Slack to chat and get updates.
- Follow us on socials, including Bluesky and Mastodon, for announcements and news.
Keep an eye on our news page and subscribe to our newsletter for updates on the venue, travel options, social events, and speaker announcements.
MidCamp 2025 is your chance to learn, grow, and connect—don’t miss out!