Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hub: support creation of subtasks with an inherited worker from parent task #230

Merged

Commits on Oct 18, 2023

  1. tests: extend the test_create_subtask test

    ... with worker and task state assertions.
    lzaoral committed Oct 18, 2023
    Configuration menu
    Copy the full SHA
    071612c View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2023

  1. hub: support creation of subtasks with an inherited worker from paren…

    …t task
    
    OpenScanHub expects the parent task and its subtasks to be executed on the
    same worker.  However, there is a race with the `assign_task` XML-RPC call
    because it does not guarantee that the subtask won't be assigned to another
    worker by the hub in the meantime.
    
    This commit adds a support for creation of subtasks pre-assigned to the
    same worker executing the parent task, thus, invalidating the necessary
    condition for the race described above.
    
    Related: openscanhub/openscanhub#156
    lzaoral committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    db85e67 View commit details
    Browse the repository at this point in the history