Describe the bug
Currently all action code is executed in the same process, which could potentially lead to errors if any action code is modifying process.env it affects the global space.
To Reproduce
write 2 actions where 1 is has a sleep function
const sleep = async (ms) => new Promise(resolve => setTimeout(resolve, ms))
// main function that will be executed by Adobe I/O Runtime
async function main (params) {
let before = process.env.__OW_ACTIVATION_ID
console.log('before', before)
await sleep(10000)
let after = process.env.__OW_ACTIVATION_ID
console.log('after', after)
return {
statusCode: 200,
body: {
before,
after,
wasCorrupted: (before !== after)
}
}
}
exports.main = main
aio app dev and call this action
while it is running, use curl to call the other action
Expected behavior
activationId has not changed when sleeper returns
Describe the bug Currently all action code is executed in the same process, which could potentially lead to errors if any action code is modifying process.env it affects the global space.
To Reproduce write 2 actions where 1 is has a sleep function
aio app dev and call this action while it is running, use curl to call the other action
Expected behavior activationId has not changed when sleeper returns
Screenshots
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.