Skip to content

[BUG] Collector timeout fallback at 4 minutes causes duplicate dispatch when actual collection takes longer #4203

Description

@hengyuss

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Now the collector will be assigned a timeout if it runs over 4 minutes, causing the same job to be executed twice when the actual collection exceeds 4 minutes.

Expected Behavior

The logic in dispatchCollectData should be executed only once, whether triggered by normal collection completion or timeout fallback — whichever comes first.

Steps To Reproduce

No response

Environment

HertzBeat version(s):

Debug logs

No response

Anything else?

i will fix it

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status
    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions