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

Set cron job to handle event expiration #66

Open
joedolson opened this issue Aug 2, 2024 · 1 comment
Open

Set cron job to handle event expiration #66

joedolson opened this issue Aug 2, 2024 · 1 comment
Milestone

Comments

@joedolson
Copy link
Owner

Right now, events go off sale at a fixed time before the event (defined in settings), or when they sell out or inventory is reduced below the sales margin.

The actual event sale expiration event actually happens when the add to cart form is executed, however, which means that in some cases there can be a significant delay between when an event goes off sale and when the off-sale notifications & ticket list is sent to the box office.

A relatively simple solution is to add a one-off cron for the event that will trigger the expiration event. It's still triggered based on visits, but no longer requires a visit to the sales page; and sites that need greater predictability can use real cron.

Question is when to create the cron job. Could create it at event creation, but then need to support removing and updating it if the event is changed. I could also create it on the fly during a load in advance of the event expiration, e.g. 24 hours before. At that point, event changes are unlikely, and it also means fewer cron events in the scheduler.

@joedolson joedolson added this to the 2.1 milestone Aug 2, 2024
@joedolson
Copy link
Owner Author

So I can follow up, this refers to https://mail.google.com/mail/u/0/#inbox/FMfcgzQVxtlTTbtzLWMdqhdcBwrFsQrQ

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