Advertisement
Guest User

Parallel Fine Generation

a guest
Sep 5th, 2013
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.44 KB | None | 0 0
  1. # Assuming @ids contains a list of circulation ids. Will the below actually work?
  2. # It doesn't seem to when I try it.
  3.  
  4. # Run the fine generator on the new circulations in parallel.
  5. my $multi = OpenSRF::MultiSession->new(
  6.     app => 'open-ils.storage',
  7.     cap => 4,
  8.     api_level => 1
  9. );
  10. foreach (@ids) {
  11.     $multi->request('open-ils.storage.action.circulation.overdue.generate_fines', $_);
  12. }
  13. $multi->session_wait(1);
  14. $multi->disconnect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement