#Cron or timer-based MCs.

5 messages · Page 1 of 1 (latest)

tight oar
#

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.

mighty whale
#

It could be a docker image.

frail breach
tight oar
# mighty whale It could be a docker image.

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.

mighty whale