# Nameko retry backoff error

**URL:** <https://discourse.nameko.io/t/nameko-retry-backoff-error/544>\
**Category:** Uncategorized\
**Created:** [January 22, 2020, 1:48am UTC](https://discourse.nameko.io/t/nameko-retry-backoff-error/544 "2020-01-22T01:48:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kankburhan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.nameko.io/kankburhan/32/78_2.png) [@kankburhan](https://discourse.nameko.io/u/kankburhan)\
**Post date:** [January 22, 2020, 1:48am UTC](https://discourse.nameko.io/t/nameko-retry-backoff-error/544/1 "2020-01-22T01:48:53Z")

</div>

Hii, i am trying using nameko retry backoff, but i got error this:

```
(expected) error handling worker <WorkerContext [worker_consumer.consume] at 0x7faeaf1119e8>: Backoff(uninitialised)
Traceback (most recent call last):
  File "/home/ubuntu/.virtualenvs/chat-services/lib/python3.6/site-packages/nameko/containers.py", line 392, in _run_worker
    result = method(*worker_ctx.args, **worker_ctx.kwargs)
  File "serviceschat.py", line 74, in consume
    raise CustomBackOff()
services.premiumchat.CustomBackOff: Backoff(uninitialised)
[worker_consumer.consume.a1647889-a34d-49a5-a163-e67e2be7433c] entrypoint result trace

```

there is my code:

class CustomBackOff(Backoff):  
limit = 2  
schedule = [1000]

```
name = 'worker_consumer'
tq = Queue('DOCTORPREMIUM')

```

class Chats:  
@consume(tq)  
def consume(self, body):  
if body is problem:  
raise CustomBackOff()
