Skip to content

Commit

Permalink
Make queue an instance attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
clkao committed Apr 24, 2018
1 parent aa81e91 commit df5fe5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kubespawner/spawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from tornado import gen
from tornado.ioloop import IOLoop
from tornado.concurrent import run_on_executor
from traitlets import Type, Unicode, List, Integer, Union, Dict, Bool, Any
from traitlets import Type, Unicode, List, Integer, Union, Dict, Bool, Any, Instance
from jupyterhub.spawner import Spawner
from jupyterhub.utils import exponential_backoff
from jupyterhub.traitlets import Command
Expand Down Expand Up @@ -47,7 +47,7 @@ def pods(self):

class EventReflector(NamespacedResourceReflector):
kind = 'events'
queue = Queue(20)
queue = Instance(Queue, args=(20,))

list_method_name = 'list_namespaced_event'

Expand Down

0 comments on commit df5fe5d

Please sign in to comment.