Skip to content

[Bug] Clicking the immediate execution button several times launches the process several times. #120

Description

@steven-briais-mlp

Describe the bug
A clear and concise description of what the bug is.

When I click several times in a row on the button to execute a command immediately, the process runs several times at the same time and in the same log file.

To Reproduce
Steps to reproduce the behavior:

(You must have a registered command in the database)

  1. Go to admin/commands.
  2. Click several times on "execute immediately".
  3. See the multiple confirmation flash messages on admin/commands.
  4. See that the rendering in the log file is done several times.
  5. See that the command logic is executed several times.
  6. I see only one executed command recorded in the database in the table synolia_scheduled_commands.

Expected behavior
A clear and concise description of what you expected to happen.

  • I only see a confirmation message on admin/commands.
  • I only see one execution of the command in the log file.
  • I only see one execution of the command logic.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Additional context
Add any other context about the problem here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions