Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Assuming @ids contains a list of circulation ids. Will the below actually work?
- # It doesn't seem to when I try it.
- # Run the fine generator on the new circulations in parallel.
- my $multi = OpenSRF::MultiSession->new(
- app => 'open-ils.storage',
- cap => 4,
- api_level => 1
- );
- foreach (@ids) {
- $multi->request('open-ils.storage.action.circulation.overdue.generate_fines', $_);
- }
- $multi->session_wait(1);
- $multi->disconnect();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement