Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
What's the best strategy for limiting the number of processes created using background_process_start()? I'm thinking that I could count the number of active tasks in the background_process table and add additional ones to a queue for processing later. Anyone ever done anything similar?
Comments
Comment #1
gielfeldt CreditAttribution: gielfeldt commentedUltimate Cron 1.x does something similar by checking the number of processes in the background_process table.
Comment #2
gielfeldt CreditAttribution: gielfeldt commented