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

Use a cron instead of threads to update printers status #15

Merged
merged 2 commits into from
Dec 17, 2014

Conversation

guewen
Copy link
Member

@guewen guewen commented Nov 20, 2014

The implementation with threads was blocking the loading of the server in
multiprocess. Using a cron will lower the frequency of the updates but at
least it is simple and reliable.

Fixes #14

The implementation with threads was blocking the loading of the
server in multiprocess.  Using a cron will lower the frequency of
the updates but at least it is simple and reliable.

Fixes OCA#14
Avoid unnecessary UPDATE every minute
@guewen guewen force-pushed the base_report_to_printer-cron-issue14 branch from 6db8d1b to 2b5af7e Compare November 20, 2014 07:50
@coveralls
Copy link

Coverage Status

Coverage decreased (-2.1%) when pulling 2b5af7e on guewen:base_report_to_printer-cron-issue14 into 31c61a8 on OCA:8.0.

@coveralls
Copy link

Coverage Status

Coverage decreased (-2.31%) when pulling 2b5af7e on guewen:base_report_to_printer-cron-issue14 into 31c61a8 on OCA:8.0.

@pedrobaeza
Copy link
Member

What a cleaning! Indeed, this doesn't provide real time, but it's safer and don't include possible lockings.

👍

@alexis-via
Copy link
Contributor

Big code simplification ! 👍

lepistone added a commit that referenced this pull request Dec 17, 2014
Use a cron instead of threads to update printers status
@lepistone lepistone merged commit aaa6fc5 into OCA:8.0 Dec 17, 2014
@yvaucher
Copy link
Member

👍

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.

6 participants