Skip to content

Pass tags and exclude-tags to workers. - #1976

Merged
cyberw merged 6 commits into
masterfrom
pass-tags-and-exclude-tags-to-workers
Jan 23, 2022
Merged

Pass tags and exclude-tags to workers. #1976
cyberw merged 6 commits into
masterfrom
pass-tags-and-exclude-tags-to-workers

Conversation

@cyberw

@cyberw cyberw commented Jan 20, 2022

Copy link
Copy Markdown
Collaborator

This required moving the call to filter_tasks_by_tags from Environment init to Runner.start/start_worker. Fixes #1882

Comment thread locust/test/test_main.py Outdated
print("task2")
"""
)
print(content)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this print here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@cyberw
cyberw merged commit 02d1f9e into master Jan 23, 2022
spilchen added a commit to spilchen/helm-charts that referenced this pull request Feb 21, 2022
As per locustio/locust#1976 the
--tags/--exclude-tags are passed into the master locust node.  The
master will pass them through to the workers.
max-rocket-internet pushed a commit to deliveryhero/helm-charts that referenced this pull request Feb 24, 2022
…286)

* Pass --tags/--exclude-tags through locust master

As per locustio/locust#1976 the
--tags/--exclude-tags are passed into the master locust node.  The
master will pass them through to the workers.

* Match chart version in README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--tags / --exclude-tags seems not taken in consideration when running distributed unless they are specified in every worker

2 participants