Skip to content

Conversation

@jfontan
Copy link
Contributor

@jfontan jfontan commented Apr 6, 2018

The updater wakes up periodically and searches for repositories to
update. There is a configurable maximum of jobs per update cycle.
Currently it has three searches that are done one after the other until
the maximum number of jobs is reached or all the searches ar finished:

  • Repositories updated x days ago (we call these "old"). The priority
    for these update jobs is high.
  • Repositories updated x/2 days ago. The priority is normal.
  • Any other repository ordered by the difference between the last commit
    time and the last update time. Stagnant repos will have longer
    difference between those two times. The priority is low.

Needs: #246
Related: #64

jfontan and others added 8 commits April 3, 2018 19:52
Signed-off-by: Javi Fontan <jfontan@gmail.com>
This version supports priorities in AMQP queues

Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Signed-off-by: Javi Fontan <jfontan@gmail.com>
Previously all reference times were unset. This also caused the
repository last_commit_at to be invalid.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
The updater wakes up periodically and searches for repositories to
update. There is a configurable maximum of jobs per update cycle.
Currently it has three searches that are done one after the other until
the maximum number of jobs is reached or all the searches ar finished:

* Repositories updated x days ago (we call these "old"). The priority
  for these update jobs is high.
* Repositories updated x/2 days ago. The priority is normal.
* Any other repository ordered by the difference between the last commit
  time and the last update time. Stagnant repos will have longer
  difference between those two times. The priority is low.

Signed-off-by: Javi Fontan <jfontan@gmail.com>
@mcarmonaa mcarmonaa mentioned this pull request Apr 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant