Skip to content

TaskWorker parsing task conditional on OTel context #1181

@dan-fernandes

Description

@dan-fernandes

Due to (what I think is) a miswritten conditional statement, the TaskWorker._cycle method will only accept new tasks if a current OpenTelemetry context is available.

The business logic dealing with a new TrackableTask should not only be executed if a tracing context exists.

if self._current_task_otel_context is not None:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions