Pyspider cross-task send_message has no effect

first project

self.send_message("DETAIL", {"url": href }, url= "msg %s"%href)

second project name "DETAIL"

@every(minutes=7 * 60)
def on_start(self):
    pass
        

@config(priority=3)
def on_message(self, project, msg):
    self.crawl(msg["url"], callback=self.index)

       

Plan a project list, the second detail,
confirm that the send_message of the first project can be executed to that location
but the second project has not generated a task

and pyspider send_message "DETAIL" {"url": "http://www.qq.com"} does not respond either.

Mar.02,2021

self-question and answer,
1.project is not delivered because the website has been updated, resulting in the statement not being executed to
2. It is not executed on the command line because the passed msg is a string by default, and an exception occurs with the dict method.
these are all solved by log

.
Menu