Code Monkey home page Code Monkey logo

Comments (4)

chazzbg avatar chazzbg commented on June 8, 2024

version 2023.2.2 acts the same when service is restarting, but when server is stopped, service receives signal

$ docker run --rm reproduce:latest              
2023-12-18T16:58:25+0000        DEBUG   rpc             plugin was started      {"address": "tcp://0.0.0.0:6001", "list of the plugins with RPC methods:": ["service", "resetter", "app", "informer", "lock"]}
[INFO] RoadRunner server started; version: 2023.2.2, buildtime: 2023-08-10T16:38:29+0000
2023-12-18T16:58:25+0000        INFO    service         service was started     {"name": "dummy", "command": "php service.php"}
2023-12-18T16:58:25+0000        INFO    service         Sleeping...
2023-12-18T16:58:26+0000        INFO    service         Sleeping...
2023-12-18T16:58:27+0000        INFO    service         Sleeping...
2023-12-18T16:58:28+0000        INFO    service         Sleeping...
2023-12-18T16:58:29+0000        INFO    service         Sleeping...
2023-12-18T16:58:30+0000        INFO    service         Sleeping...
2023-12-18T16:58:31+0000        INFO    service         Sleeping...
2023-12-18T16:58:32+0000        INFO    service         Sleeping...
2023-12-18T16:58:33+0000        INFO    service         Sleeping...
2023-12-18T16:58:34+0000        INFO    service         Sleeping...
2023-12-18T16:58:35+0000        ERROR   service         wait    {"error": "signal: killed"}
2023-12-18T16:58:40+0000        INFO    service         Sleeping...
^Cstop signal received, grace timeout is: 30 seconds
2023-12-18T16:58:40+0000        INFO    service         service was stopped     {"name": "dummy", "command": "php service.php"}
2023-12-18T16:58:40+0000        DEBUG   lock            received stop signal, acquiring lock/release mutexes
2023-12-18T16:58:40+0000        DEBUG   lock            acquired muCh and releaseMuCh mutexes   {"resource": "stop-internal", "id": "stop-internal"}
2023-12-18T16:58:40+0000        DEBUG   lock            acquired stop mutex
2023-12-18T16:58:40+0000        DEBUG   lock            releaseMuCh lock returned       {"resource": "internal-stop", "id": "internal-stop"}
2023-12-18T16:58:40+0000        INFO    service         Got 2 ...
2023-12-18T16:58:40+0000        DEBUG   lock            signal sent to all resources

from roadrunner.

rustatian avatar rustatian commented on June 8, 2024

Hey @chazzbg ๐Ÿ‘‹
Thanks for the report ๐Ÿ‘

I'll double-check this case, but looks strange, since I'm sending SIGINT to the underlying process.
It might be context cancellation sends a different signal. Could you please check without the exec_timeout ?

from roadrunner.

chazzbg avatar chazzbg commented on June 8, 2024

I also find this quite odd.

Without exec_timeout, service process seems to get the signal

docker run --rm reproduce:latest
2023-12-18T20:30:22+0000        DEBUG   rpc             plugin was started      {"address": "tcp://0.0.0.0:6001", "list of the plugins with RPC methods:": ["lock", "service", "informer", "resetter", "app"]}
[INFO] RoadRunner server started; version: 2023.3.8, buildtime: 2023-12-14T16:05:26+0000
[INFO] sdnotify: not notified
2023-12-18T20:30:22+0000        INFO    service         service was started     {"name": "dummy", "command": "php service.php"}
2023-12-18T20:30:22+0000        INFO    service         Sleeping...
2023-12-18T20:30:23+0000        INFO    service         Sleeping...
2023-12-18T20:30:24+0000        INFO    service         Sleeping...
2023-12-18T20:30:25+0000        INFO    service         Sleeping...
2023-12-18T20:30:26+0000        INFO    service         Sleeping...
2023-12-18T20:30:27+0000        INFO    service         Sleeping...
2023-12-18T20:30:28+0000        INFO    service         Sleeping...
2023-12-18T20:30:29+0000        INFO    service         Sleeping...
2023-12-18T20:30:30+0000        INFO    service         Sleeping...
2023-12-18T20:30:31+0000        INFO    service         Sleeping...
2023-12-18T20:30:32+0000        INFO    service         Sleeping...
^Cstop signal received, grace timeout is: 30 seconds
2023-12-18T20:30:32+0000        DEBUG   lock            received stop signal, acquiring lock/release mutexes
2023-12-18T20:30:32+0000        DEBUG   lock            acquired stop mutex
2023-12-18T20:30:32+0000        DEBUG   lock            signal sent to all resources
2023-12-18T20:30:32+0000        INFO    service         Got 2 ...
2023-12-18T20:30:32+0000        INFO    service         service was stopped     {"name": "dummy", "command": "php service.php"}

from roadrunner.

rustatian avatar rustatian commented on June 8, 2024

Ok, thanks. Thus, I know where the bug is ๐Ÿ˜ƒ

from roadrunner.

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.