Commit 0748ba75 authored by Scott Hampton's avatar Scott Hampton

Add polling interval to ops controller

Made a constant for the polling interval time.
parent 7f2243d3
......@@ -9,11 +9,13 @@ class OperationsController < ApplicationController
respond_to :json, only: [:list]
POLLING_INTERVAL = 120_000
def index
end
def list
Gitlab::PollingInterval.set_header(response, interval: 120_000)
Gitlab::PollingInterval.set_header(response, interval: POLLING_INTERVAL)
projects = load_projects(current_user)
render json: { projects: serialize_as_json(projects) }
......
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