Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

KernelScheculer.CurrentValue does not reflect the correct value when operations are nested more than 2 levels deep #3236

Open

Description

@shyamnamboodiripad

Consider the case where a 'grandchild' operation is scheduled from within a 'child' operation, where the 'child' operation itself is scheduled from within a 'parent' operation. In other words, the operations are nested 3 levels deep.

Because KernelScheduler._currentlyRunningOperation is reset (to default) each time the currently executing operation completes, KernelScheduler.CurrentValue ends up returning the 'parent' operation (i.e., the value of KernelScheduler._currentlyRunningTopLevelOperation) at the point when the 'grandchild' operation is completed and the scheduler resumes executing the 'child' operation. Ideally the 'child' operation should be returned at this point.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions