def deploy_app(app_id): lib.app_exists(app_id) job = q.enqueue(lib.deploy_app, app_id) return ("Deployment added in queue, should be ok soon.<br>" +'<a href=".">Go back to app</a>')