~cloutier/bird.makeup#30: 
tweet fetching returns 0 until container restart

Is anyone else running into this issue? I need to restart my container in order for new tweets to get fetched, and pretty quickly they just begin returning "0 tweets from user X", even when there are new tweets. I'm planning on adding another docker container to reboot the image every two hours, but wanted to see if anyone else is running into this problem.

Status
REPORTED
Submitter
~eric-pierce
Assigned to
No-one
Submitted
1 year, 1 month ago
Updated
1 year, 30 days ago
Labels
No labels applied.

~eric-pierce 1 year, 1 month ago

I added this container to reboot birdmakeup every hour, which appears to be an ok workaround, but I don't know what is causing this issue with the main application.

  restarter:
    image: docker:cli
    restart: unless-stopped
    networks:
      - socket-proxy
    depends_on:
      - socket-proxy
    entrypoint: ["/bin/sh","-c"]
    command:
      - |
        while true; do
          sleep 3600; docker restart birdmakeup;
        done
    environment:
      TZ: $TZ
      PUID: $PUID
      PGID: $PGID
      DOCKER_HOST: tcp://socket-proxy:2375

~rursache 1 year, 30 days ago

~eric-pierce add this in your crontab (crontab -e) and you don't need anything else:

@hourly /usr/bin/docker restart birdmakeup
Register here or Log in to comment, or comment via email.