Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Patch for cleanup issue in boto.services.service #761

Open
wants to merge 1 commit into from

1 participant

@infamouse

This patch simply moves the cleanup call outside the try..except block to ensure it gets called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 16, 2012
  1. @infamouse
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  boto/services/service.py
View
2  boto/services/service.py
@@ -149,13 +149,13 @@ def main(self, notify=False):
self.save_results(results, input_message, output_message)
self.write_message(output_message)
self.delete_message(input_message)
- self.cleanup()
else:
empty_reads += 1
time.sleep(self.loop_delay)
except Exception:
boto.log.exception('Service Failed')
empty_reads += 1
+ self.cleanup()
self.notify('Service: %s Shutting Down' % self.name)
self.shutdown()
Something went wrong with that request. Please try again.