Skip to content
Permalink
Browse files

AGs: allow a huge timeout when querying so we actually see results.

  • Loading branch information...
Nick Craver
Nick Craver committed Apr 17, 2019
1 parent bb397e3 commit b3eb00471f49d544594cd5dcacce9dcdf1924b04
Showing with 2 additions and 2 deletions.
  1. +2 −2 Opserver.Core/Data/SQL/SQLNode.AvailabilityGroups.cs
@@ -20,7 +20,7 @@ public partial class SQLNode
);

List<AGInfo> ags;
using (var multi = await conn.QueryMultipleAsync(sql).ConfigureAwait(false))
using (var multi = await conn.QueryMultipleAsync(sql, commandTimeout: 600).ConfigureAwait(false))
{
ags = await multi.ReadAsync<AGInfo>().ConfigureAwait(false).AsList().ConfigureAwait(false);
var replicas = await multi.ReadAsync<AGReplica>().ConfigureAwait(false).AsList().ConfigureAwait(false);
@@ -66,4 +66,4 @@ public partial class SQLNode
return ags;
}));
}
}
}

0 comments on commit b3eb004

Please sign in to comment.
You can’t perform that action at this time.