17 lines
416 B
JavaScript
17 lines
416 B
JavaScript
module.exports.handler = async (input, context) => {
|
|
console.log("Starting function execution");
|
|
|
|
for (let i = 1; i <= 10; i++) {
|
|
console.log(`Processing step ${i}`);
|
|
// Wait 1 second between log outputs
|
|
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
}
|
|
|
|
console.log("Function execution completed");
|
|
|
|
return {
|
|
message: "Function executed successfully",
|
|
steps: 10
|
|
};
|
|
};
|