Skip to content

[BUG] It's possible to run multiple tasks with the same ID #3

@AlexPykavy

Description

@AlexPykavy

Steps to reproduce:

  • Run curl -v -d '{\"id\": \"44923378-ac56-4870-a64c-e97aad95a0db\", \"name\": \"myapp\", \"executable\": \"sleep\", \"args\": [\"infinity\"]}' http://localhost:8080/tasks in PowerShell
  • Run curl -v -d '{\"id\": \"44923378-ac56-4870-a64c-e97aad95a0db\", \"name\": \"myapp\", \"executable\": \"sleep\", \"args\": [\"infinity\"]}' http://localhost:8080/tasks in PowerShell

Expected behavior:

  • The second requests fails

Actual behavior:

  • The second request succeeds and the first process is orphaned :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions