diff --git a/asu/api.py b/asu/api.py index 04023e0f..5d8bc811 100644 --- a/asu/api.py +++ b/asu/api.py @@ -327,6 +327,10 @@ def api_build(): req["upstream_url"] = current_app.config["UPSTREAM_URL"] req["branch_data"] = get_branches()[req["branch"]] + if req["branch_data"]["snapshot"]: + result_ttl = "15m" + current_app.logger.info(f"Set snapshot request {request_hash} ttl to 15m") + job = get_queue().enqueue( build, req,