Skip to content

checkJobs called too often in Task List #1261

@aliasaria

Description

@aliasaria

in Tasks.tsx it calls checkJobs();
every ten seconds using setInterval. (aside: normally we should use useSWR's built in refresh capabilities to refresh a list). But then in that loop it goes through every task one by one. So if you have 50 jobs, it is calling "checkstatus" so many times per second. And most of these jobs are complete.

The code says it only checks // Check each LAUNCHING and recently completed REMOTE job individually via provider endpoints

But my network panel is filled with check job requests see screenshot

Image

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