i download the pyramid_celery from github.com,
and copy example long_running_with_tm    to my vitualenv path,and
install it: pip install -e . and then
just change celery broker_url in the development.ini ,i use windows and 
have no redis.

[celery]
BROKER_URL = amqp://guest:guest@localhost:5672//

when i visit the page http://127.0.0.0.1:6543 ,and input some letters in 
the textfield, 
and click add then the dos cmd window display the errors like this:

D:\pyramid64_py36\long_running_with_tm>celery worker -A 
pyramid_celery.celery_app --ini development.ini

 -------------- celery@USER-VII7S3CG60 v4.1.0 (latentcall)
---- **** -----
--- * ***  * -- Windows-7-6.1.7601-SP1 2017-09-27 16:31:11
-- * - **** ---
- ** ---------- [config]
- ** ---------- .> app:         __main__:0x39d7c88
- ** ---------- .> transport:   amqp://guest:**@localhost:5672//
- ** ---------- .> results:     disabled://
- *** --- * --- .> concurrency: 4 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this 
worker)
--- ***** -----
 -------------- [queues]
                .> celery           exchange=celery(direct) key=celery


[2017-09-27 16:36:17,930: ERROR/MainProcess] Received unregistered task of 
type 'long_running_with_tm.tasks.add_task'.
The message has been ignored and discarded.

Did you remember to import the module containing this task?
Or maybe you're using relative imports?

Please see
http://docs.celeryq.org/en/latest/internals/protocol.html
for more information.

The full contents of the message body was:
'[["fdfd"], {}, {"callbacks": null, "errbacks": null, "chain": null, 
"chord": nu
ll}]' (83b)
Traceback (most recent call last):
  File "c:\python36\lib\site-packages\celery\worker\consumer\consumer.py", 
line561, in on_task_received
    strategy = strategies[type_]
KeyError: 'long_running_with_tm.tasks.add_task'

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/e1455cc7-fec5-4a4a-a308-f6eac2393f2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to