use D6 batch API ?
yched - August 18, 2007 - 18:39
| Project: | Retease |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
This module is one of the typical use cases of the new D6 'batch API' : progressive operations spread over several HTTP requests (update.php-style) to avoid PHP timeout.
An example module is available at http://cvs.drupal.org/viewvc.py/drupal/contributions/docs/developer/exam... to illustrate the use of the API.

#1
Is batch API a foreground batch and not a background batch? Can it be made to work in the background? Does the batch API require the user to stay on that page and watch the conversion while it's happening?
Is there a way to add PAUSE/RESUME/CANCEL buttons to the batch progress page?
Thanks for the suggestion?
#2
Is batch API a foreground batch and not a background batch?
foreground
Can it be made to work in the background?
No, the 'progressive' thing relies on AHAH or HTTP redirects (when JS disabled), so it requires that a browser actually displays the progressbar.
Does the batch API require the user to stay on that page and watch the conversion while it's happening?
Yes, sort of. The user can continue browsing in a separate tab...
It's very much like what you see in D5 with update.php, actually.
Is there a way to add PAUSE/RESUME/CANCEL buttons to the batch progress page?
Not currently - could be a nice addition for D7, though :-)
#3
+1
I'd even offer to do the rewrite, which should be doable in a few minutes.
The cron functionality could be kept in parallel - though I can't really think of a use-case where one wouldn't want to fix all teasers in one fell swoop. Likewise, I can't think of a use-case for pausing the batch; you can either stop/cancel it (and we can store the last processed nid to resume later on) or you can open a new browser tab to do whatever you want in parallel.