I don't use MCs, simply because I host my own servers. However, I'm currently working on a project where I periodically need to make requests to some APIs or TXT lists and update a database of these data. Ofc, crontab can do this, but it would be really awesome if there were MCs that are only active until a task is done, or only wake up based on a timer. For example I could use an MC to fetch the data, update the DB, stop the MC and then wait 6 hours before doing it again. I can really see the potential of a feature like this, and it would make some things much easier.
#Cron or timer-based MCs.
5 messages · Page 1 of 1 (latest)
It could be a docker image.
Thank you for your suggestion. We agree that this would be a valuable addition to MC. We do have some potential workarounds at the moment, please let me know if you want to learn about them and someone from the team will be happy to share them with you.
Of course, I could build a docker image with a cron job or a script that runs at set intervals. I could also build it directly into the app. However, that's not really what I want. While this works, the container will always be "active" and consume resources unnecessarily.
I understand your request to have just one script and timer that activates it. It seemed to me that MCs can go cold after some inactivity time, so timer and cool off time would be remaining concern.