Skip to content

Bug: Bound invokes to dedicated worker are not respected in graph action #58

@PiotrKorkus

Description

@PiotrKorkus

Original report: https://github.com/qorix-group/inc_orchestrator_internal/issues/380

Describe the bug:

Actions bound to dedicated worker are executed on different threads when they are included in Graph.

Steps to reproduce the behavior:

  1. Checkout git switch piotrkorkus_complex_graphs
  2. cd component_integration_tests/rust_test_scenarios
  3. cargo run -- --name orchestration.graphs.dedicated_graph --input '{"runtime": {"task_queue_size": 256, "workers": 4, "dedicated_workers": [{"id": "dedicated_worker_0"}]}}'

Observed behavior:

All sync funtions 1-5 are reported to be executed on different threads (workers).

Expected behavior

As all tags are bound to the same dedicated worker they should be executed on the same thread.
You can compare that commented concurrency code in graph_with_dedicated in component_integration_tests/rust_test_scenarios/src/tests/orchestration/orchestration_graph.rs works correct - all actions are executed on the same thread.

Occurrence:

Always

Attachments / Logs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions