Fork syncing is slow

Recently we update Stash from v2.12.1 to v3.9.1.

Everything went smoothly, but what I'm noticing now is that when I merge a pull request into a "root" repository, the "forks" aren't synced as quickly as before. It may take about 5-10 seconds now, whereas before it was practically immediate.

Can anything be done to improve the fork sync speed?

1 answer

5 votes
Bryan Turner Atlassian Team Jun 23, 2015


I'm one of the Stash developers, and the author of the fork syncing feature. Stash 3.3 revised how fork syncing is processed on the server. It also introduced a 30 second delay between when changes are made and when fork syncing runs to try and apply them in forks that have it enabled.

Fork syncing is a balancing act between the load it produces on the server and the usefulness it provides to developers. When multiple operations are received within that 30 second delay, fork syncing is able to internally combine them and synchronize them all in a single step, resulting in less load on the server.

Why 30 seconds? Because I didn't want to add a long delay, because the longer the delay is the more it impacts the usability of the feature, but I wanted some delay. The delay was based on the fact that we frequently see people push a change to a branch involved in a pull request, then go merge the pull request (often deleting the pull request's branch at the same time). That means if we did the processing immediately we'd likely run 2 or 3 different sync steps, but with a 30 second delay we most likely cover all of them at once.

At the moment there is no way to disable the 30 second delay. It wouldn't be difficult to add, though. You might consider raising a feature request at

Best regards,
Bryan Turner
Atlassian Stash

Thanks for the detailed response Bryan.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

272 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you