Closed ironfroggy closed 6 years ago
I was thinking we wouldn't schedule the refresh tasks for the children until after the parent was done updating. Do the children need to have an order enforced amongst themselves?
No, you're right there. I was just thinking of them all being on the queue together, but they don't need to be.
We don't have any other celery tasks here yet. Do you want to include it and rewrite this branch before merging it?
I'm torn on whether this is worth adding celery to the system. Maybe @vkurup and @philtuska can weigh in?
If we don't switch to celery, I'd like to have some tests for the partitioning function, just so we're confident we're not accidentally missing refreshing any views.
I do think there's value in adding celery to our deployment (for this, and for the existing cronjobs), but I don't see an absolute need for it to be done prior to this PR, as long as we think it could easily be migrated to celery once it was set up.
Getting @philtuskha's input
Answering questions in order: