Issue with TimeControls getting stuck

I have these TCs running every day. However yesterday I noted it seems the TC execution got stuck for 2 of them? Below screenshot is from today, so it is weird these do not show the correct future time, also note the 1 min difference bw. Last Ran & Run At ...
I now modifed and saved both and it seems they got "restarted" and now show the future date correctly. Hopefully that did not destroy the evidence :) but you have below screenshot anyway.
Hope someone can figure out what made these get "stuck"?

Answers (3)

Vinod
Vinod on 18 Nov 2024
Edited: Vinod on 19 Nov 2024
We'll take a look on the back end why these Time Control got stuck. Typically when I have seen this, it is because something has errored out during its previous execution. Maybe your MATLAB code associated to the Time Control timed out, or a ThingHTTP associated with the TimeControl didn't complete. When Time Controls or Reacts running MATLAB code fail, they can be configured to send an email that can give more info.
PS: The "Last Run" column is when the timecontrol last ran. "Run At" is when the next execution of the timecontrol is scheduled for.
Kolbe
Kolbe on 19 Nov 2024
Thanks for the help Vinod!
I am lost, it seems to be happening now on all but one TCs? I would not expect to ever have the same date on 'Last Ran' and 'Run At' for a daily recurrence ...
These TCs all only are calling a TalkBack. Nothing is in the queue so not sure why they get stuck?

12 Comments

@Kolbe Thomas: Could you try editing your timecontrols that are stuck and setting them to run at the next timeslot, but at the top of the hour. So, schedule them at 5:00 AM, 1:00 AM, 6:00AM, etc.
Kolbe
Kolbe on 22 Nov 2024
Edited: Kolbe on 22 Nov 2024
@Vinod done
Seems like full hours made no difference, all but 2 stuck again?
From investigation on server side, it turns out that some TimeControls that are set up incorrectly are sporadically blocking re-queuing of recurring TimeControls. This is why some recurring TimeControls appear to be working fine while others get stuck.
We're developing a server side fix for this issue that will require no changes on your part as your TimeControls appear to be set up correctly. I will post on this thread when the fix is deployed.
@Kolbe Thomas: A fix was deployed earlier today. Your TimeControls should now run on schedule. Please let us know if you see errors.
Stefan
Stefan on 6 Dec 2024
Edited: Stefan on 6 Dec 2024
I observed the same issue. I have one TC running, triggering an action once a day. Last time it got stuck and had to be renewed was after your fix (5th Dec).
The Mathlab code is not really complicated or has high ressource demands, so timeouts seems to be not very likely.
But as a newbie at ThingSpeak I am happy to get advice if I can make it more reliable.
Best Stefan
@Stefan: From what I see on the backend, your timecontrol seems to be fine. I'm not sure if that is because you had edited and resaved it. In any case, if you see it stuck again, please do not edit it and let me know so we can investiagte. Thanks!
Hi Vinod, thanks for checking. Unfortunately it happened again, Monday morning it again refused to execute. Also a mail was not sent, I hope I have configured my mail address at the right place…
Thanks in advance
Stefan
Hi @Stefan: We've been looking at the backend, and I see the TimeControls are executing as expected. If you still see issues, can you please create a new thread?
Hi Vinod, indeed, the TC turned back to expected operation without any intervention. But on Dec 9th it made a break. Do you want to check those logfiles, if there is any indication why ir did not execute at that day?
Stefan
UPDATE 17.12.: it seems that also today the script was not running. Again without email notification.
Update: 18.12 & 19.12. It worked (I did not touch it). Seems that occationally the execution is not started or fails, without sending a mail.

Sign in to comment.

Stefan
Stefan on 23 Jan 2025
Edited: Stefan on 23 Jan 2025
Hi @Vinod,
frequent skipping of execution resist. I have created a new thread on this as requested.
Stefan

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on Programming in Help Center and File Exchange

Tags

Asked:

on 18 Nov 2024

Edited:

on 23 Jan 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!