We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When running distributed, locust master crashes on Python 3.7.
In a master/slave (no-web) locust scenario, the master crashes immediately upon the slave connecting.
The test starts and runs to completion.
Sending hatch jobs to 1 ready clients Traceback (most recent call last): File "/Users/sjagoe/.local/share/virtualenvs/locust/bin/locust", line 10, in <module> sys.exit(main()) File "/Users/sjagoe/.local/share/virtualenvs/locust/lib/python3.7/site-packages/locust/main.py", line 505, in main runners.locust_runner.start_hatching(options.num_clients, options.hatch_rate) File "/Users/sjagoe/.local/share/virtualenvs/locust/lib/python3.7/site-packages/locust/runners.py", line 310, in start_hatching self.server.send_to_client(Message("hatch", data, client.id)) File "/Users/sjagoe/.local/share/virtualenvs/locust/lib/python3.7/site-packages/locust/rpc/zmqrpc.py", line 15, in send_to_client self.socket.send_multipart([msg.node_id.encode(), msg.serialize()]) AttributeError: 'bytes' object has no attribute 'encode'
Code provided below.
$ locust -t 1m -c 10 -r 10 --no-web -H http://localhost:8000 --expect-slaves 1 --master
$ locust --slave --master-host localhost
from locust import HttpLocust, TaskSet, task class MyTasks(TaskSet): @task def task(self): self.client.get('/health') class MyLocust(HttpLocust): min_wait = 1000 max_wait = 1000 task_set = MyTasks
This is not really necessary; the test doesn't get far enough to make requests.
from flask import Flask app = Flask('app') @app.route('/health') def health(): return 'OK', 200
The text was updated successfully, but these errors were encountered:
It seems this is fixed by 0.11.0 (#972), which I hadn't noticed released.
FYI 0.11.0 doesn't appear on github releases or in the changelog, nor is it tagged.
Sorry, something went wrong.
No branches or pull requests
When running distributed, locust master crashes on Python 3.7.
Description of issue
In a master/slave (no-web) locust scenario, the master crashes immediately upon the slave connecting.
Expected behavior
The test starts and runs to completion.
Actual behavior
Environment settings
Steps to reproduce (for bug reports)
Code provided below.
locustfile
A basic app to test
This is not really necessary; the test doesn't get far enough to make requests.
The text was updated successfully, but these errors were encountered: