mirror of
https://github.com/lubuntu-team/lugito.git
synced 2025-05-01 13:11:27 +00:00
Fix race condition between job finishing and IRC notification being sent out.
This commit is contained in:
parent
d075f45568
commit
09e0db8803
@ -16,6 +16,7 @@ Lugito webhooks
|
|||||||
import logging
|
import logging
|
||||||
import threading
|
import threading
|
||||||
from flask import Flask, request
|
from flask import Flask, request
|
||||||
|
from time import sleep
|
||||||
from lugito import Lugito
|
from lugito import Lugito
|
||||||
from lugito.connectors import irc, launchpad, jenkins
|
from lugito.connectors import irc, launchpad, jenkins
|
||||||
|
|
||||||
@ -192,6 +193,8 @@ def jenkinstrigger():
|
|||||||
def processjenkinsircnotify(request):
|
def processjenkinsircnotify(request):
|
||||||
"""Process the request given so it can be daemonized"""
|
"""Process the request given so it can be daemonized"""
|
||||||
|
|
||||||
|
sleep(10)
|
||||||
|
|
||||||
# Get the status of the most recent build to the given project
|
# Get the status of the most recent build to the given project
|
||||||
proj, status, link = jenkins_con.receive(request)
|
proj, status, link = jenkins_con.receive(request)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user