You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting the taskiq worker(Using the superuser permission when opening the Windows cmd):
taskiq worker mq.broker:broker
Detail error(when I press Ctrl + C):
[2025-03-11 14:31:36,728][taskiq.process-manager][WARNING][MainProcess] Workers are scheduled for shutdown.
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "E:\SmartOJ\smartoj-backend\venv\Scripts\taskiq.exe\__main__.py", line 7, in<module>
File "E:\SmartOJ\smartoj-backend\venv\Lib\site-packages\taskiq\__main__.py", line 73, in main
status = command.exec(sys.argv[1:])
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\SmartOJ\smartoj-backend\venv\Lib\site-packages\taskiq\cli\worker\cmd.py", line 27, inexecreturn run_worker(wargs)
^^^^^^^^^^^^^^^^^
File "E:\SmartOJ\smartoj-backend\venv\Lib\site-packages\taskiq\cli\worker\run.py", line 199, in run_worker
status = manager.start()
^^^^^^^^^^^^^^^
File "E:\SmartOJ\smartoj-backend\venv\Lib\site-packages\taskiq\cli\worker\process_manager.py", line 272, in start
os.kill(worker.pid, signal.SIGINT)
PermissionError: [WinError 5] 拒绝访问。
My device information:
Platform: Windows 11
Python version: Python 3.11.2
Taskiq version: 0.11.13
Activity
s3rius commentedon Mar 11, 2025
This happens because of permissions on your account.
Seems like
os.killoperation is restricted for your user.https://stackoverflow.com/a/6688913
Try fixing your user's permissions.
thcpdd commentedon Mar 13, 2025
Thank you for your sugesstion.
I have found many problems with Windows platform. There is no problem using it on Linux platform.