Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Push context deadlines inside jobs and sync ops #726

Merged
merged 1 commit into from
Sep 1, 2017
Merged

Conversation

squaremo
Copy link
Member

Synchronising with the cluster can easily take tens of seconds, so it is better to have timeouts for individual operations or small batches of operations, rather than the whole thing.

Similarly, jobs can wait in the job queue for e.g., syncs to happen, so it is necessary to time them from when they start, not when they are requested.

Lastly, fix and use git.Repo.NoteRevList when answering JobStatus from commit notes, since that is exactly the expensive batch of git operations that motivated it.

Synchronising with the cluster can easily take tens of seconds, so it
is better to have timeouts for individual operations or small batches
of operations, rather than the whole thing.

Similarly, jobs can wait in the job queue for e.g., syncs to happen,
so it is necessary to time them from when they _start_, not when they
are requested.

Lastly, fix and use `git.Repo.NoteRevList` when answering JobStatus
from commit notes, since that is exactly the expensive batch of git
operations that motivated it.
Copy link
Contributor

@philwinder philwinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@squaremo squaremo merged commit b08d2a5 into master Sep 1, 2017
@squaremo squaremo deleted the timeout-jobs-etc branch September 1, 2017 09:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants