Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add batch_complete callback method #10

Open
ragulka opened this issue May 20, 2016 · 1 comment
Open

Add batch_complete callback method #10

ragulka opened this issue May 20, 2016 · 1 comment

Comments

@ragulka
Copy link

ragulka commented May 20, 2016

Currently there is no way to know when a certain batch has completed, as the complete() method is only called after the whole queue for a background process is complete. However, in certain scenarios, it's desirable to know when a certain batch of related items has completed, such as when running imports or exports on background.

It would be great if instead of simply calling $this->delete( $batch->key ) when a batch is complete, it would also call something like $this->batch_complete( $batch ).

@ianmjones
Copy link
Member

This seems like a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants