catch and raise gather exception, acking the message
This commit is contained in:
parent
845c9927a8
commit
0b5c3c608a
|
@ -122,7 +122,11 @@ def gather_callback(channel, method, header, body):
|
||||||
# Get a list of harvest object ids from the plugin
|
# Get a list of harvest object ids from the plugin
|
||||||
job.gather_started = datetime.datetime.now()
|
job.gather_started = datetime.datetime.now()
|
||||||
|
|
||||||
|
try:
|
||||||
harvest_object_ids = harvester.gather_stage(job)
|
harvest_object_ids = harvester.gather_stage(job)
|
||||||
|
except Exception, e:
|
||||||
|
channel.basic_ack(method.delivery_tag)
|
||||||
|
raise
|
||||||
|
|
||||||
job.gather_finished = datetime.datetime.now()
|
job.gather_finished = datetime.datetime.now()
|
||||||
job.save()
|
job.save()
|
||||||
|
|
Loading…
Reference in New Issue