Project

General

Profile

« Previous | Next » 

Revision f3093ed1

Added by Benjamin Dauvergne over 10 years ago

make deployments synchronous

View differences:

wcsinst/wcsinstd/views.py
15 15
def create(request):
16 16
    data = json.loads(request.body)
17 17
    deploy = DeployInstance(**data)
18
    threading.Thread(target=deploy.make).start()
18
    deploy.make()
19 19
    return {}
20 20

  
21 21

  
......
28 28
    if data.get('domain') != instance:
29 29
        raise Exception('domain mismatch') # -> should remove/add ?
30 30
    deploy = DeployInstance(**data)
31
    threading.Thread(target=deploy.make).start()
31
    deploy.make()
32 32
    return {}

Also available in: Unified diff