Sleep between calling webhooks
This commit is contained in:
parent
7929e6dd37
commit
85908702c9
|
@ -3,6 +3,7 @@ from os.path import exists, isfile, islink, join, realpath
|
|||
import requests
|
||||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
from time import sleep
|
||||
|
||||
|
||||
request_data = {
|
||||
|
@ -94,6 +95,7 @@ ENTRYPOINT /usr/local/bin/buildbot_entrypoint.sh "$BUILDMASTER" "$WORKERNAME" "$
|
|||
|
||||
"""
|
||||
|
||||
|
||||
def get_secret():
|
||||
with open("multibuild_parent_key.key", 'r') as f:
|
||||
data = f.read()
|
||||
|
@ -222,6 +224,7 @@ def trigger_child_hooks(buildbotUrl: str, repository, branch, revision,
|
|||
json=request_data)
|
||||
print("Triggered job for {} on {}: {}".format(job, request_url,
|
||||
retval.text))
|
||||
sleep(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue
Block a user