Skip to content

After Locust upgrade, parameter 'headless = true' in conf file does not work as expected. #3225

@jitendranair

Description

@jitendranair

Prerequisites

Description

Hello Team,

I am on Oracle-Linux-9.6 upgraded Locust-2.14.2 (on Python-3.9.21) to Locust-2.40.5 (on Python-3.12.9)

On Locust-2.14.2 (on Python-3.9.21) I was using the below conf-file and the web-server is not started (as expected) and the test starts running immediately.

home.conf

headless = true
users = 200
spawn-rate = 1
csv = "stats/home"

After upgrading to Locust-2.40.5 (on Python-3.12.9) the same conf above does not work and the web-server is started (not expected) and nothing proceeds on the console! But changing 'headless = true' to 'headless = yes' works!

As per 2.40.5 version docs @ "https://docs.locust.io/en/stable/configuration.html#locust-conf" 'headless = true' should work right?

Regards
J

Command line

locust -f home.py --config=home.conf --host="https://example.com" --iterations=1

Locustfile contents

from locust import HttpUser, task


class Home(HttpUser):
    @task
    def home(self):
        self.client.get("/")

Python version

Python-3.12.9

Locust version

2.40.5

Operating system

Oracle-Linux-9.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughacktoberfestSee https://hacktoberfest.digitalocean.com for more info

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions