Browse Source

Removed leftover statements

Ask Solem 14 năm trước cách đây
mục cha
commit
b166de221e
1 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 6 4
      examples/app/myapp.py

+ 6 - 4
examples/app/myapp.py

@@ -9,6 +9,11 @@ Usage:
    >>> add.delay(16, 16).get()
    32
 
+
+You can also specify the app to use with celeryd::
+
+    $ celeryd -l info --app=myapp.celery
+
 """
 from celery import Celery
 
@@ -17,11 +22,8 @@ celery = Celery("myapp")
 celery.conf.update(BROKER_HOST="localhost")
 
 
-@celery.task(accept_magic_kwargs=False)
+@celery.task
 def add(x, y, **kwargs):
-    print("add id: %r %r %r" % (add.request.id, add.request.args,
-        add.request.kwargs))
-    print("kwargs: %r" % (kwargs, ))
     return x + y
 
 if __name__ == "__main__":