Batch API without a browser

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
mikeytown2's picture

I already use code that does batch processing in the background (no browser window used) in any hosting environment. The question is would something like this be useful to the Drupal community; if yes how can one override Drupal's batch operations to use my processor.

If your wondering I use my async workers in Imageinfo Cache and Boost. Imageinfo Cache has a better implementation then the one in Boost. I was thinking this could be it's own project as I find being able to do background processing very useful. So if your looking at how it's done, Imageinfo Cache has a fairly clean implementation. The one in boost is multi process but it's not clean so I wouldn't use it as the base. Making this multi process isn't that hard to do.

Thoughts?

Comments

development plan?

danithaca's picture

Hi mikeytown2,
Do you have a plan to extract your async worker code into a separate module? I don't work to write duplicate code for the sandbox project at http://drupal.org/sandbox/danithaca/1094642. Let me know. Thanks.

Background Batch

gielfeldt's picture

Hi mikeytown2

Don't know if you've already seen it, but there's a Background Batch module, which is part of Background Process. It does exactly this. Overrides the default batch API so that it runs in the background, meaning the progress indicator page is revisitable. It doesn't work for batch operations performed by update.php yet.