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

Recalculate subs logic needs a cron trigger #1562

Open
DiegoTavares opened this issue Oct 29, 2024 · 0 comments
Open

Recalculate subs logic needs a cron trigger #1562

DiegoTavares opened this issue Oct 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DiegoTavares
Copy link
Collaborator

Describe the bug
Subscription accountability has a condition where, when running at large scale, values can become out of date. This bug exists since cue3 and a hotfix has been in place at imageworks since it was first uncovered. The root cause for this issue has never been fixed.

The hotfix was integrated into the open source repo at #1380 as a database function, but this function needs to be called on a schedule, something that's not possible (AFAIK) on postgres. SPI's current setup uses a cronjob on the db server to trigger the function every 2 hours, but this setup is far from ideal.

Expected behavior

Ideally this function should be called on a schedule by cuebot and not require an external cronjob. Something to take into consideration is that cuebot might have multiple instances active.

@DiegoTavares DiegoTavares added the bug Something isn't working label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant