0

我每天有大约 250,000 个重复任务;其中大约五分之一可能会以每天不同的预定日期时间进行更新。

这可以在 Celery 中有效地完成吗?- 我担心芹菜的beat.py

    def tick(self):
        """Run a tick, that is one iteration of the scheduler.

           Executes all due tasks.

       """
        remaining_times = []
        try:
            for entry in values(self.schedule):
                next_time_to_run = self.maybe_due(entry, self.publisher)
                if next_time_to_run:
                    remaining_times.append(next_time_to_run)
        except RuntimeError:
            pass

        return min(remaining_times + [self.max_interval])
4

0 回答 0