You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create a user option for controlling automatic repo refreshes #4950
Is your feature request related to a problem? Please describe.
I have an issue when GitHub Desktop tries to refresh repositories automatically. The refreshes seem to happen fairly often and, occasionally, at inconvenient times. This can slow up my work as the refreshes may take up to a minute to complete.
Describe the solution you'd like
A user option for controlling the frequency (eg, every 30 minutes) of automatic repository refreshes, or disabling automatic refreshes entirely, would help address this problem.
Describe alternatives you've considered
If the refreshes could be completed more quickly, that would also address this problem.
Teachability, Documentation, Adoption, Migration Strategy
Users will be able to set automatic refreshing to the frequency that works best for them, or just refresh manually, if they prefer.
The refreshes seem to happen fairly often and, occasionally, at inconvenient times.
Background fetching is set to occur every 60mins, but might also be kicking in if you switch repositories often (when we setup the background fetcher). At the lower end, we skip a background fetch if we know you've fetched within the last 2 minutes, but maybe we can bump that up to something higher.
Background fetching is set to occur every 60mins, but might also be kicking in if you switch repositories often...
I wonder if it might also be triggered when I switch back to the Desktop from another app? (I'm working in Windows 7.) This could just be a coincidence, but it seems like the Desktop is often refreshing whenever I switch back to it from something else. (Which is partly why it is somewhat annoying.) I can try to be more mindful of when this is happening and report back if I note anything concrete, if that's helpful.
Activity
shiftkey commentedon Jun 15, 2018
@ptatian thanks for the feedback.
Background fetching is set to occur every 60mins, but might also be kicking in if you switch repositories often (when we setup the background fetcher). At the lower end, we skip a background fetch if we know you've fetched within the last 2 minutes, but maybe we can bump that up to something higher.
desktop/app/src/lib/stores/app-store.ts
Lines 171 to 172 in cd57a58
This actually dovetails nicely with #1128 which has been an ongoing discussion for users who want to disable this completely.
ptatian commentedon Jun 15, 2018
Thank you, @shiftkey.
I wonder if it might also be triggered when I switch back to the Desktop from another app? (I'm working in Windows 7.) This could just be a coincidence, but it seems like the Desktop is often refreshing whenever I switch back to it from something else. (Which is partly why it is somewhat annoying.) I can try to be more mindful of when this is happening and report back if I note anything concrete, if that's helpful.
shiftkey commentedon Jun 15, 2018
@ptatian the work that occurs when you re-focus on the app is explained here:
desktop/app/src/ui/index.tsx
Lines 160 to 170 in cd57a58
The work here should all be local-only, but you can read the function contents here:
desktop/app/src/lib/stores/app-store.ts
Line 1736 in cd57a58
Let me know if you notice anything specific about the fetching on your setup.
steveward commentedon Nov 12, 2021
Background fetching can now be disabled, so I believe this can be closed.