slimta / python-slimta-cloudstorage

Adds a queue storage backend interfacing with common service providers.
MIT License
1 stars 0 forks source link

KeyError exception #3

Open rgcarrasqueira opened 10 years ago

rgcarrasqueira commented 10 years ago

Hi again Ian!

When I use CloudStorage with many process using the same bucket and the same queue, I´m getting this error bellow, any clue to solve this?

Thanks so much!

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "/home/appsender/production/web_app/appsender.sender/src/slimta/slimta/queue/__init__.py", line 319, in _retry_later
    attempts = self.store.increment_attempts(id)
  File "/home/appsender/production/web_app/appsender.sender/src/slimta-cloudstorage/slimta/cloudstorage/__init__.py", line 91, in increment_attempts
    timestamp, attempts = self.obj_store.get_message_meta(id)
  File "/home/appsender/production/web_app/appsender.sender/src/slimta-cloudstorage/slimta/cloudstorage/aws.py", line 141, in get_message_meta
    key = self._get_key(id)
  File "/home/appsender/production/web_app/appsender.sender/src/slimta-cloudstorage/slimta/cloudstorage/aws.py", line 103, in _get_key
    raise KeyError(id)
KeyError: u'12c04387-1906-47d2-ac26-024c2836d2df'
<Greenlet at 0x1d0fa50: <bound method Queue._retry_later of <Queue at 0x140ec30>>(u'12c04387-1906-47d2-ac26-024c2836d2df', <Envelope at 0x1d09a90, sender=u'5326707b70cba91fb, <Reply code='450' message='4.3.0 10.0 seconds'>)> failed with KeyError