These icons would represent the status of the last execution.
Behind the hood, NodeJS would keep in an array the status of the last execution of such schedule. The UI would call the NodeJS app to inquire about this array/status.
A green circle is an execution that succeeded without errors. A red circle is an execution that threw an uncatched error/exception.
It would be great to see the error of failure, so this array could hold the output of the execution. Perhaps it would be best to keep the last 10 executions for each scheduled action.
Actually, the app could store the array in Redis and Wappler UI could communicate with the app through the secret route it uses for the database manager I think. I'm not at the computer right now, but in the NodeJS source I found there's a secret route (authentication protected) for executing DB queries I think - unless I'm missing something and this only works in local
And i just came to realise if multiple instances of the app are running, the scheduled tasks might run in parallel as well, so it's missing a locking system that uses Redis
When I say "could store the array in Redis", it would also work for those not using Redis, just like sessions. I'm just making proposals based on what already exists: If the user is using Redis then store in Redis, otherwise store in-memory NodeJS array as initially intended