瀏覽代碼

modify README

tomoya 1 年之前
父節點
當前提交
578361c1ac
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      README.md

+ 8 - 6
README.md

@@ -39,23 +39,25 @@ Worker Options:
                                     Set custom prefetch multiplier value for
                                     this worker instance.
 Pool Options:
-  * -c, --concurrency <concurrency> 
+  * -c, --concurrency <concurrency>
                                     Number of child processes processing the  
                                     queue.  The default is the number of CPUs  
-                                    available on your system.  
+                                    available on your system.
+    
 ``` celery worker --help ``` can get more infomation.  
+
 ### woker in Windows
 add ``` --pool=solo ``` option   
 
 ### Calling the task
 ```shell
->>> from tasks import add
->>> add.hello()
+>>> from tasks import hello
+>>> hello.delay()
 ```
 If your celery app set rsult backend
 ```
->>> from tasks import add  
->>> result = add.hello()
+>>> from tasks import hello  
+>>> result = hello.delay
 ```
 The ready() method returns whether the task has finished processing or not:
 ```