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

Element delete doesn't delete entries in Queue #36

Open
sfsmfc opened this issue Aug 10, 2023 · 1 comment
Open

Element delete doesn't delete entries in Queue #36

sfsmfc opened this issue Aug 10, 2023 · 1 comment

Comments

@sfsmfc
Copy link
Contributor

sfsmfc commented Aug 10, 2023

If you delete an entry faster as the queue can execute an index job, you run into an error "Element #9055834 (site #1) not found (type: craft\elements\Entry)", because the element doesn't exists anymore. The delete action should also delete index entries in the queue to prevent such an error.

Tasks to reproduce this error:

  • set "runQueueAutomatically" to false in config/general.php
  • create a new entry
  • a new index entry will be pushed into queue
  • delete this new entry
  • execute the queue

I will look, if I could make a patch for this.

@sfsmfc
Copy link
Contributor Author

sfsmfc commented Aug 16, 2023

Pull-Request #37 is ready for review.

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

No branches or pull requests

1 participant