catch and raise gather exception, acking the message

This commit is contained in:
kindly 2013-03-25 11:57:57 +00:00
parent 845c9927a8
commit 0b5c3c608a
1 changed files with 5 additions and 1 deletions

View File

@ -122,7 +122,11 @@ def gather_callback(channel, method, header, body):
# Get a list of harvest object ids from the plugin
job.gather_started = datetime.datetime.now()
try:
harvest_object_ids = harvester.gather_stage(job)
except Exception, e:
channel.basic_ack(method.delivery_tag)
raise
job.gather_finished = datetime.datetime.now()
job.save()