I am writing a runtime webaction that ingests assets into AEM and updates content fragments.
So I prepared a mock.json with 5000 asset inputs, call the webaction from Postman. This triggers async function that ll read mock.json, and executes for each asset.
I was able to test successfully for ~2000 assets. But observing exactly after 2.5 seconds, the runtime action closes automatically. Node action stops. So the assets waiting after 2.5 seconds, fail to ingest into AEM.
Is there any documentation for max time that runtime actions can stay alive? How to increase? Or we should use whisk alarm and run periodic cron through non-web action instead of triggering as web action?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
It is interesting to know the actions fail after 2.5 seconds. @sarav_prakash I'd recommend raising a support ticket to get dedicated help on this.
Yes, for blocking calls it is 60 seconds and for async invocation it is up to 1 hour.
Read our documentation here- https://developer.adobe.com/runtime/docs/guides/using/system_settings/
Thanks
Manik
Thanks @tmj , I am aware of system settings. I tried resetting default settings thru CLI. But its trial-n-error.
Here is my problem.
I even switched to non-webaction and run as whisk alarm trigger (every min). But same problem, action wakes every min, stays alive for ~2-3 secs and dies. Wondering is my design wrong? We shouldn't execute long running tasks through runtime actions?
It is interesting to know the actions fail after 2.5 seconds. @sarav_prakash I'd recommend raising a support ticket to get dedicated help on this.
Views
Likes
Replies