We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2e2e40 + e39a11e commit 668efb3Copy full SHA for 668efb3
result/tests/Dockerfile
@@ -1,5 +1,6 @@
1
FROM node:8.9-slim
2
-RUN apt-get update -qq && apt-get install -qy \
+
3
+RUN apt-get update -qq && apt-get install -qy \
4
ca-certificates \
5
bzip2 \
6
curl \
worker/src/Worker/Program.cs
@@ -28,6 +28,9 @@ public static int Main(string[] args)
28
var definition = new { vote = "", voter_id = "" };
29
while (true)
30
{
31
+ // Slow down to prevent CPU spike, only query each 100ms
32
+ Thread.Sleep(100);
33
34
// Reconnect redis if down
35
if (redisConn == null || !redisConn.IsConnected) {
36
Console.WriteLine("Reconnecting Redis");
0 commit comments