Skip to content

[Dashboard] Log tailer busy spins when reaches EOF  #44659

@alexeykudinkin

Description

@alexeykudinkin

What happened + What you expected to happen

We noticed that when our job was hanging with tasks producing no output (logs), tail_logs method was consuming 100% CPU.

While this is by design (awaiting new logs to tail them), this creates a wrong impression that this method is just in dead-lock busy-spinning.

This PR addresses that by

  • Considerably simplifies it
  • Prevents it busy-spinning

Versions / Dependencies

2.10

Reproduction script

NA

Issue Severity

Low: It annoys or frustrates me.

Metadata

Metadata

Labels

P2Important issue, but not time-criticalbugSomething that is supposed to be working; but isn't

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions