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

Make the anitya_cron multithreaded and drop support for the progress-bar #178

Merged
merged 2 commits into from Jun 28, 2015

Conversation

pypingou
Copy link
Member

With this version, using 10 threads running the cron drops from 90minutes
to less than 10 minutes.

With this version, using 10 threads running the cron drops from 90minutes
to less than 10 minutes.
PBAR = False
def update_project(project):
""" Check for updates on the specified project. """
print(project.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You always run as python3? or is there a from __future__ import print_function here that I'm missing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems that print() works fine in python 2.7 without the import of __future__ (tested on pkgdb02 with python 2.7.5).

That being said, it should be a call to the logger anyway :)

@ralphbean
Copy link
Contributor

👍 as-is, with two non-blocking questions above.

pypingou added a commit that referenced this pull request Jun 28, 2015
Make the anitya_cron multithreaded and drop support for the progress-bar
@pypingou pypingou merged commit 8223855 into master Jun 28, 2015
@pypingou pypingou deleted the multithreaded_cron branch June 28, 2015 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants