<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Scheduled Function not running....?]]></title><description><![CDATA[<p dir="auto">Hello team,</p>
<p dir="auto">The scheduled function FUNCTION_161968 of my project goodvibes-474a9a works perfectly when I run it with "Try", but only works intermittently as a scheduled function. I can't seem to understand/predict when / how / why it works sometimes or not.</p>
<p dir="auto">It's something I need to run reliably every day at 1 AM. <a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/318">@App-Drag</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@Joseph-Benguira</a>  can someone help me understand why it might not be working?</p>
]]></description><link>https://community.appdrag.com/topic/1029/scheduled-function-not-running</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 10:19:40 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/1029.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 14 Feb 2022 11:02:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Scheduled Function not running....? on Tue, 08 Mar 2022 22:59:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/16">@joseph-benguira</a></p>
<p dir="auto">Solved... and I think I know why, very edge case <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /></p>
<p dir="auto">I had a callback at the very end of my function handler, after a bunch of async/await stuff.</p>
<p dir="auto">Lambda has a context object:<br />
"callbackWaitsForEmptyEventLoop"</p>
<p dir="auto">From <a href="https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html" rel="nofollow ugc">their docs:</a><br />
<em>"Set to false to send the response right away when the callback runs, instead of waiting for the Node.js event loop to be empty. If this is false, any outstanding events continue to run during the next invocation."</em></p>
<p dir="auto">Anyway, removing the callback at the end of the function worked. I think lambda was executing the callback without waiting for the inner await'd functions to finish, which killed the running processes and prevented the updates from happening.</p>
<p dir="auto">Does "Try" run with a different context object than a scheduled function?</p>
]]></description><link>https://community.appdrag.com/post/4132</link><guid isPermaLink="true">https://community.appdrag.com/post/4132</guid><dc:creator><![CDATA[Daniel Mulroy]]></dc:creator><pubDate>Tue, 08 Mar 2022 22:59:21 GMT</pubDate></item><item><title><![CDATA[Reply to Scheduled Function not running....? on Sun, 06 Mar 2022 20:42:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/9">@daniel-mulroy</a> so the execution count indicate that the function is indeed executed<br />
I don't know what you are doing in the function, but I guess it could be a difference based on ENV vars or global vars?</p>
]]></description><link>https://community.appdrag.com/post/4124</link><guid isPermaLink="true">https://community.appdrag.com/post/4124</guid><dc:creator><![CDATA[Joseph Benguira]]></dc:creator><pubDate>Sun, 06 Mar 2022 20:42:36 GMT</pubDate></item><item><title><![CDATA[Reply to Scheduled Function not running....? on Fri, 04 Mar 2022 14:18:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/1">@jbenguira</a> Sorry to report, I have removed "Require API Key" and set the recurrence to every 5 minutes, it is still not working.</p>
<p dir="auto"><img src="/assets/uploads/files/1646335476439-screen-shot-2022-03-03-at-8.24.31-pm.png" alt="Screen Shot 2022-03-03 at 8.24.31 PM.png" class="img-responsive img-markdown" /></p>
<p dir="auto">It says there are 172 executions today, which means it is probably running every 5 minutes... but the result of the function is not happening.</p>
<p dir="auto">Is there any difference in the execution environment between clicking "try" and running via Scheduler?</p>
]]></description><link>https://community.appdrag.com/post/4122</link><guid isPermaLink="true">https://community.appdrag.com/post/4122</guid><dc:creator><![CDATA[Daniel Mulroy]]></dc:creator><pubDate>Fri, 04 Mar 2022 14:18:09 GMT</pubDate></item><item><title><![CDATA[Reply to Scheduled Function not running....? on Thu, 17 Feb 2022 14:07:55 GMT]]></title><description><![CDATA[<p dir="auto">Interesting. I have changed it to run at 2:05 AM, but here was the previous configuration, FYI. We will see if it starts working again <img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" title=":)" alt="🙂" /> Thanks!</p>
<p dir="auto"><img src="/assets/uploads/files/1645106846635-screen-shot-2022-02-17-at-3.06.59-pm.png" alt="Screen Shot 2022-02-17 at 3.06.59 PM.png" class="img-responsive img-markdown" /></p>
]]></description><link>https://community.appdrag.com/post/4092</link><guid isPermaLink="true">https://community.appdrag.com/post/4092</guid><dc:creator><![CDATA[Daniel Mulroy]]></dc:creator><pubDate>Thu, 17 Feb 2022 14:07:55 GMT</pubDate></item><item><title><![CDATA[Reply to Scheduled Function not running....? on Mon, 14 Feb 2022 12:37:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/9">@daniel-mulroy</a> please check the detected time zone. Also try to schedule it 1h later. Because of timezone calculation it could end up being scheduled at gmt+0 00:00 and so never been triggered, or even change it to be runned at non zero minute (01:03 for eg)</p>
]]></description><link>https://community.appdrag.com/post/4091</link><guid isPermaLink="true">https://community.appdrag.com/post/4091</guid><dc:creator><![CDATA[jbenguira]]></dc:creator><pubDate>Mon, 14 Feb 2022 12:37:38 GMT</pubDate></item></channel></rss>