-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Goes into an infinite loop if the script takes too long #27
Comments
Did you fix this? It looks like two pushes are running at the same time. I know working with this script we always needed to wait before doing a second push because if we didn't we would have unpredictable results. |
@Wanchai so I think this is a case of handle_rate_limit coming into play. Basically when a 429 HTTP status code is hit the rate limiter stops execution for a bit so BitBucket isn't hammered. Did both of your pushes affect the same files? I just did a test with about 4k files and this is what the results were:
logconnection.txt
So basically I think what was happening for you might have been that you started the push and then it was still running because there is no end "Push completed" line in your sample. Does that match your findings? |
Since merging PR #24, I tried to add a folder containing ~700 files and the proccess started all over after file 141:
22.08.2019, 00:24:44: Script called for BitBucket JSON payload
22.08.2019, 00:24:44: Received a push from {###}
22.08.2019, 00:24:44: Modifications detected on the branch {master}
22.08.2019, 00:24:44: Commencing transfer for change 1
22.08.2019, 00:24:46: 703 files changed.
22.08.2019, 00:24:46: Created new directory fol2 copy
22.08.2019, 00:24:47: Uploaded: ../bb/fol2 copy/001.txt
22.08.2019, 00:24:47: Uploaded: ../bb/fol2 copy/002.txt
22.08.2019, 00:24:48: Uploaded: ../bb/fol2 copy/003.txt
22.08.2019, 00:24:48: Uploaded: ../bb/fol2 copy/004.txt
[...]
22.08.2019, 00:25:43: Uploaded: ../bb/fol2 copy/140.txt
22.08.2019, 00:25:44: Uploaded: ../bb/fol2 copy/141.txt
22.08.2019, 00:25:44: Script called for BitBucket JSON payload
22.08.2019, 00:25:44: Received a push from {###}
22.08.2019, 00:25:44: Modifications detected on the branch {master}
22.08.2019, 00:25:44: Commencing transfer for change 1
22.08.2019, 00:25:44: Uploaded: ../bb/fol2 copy/142.txt
22.08.2019, 00:25:45: Uploaded: ../bb/fol2 copy/143.txt
22.08.2019, 00:25:45: Uploaded: ../bb/fol2 copy/144.txt
22.08.2019, 00:25:45: Uploaded: ../bb/fol2 copy/145.txt
22.08.2019, 00:25:46: Uploaded: ../bb/fol2 copy/146.txt
22.08.2019, 00:25:46: 703 files changed.
22.08.2019, 00:25:46: Uploaded: ../bb/fol2 copy/147.txt
22.08.2019, 00:25:46: Uploaded: ../bb/fol2 copy/001.txt
22.08.2019, 00:25:47: Uploaded: ../bb/fol2 copy/148.txt
22.08.2019, 00:25:47: Uploaded: ../bb/fol2 copy/002.txt
The text was updated successfully, but these errors were encountered: