Answer the question
In order to leave comments, you need to log in
How to select tasks to complete depending on their size and age?
There is a growing service, the essence of which is to read certain objects several times a day. Number of objects N . They are constantly added and removed by users a little bit, in general, the trend is growing.
Each object has two properties: the mass M and the timestamp T when it was last read.
Every X minutes, another batch of objects is collected by the cron for execution, which will update them T . In a pack, the total mass of objects is limited - no more than the limit L .
I'm trying to figure out how to solve three problems:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question