Giter Site home page Giter Site logo

Comments (10)

jdholtz avatar jdholtz commented on August 28, 2024

I can get this information. However, I think it would be helpful to still notify people if it has already been checked in. Maybe a You have already checked in message?

from auto-southwest-check-in.

grantland avatar grantland commented on August 28, 2024

The main issue is that it continues to check in after successfully checking in the first time as I would expect the instance to exit with a successful response after the first successful check in.

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on August 28, 2024

Are these messages happening in the same instance of the script (i.e. it didn’t restart)? It should exit right after it has checked in. How much time passes in between attempts?

from auto-southwest-check-in.

grantland avatar grantland commented on August 28, 2024

Same instance of the script and pretty much a few seconds in between

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on August 28, 2024

This might be an issue running it with Docker and the restart policy you are giving the container. Are you using ––restart-policy=always? I think the container exits and restarts which explains why it keeps checking in (Docker doesn’t clear logs on a restart).

If you want Docker to start on boot, I think you can still use the unless-stopped or on-failure restart policy without having this side effect. Let me know if this is the issue and I will update the README accordingly.

from auto-southwest-check-in.

grantland avatar grantland commented on August 28, 2024

I used the following command:

docker run -d --restart unless-stopped auto-southwest-check-in CONFIRMATION FIRST LAST

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on August 28, 2024

Could you try it with the on-failed restart policy and see if it has the same issue? And if that doesn’t work, can you try it without Docker to see if it is Docker or the script (No worries if you can’t)?

from auto-southwest-check-in.

grantland avatar grantland commented on August 28, 2024

You're right! I was using the wrong --restart flag and --restart on-failure solves the problem. Thanks!

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on August 28, 2024

Great! I’ll add that to the README to prevent others from having this issue. Thanks for bringing it up

from auto-southwest-check-in.

jdholtz avatar jdholtz commented on August 28, 2024

Edited the title for clarity

from auto-southwest-check-in.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.