Add time interval between each git tagging 23/135823/1
authorhyokeun <hyokeun.jeon@samsung.com>
Tue, 27 Jun 2017 01:42:23 +0000 (10:42 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Tue, 27 Jun 2017 01:42:23 +0000 (10:42 +0900)
Change-Id: Icb01ee6dad742ba4d7433b7885b6b94390f8e518

job_request.py

index 1849a75..e663051 100755 (executable)
@@ -35,6 +35,7 @@ import sys
 import os
 import datetime
 import base64
+from time import sleep
 from xml.sax.saxutils import unescape
 
 # set default char-set endcoding to utf-8
@@ -240,6 +241,7 @@ def request_accepted(data, gerrit, gitprj):
     accepted_tag = os.path.join('accepted', obs_target, timestamp)
 
     gitprj.create_tag(accepted_tag, message, data['commitid'])
+    sleep(1)
 
     remote = 'ssh://%s@%s:%s/%s' % (gerrit.username, gerrit.host, gerrit.port,
             data['GIT_PROJECT'])