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.
1 parent 42b4c52 commit d1ffa62Copy full SHA for d1ffa62
src/setup/deployment/raw-code/serverless/azure/hellonode/index.js
@@ -0,0 +1,23 @@
1
+async function handler(context, request) {
2
+ let q = request.query;
3
+ let incrementLimit = 0;
4
+ if (q.incrementLimit) {
5
+ incrementLimit = parseInt(q.incrementLimit);
6
+ }
7
+
8
+ simulateWork(incrementLimit);
9
10
+ context.res = {
11
+ status: 200,
12
+ body: {
13
+ RequestID: context.invocationId,
14
+ TimestampChain: [Date.now().toString()],
15
16
+ };
17
+};
18
19
+const simulateWork = (incrementLimit) => {
20
+ for (let i = 0; i < incrementLimit; i++) { }
21
22
23
+module.exports = handler
0 commit comments