Git Product home page Git Product logo

Comments (8)

GCorbel avatar GCorbel commented on July 19, 2024

@stevecrozz Did you found a solution to this issue? How do you know the agent received the message?

I saw than the payload of the DELETE request send to the server say than the process is killed but it isn't.

from drone-runtime.

GCorbel avatar GCorbel commented on July 19, 2024

I tried to do something similar, with curl, to what's drone is supposed to do :

docker-compose exec drone-agent curl --unix-socket /var/run/docker.sock -X POST http://v.1.24/containers/af0c5571da00/kill

It killed the container correctly so the problem doesn't comes from the communication the agent and the socket.

from drone-runtime.

GCorbel avatar GCorbel commented on July 19, 2024

I confirm the signal is received by the agent. There is a "done listening for cancel signals". It probably comes from this line. It should goes in the first condition of the if and trigger the cancel method.

from drone-runtime.

stevecrozz avatar stevecrozz commented on July 19, 2024

fwiw: I did not find an answer and developed a terrible system of hacks using shell scripts and cron jobs to work around this problem

from drone-runtime.

GCorbel avatar GCorbel commented on July 19, 2024

Can you share your hack?

from drone-runtime.

stevecrozz avatar stevecrozz commented on July 19, 2024

I don't mind, but it is very specific to my own implementation. I use an ec2 instance per pipeline in my environment and the hack involves shutting down the instance when it gets into this state. If you're still interested, I can dig up the cron job...

from drone-runtime.

GCorbel avatar GCorbel commented on July 19, 2024

I still can check what it is. I can give me some ideas.

The solution I think at the moment is to watch logs and do a docker-compose restart when there is "done listening for cancel signals" in it.

from drone-runtime.

bradrydzewski avatar bradrydzewski commented on July 19, 2024

this is no longer an issue in the newer drone/drone-runner-* images which replace the drone/agent containers.

from drone-runtime.

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.