Skip to content

Don't run nightly main branch tasks when they have not changed #238

@sbidoul

Description

@sbidoul

Is your feature request related to a problem?

Over time, with the number of repos and branches growing, the main branch bot is taking longer and longer.
Since it fills the queue, some more important commands wait for a long time before being executed.

Describe the solution you'd like

An "easy" optimization would be to cache the last commit processed and not re-run the main branch task if the head of the branch has not changed.

Describe alternatives you've considered

  • do nothing: not sustainable in the long run
  • investigate running main branch task with a lower priority (in the sense of the celery queues) to free workers for high priority tasks such as merge commands

Additional context

Related to #235

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions