Part of lp.bugs.scripts.checkwatches
Class | TooMuchTimeSkew | Time difference between ourselves and the remote server is too much. |
Function | unique | Generate only unique items from an iterator. |
Function | suggest_batch_size | Suggest a value for batch_size if it's not set. |
Function | record_errors | Context manager to record errors in BugWatchActivity. |
Class | BaseScheduler | Run jobs according to a policy. |
Given the number of bug watches for a remote_system
, this sets a
suggested batch size on it. If remote_system
already has a batch
size set, this does not override it.
Parameters | remote_system | An ExternalBugTracker . |
num_watches | The number of watches for remote_system . |