Skip to content

Commit 509ed75

Browse files
committed
Fix formatting
1 parent 12be555 commit 509ed75

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

examples/TaskStatusRedis/handler.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
var redis = require('redis');
33

44
if (process.argv.length < 4) {
5-
console.err("Usage: node handler.js <taskId> <redis_url>");
6-
process.exit(1);
5+
console.err("Usage: node handler.js <taskId> <redis_url>");
6+
process.exit(1);
77
}
88

99
// 'taskId' is the name of the Redis list to use for the notification
1010
var taskId = process.argv[2],
11-
redis_url = process.argv[3];
11+
redis_url = process.argv[3];
1212

1313
//console.log("taskId", taskId);
1414
//console.log("redis_url", redis_url);
@@ -19,12 +19,12 @@ var rcl = redis.createClient(redis_url);
1919
var delay=Math.random()*3000;
2020
// console.log("Delay:", delay);
2121
setTimeout(function() {
22-
rcl.rpush(taskId, "OK", function(err, reply) {
23-
if (err) {
24-
console.err("Redis notification failed in handler.");
25-
throw err;
26-
} else {
27-
process.exit(0);
28-
}
29-
});
22+
rcl.rpush(taskId, "OK", function(err, reply) {
23+
if (err) {
24+
console.err("Redis notification failed in handler.");
25+
throw err;
26+
} else {
27+
process.exit(0);
28+
}
29+
});
3030
}, delay);
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "RedisNotificationTestWorkflow",
3-
"processes": [ {
4-
"name": "RedisNotificationTest",
5-
"type": "dataflow",
6-
"parlevel": 0,
7-
"firingLimit": 100,
8-
"function": "task_status_redis_test",
9-
"ins": [ "number" ],
10-
"outs": [ ]
11-
} ],
12-
"signals": [ {
13-
"name": "number",
14-
"data": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100 ]
15-
} ],
2+
"name": "RedisNotificationTestWorkflow",
3+
"processes": [ {
4+
"name": "RedisNotificationTest",
5+
"type": "dataflow",
6+
"parlevel": 0,
7+
"firingLimit": 100,
8+
"function": "task_status_redis_test",
169
"ins": [ "number" ],
1710
"outs": [ ]
11+
} ],
12+
"signals": [ {
13+
"name": "number",
14+
"data": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100 ]
15+
} ],
16+
"ins": [ "number" ],
17+
"outs": [ ]
1818
}

0 commit comments

Comments
 (0)