nanos / FediFetcher

FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance.
https://blog.thms.uk/fedifetcher?utm_source=github
MIT License
293 stars 213 forks source link

Docker Container logic updates #100

Closed rursache closed 4 months ago

rursache commented 4 months ago
nanos commented 4 months ago

Thanks for your PR @rursache !

I appreciate your work, but it's worth saying that the infinite loop on the script doesn't apply only to docker, but also to other forms of execution.

The biggest problem with this is that it makes it incompatible with GitHub Actions. The secondary problem is that I don't personally like running it like this, as it doesn't deal well with failures: Imo starting 'from scratch' from time to time has it's advantages, when run outside a docker container.

I also think that the first two and last two bullet points would be better served with two separate PRs to be honest (among others because I'd merge that in right away).

rursache commented 4 months ago

while i understand what you say, i made these changes because first of all i want to run this script in a docker container, set and forget it. i see no benefit of running it manually. the loop "starts from scratch" if it crashes due to --restart unless-stopped in docker run/compose param. also its not resource intensive so it can be ran locally on a machine instead of semi-abusing GH actions.

a new flag (--docker) could be added to the python script to do this loop only when ran as a container but i don't plan to implement and maintain that. that would fix everything you mentioned imo.

good luck and all the best

benyafai commented 4 months ago

@rursache Check our PR #102