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

Consolidate gaps after a trim #75

Open
anagainaru opened this issue Jun 20, 2019 · 1 comment
Open

Consolidate gaps after a trim #75

anagainaru opened this issue Jun 20, 2019 · 1 comment

Comments

@anagainaru
Copy link
Owner

Inside ScheduleGaps.trim function:

        self.gaps_list = [[max(current_time, gap[0]), gap[1], gap[2]] for gap
                          in self.gaps_list]
        self.__consolidate(self.gaps_list)

[200, 1000] becomes [800, 1000] for trim(800)

Optimization: consolidate only the entries that have been modified

@anagainaru
Copy link
Owner Author

multiple_one_node_jobs unit test seems to be slow for the online scheduler (the number of gaps held by the online might be correlated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant