You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WHEN latest_build.agent_first_connected_at IS NULL THEN
188
+
CASE
189
+
WHEN latest_build.agent_connection_timeout_seconds>0AND NOW() -latest_build.agent_created_at>latest_build.agent_connection_timeout_seconds* INTERVAL '1 second' THEN
190
+
CASE WHEN @has_agent :: text='timeout' THEN true ELSE false END
191
+
ELSE
192
+
CASE WHEN @has_agent :: text='connecting' THEN true ELSE false END
193
+
END
194
+
WHEN latest_build.agent_disconnected_at>latest_build.agent_last_connected_at THEN
195
+
CASE WHEN @has_agent :: text='disconnected' THEN true ELSE false END
196
+
WHEN NOW() -latest_build.agent_last_connected_at> INTERVAL '1 second'* @agent_inactive_disconnect_timeout_seconds :: bigint THEN
197
+
CASE WHEN @has_agent :: text='disconnected' THEN true ELSE false END
198
+
WHEN latest_build.agent_last_connected_atIS NOT NULL THEN
199
+
CASE WHEN @has_agent :: text='connected' THEN true ELSE false END
0 commit comments