Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Exponential backoff #353

Open
mjambon opened this issue Dec 14, 2021 · 1 comment
Open

Exponential backoff #353

mjambon opened this issue Dec 14, 2021 · 1 comment

Comments

@mjambon
Copy link

mjambon commented Dec 14, 2021

I think it would be great for the bot to operate with exponential backoff, so as to not bother the authors of issues that are expected to take a long time. The feature would consist of setting daysUntilStale to a value that increases with the age of the issue rather than being fixed. For example, an issue can be considered stale if the delay since the last activity exceeds half the age of the issue.

A timeline would look like this:

|------------------------------------------------------------------------------------>
^               ^               ^
creation        last activity   bot marks issue stale

|------------------------------------------------------------------------------------>
^                               ^                               ^
creation                        last activity                   bot marks issue stale
                                (user removes "stale" label)

The benefit is that long-term issues and short-term issues can coexist harmoniously, each getting stalebot interventions when appropriate and not too often. For an issue that stays open for a year, a sample schedule of stalebot interventions would be, assuming nobody touches the issue other than for removing the "stale" label:

  • creation date + 1 month
  • creation date + 2 months
  • creation date + 4 months
  • creation date + 8 months

Compare with a fixed delay of 2 months:

  • creation date + 2 months (too late?)
  • creation date + 4 months
  • creation date + 6 months
  • creation date + 8 months (too frequent)
  • creation date + 10 months (too frequent)
  • creation date + 12 months (too frequent)

What do you think?

@FranklinYu
Copy link

Folks, please also vote for actions/stale#34 like @mjambon did.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants