Commit 3c04aaf4 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

sleep a bit more after a mail, to avoid smtplib.SMTPConnectError: (421,...

sleep a bit more after a mail, to avoid smtplib.SMTPConnectError: (421, b'4.3.2 Connection rate limit exceeded.')
parent fc5221e8
Pipeline #5726 passed with stage
in 4 minutes and 3 seconds
......@@ -594,10 +594,11 @@ class Repo(TimeStampedModel):
continue
image = images.first()
if image.allow_failure and GITLAB_STATUS[data['status']]:
mail_admins('Success !', 'allow_failure est devenu inutile sur ' + data['web_url'])
time.sleep(1)
image.allow_failure = False
image.save()
mail_admins('Success !', 'allow_failure est devenu inutile sur ' + data['web_url'])
print(' success', data['web_url'])
time.sleep(2)
def get_builds_github(self):
if self.travis_id is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment