Skip to content

On Stop causes the task to continue #1552

@masonCaminer

Description

@masonCaminer

Describe the bug

If I add a new table concurrently, I click Stop, and then my on_stop method will be executed. On_stop is deleting the table. At this moment, one user will start executing on_stop and the other user will continue to execute task

Expected behavior

Task is no longer executed when on_stop is expected

Actual behavior

The Task is still executed

Steps to reproduce

  1. Task is a new table
  2. On_stop removes the table one by one

Environment

  • OS:
  • Python version: 3.8
  • Locust version: 1.2.3
  • Locust command line that you ran: locust -f src/loadTest/11_add_core.py --users=20 --spawn-rate=20
  • Locust file contents (anonymized if necessary):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions