When starting a batch job, a token is generated and this token is session-bound. This means that if you start a batch job, logout and then login again, you're not able to see the progress indicator on the batch-page, e.g.: /batch?op=start&id=15
Bind to current user instead of session.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | bind_backround_batch_to_user-1350792-5.patch | 1.52 KB | patrickd |
Comments
Comment #1
patrickd commentedI'll close this, as Better Batch now handles this feature.
Comment #2
gielfeldt commentedI'll reopen this ticket, as this should work for background batch even without better batch
Comment #3
patrickd commentedOkay, so as background batch does replace (not wrap like better batch) this is quite easy to implement
If you've not started yet, I can make these changes and create a patch tomorrow!
Comment #4
gielfeldt commentedOk. Sounds exactly how I planned to implement it. I haven't begun yet. You're welcome to create a patch.
Comment #5
patrickd commentedall right :)
Comment #6
gielfeldt commentedLooks good and works for me. Do you wanna commit yourself, so you'll appear as the committer?
Comment #7
patrickd commentedMakes no difference to me, but I'll do it ;)
I'm not experienced about 6.x; can this be applied without problems there?
Comment #8
gielfeldt commentedMore or less. I can port it afterwards.
Comment #9
patrickd commentedokay, committed to 7.x-1.x and 8.x-1.x.
Comment #10
gielfeldt commentedHmmm ... this is probably more "less" than "more" due to Drupal 6 not having a hook_batch_alter() :-)
I'll find a way though.
Comment #11
gielfeldt commentedComment #12
gielfeldt commentedCommitted to 6.x-1.x-dev
Comment #13
ikeigenwijs commentedI hope/think this will solve my problems witch consecutive batches runs. in I'm developing for 6.22.