problem description
AMQP user process proccess sends sendMessage to work, and the process of calling TestTask occasionally reports an error
the environmental background of the problems and what methods you have tried
user proccess sends sendMessage to work, and the process of calling TestTask occasionally reports an error
is occasional.
prints three pid in these three nodes.
occasionally, worker"s pid will be the same as task"s pid. Under most normal circumstances, it is different.
swoole version 1.9.23 swooledistricted version 2.X
related codes
/ / Please paste the code text below (do not replace the code with pictures)
error code is as follows:
[ERROR] serious error occurred on the server
[ERROR] WORKER Error swoole_server::task (): task method can only be used in the worker process. (/ data/server/control_center_server/trunk/vendor/tmtbe/swooledistributed/src/Server/CoreBase/TaskCoroutine.php:42)
what result do you expect? What is the error message actually seen?
which peer Daniel hopes to answer, expect not to report an error, and the system is stable