This commit is contained in:
2025-08-31 17:01:07 -04:00
parent 66b114f374
commit e3e6a4460b
11 changed files with 600 additions and 101 deletions

View File

@ -0,0 +1,16 @@
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
};
};

View File

@ -0,0 +1,16 @@
import time
def handler(input, context):
print("Starting function execution")
for i in range(1, 11):
print(f"Processing step {i}")
# Wait 1 second between log outputs
time.sleep(1)
print("Function execution completed")
return {
"message": "Function executed successfully",
"steps": 10
}