You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash
wait_100s () {
i=1
while [ $i -le 100 ]
do
echo $i
sleep 1
i=$((i+1))
done
}
cleanup() {
echo "Signal SIGTERM received..."
echo "Waiting (100s) more than graceful timeout (60s)"
wait_100s
echo "End of sleep after SIGTERM"
exit 0
}
trap cleanup SIGTERM
echo "-----------------"
echo "start test script"
wait_100s
echo "end test script"
exit 0
chmod +x test.sh
Install plugin with make develop
(step and extra_daemon will be launched by circus worker)
Try to stop plugin (with command mfdata.stop or plugins.stop never mind): plugins.stop test
[mfdata:~/test] $ plugins.stop test
- Collecting infos about plugins... [ OK ]
- Scheduling stop of plugin: test
- Scheduling stop of extra.test.test [ OK ]
- Scheduling stop of step.test.main [ ERROR ] (???)
- Waiting for stop of plugin: test
- Waiting for stop of extra.test.test... [ OK ] (it will be 'OK' after 30 seconds)
- Waiting for stop of step.test.main... [ RUNNING] 00:09:59
=> BUG: scheduling of the step ends with error and stop is waiting for 10 minutes, as per step timeout settings (600s)
=> if no extra daemon defined step is stopped immediately, without errors -> OK
=> if extra_daemon does not stop after SIGTERM it well waits for 60 seconds before stopping (SIGKILL) -> OK
=> note: command circustl stop step.test.main does not raise any problem
The text was updated successfully, but these errors were encountered:
Make a
test
plugin with command:bootstrap_plugin.py create test --no-input
cd test
Update plugin's
config.ini
by adding an extra_daemon:test.sh
in plugin's dir:chmod +x test.sh
Install plugin with
make develop
(step and extra_daemon will be launched by circus worker)
Try to stop plugin (with command
mfdata.stop
orplugins.stop
never mind):plugins.stop test
=> BUG: scheduling of the step ends with error and stop is waiting for 10 minutes, as per step timeout settings (600s)
=> if no extra daemon defined step is stopped immediately, without errors -> OK
=> if extra_daemon does not stop after SIGTERM it well waits for 60 seconds before stopping (SIGKILL) -> OK
=> note: command
circustl stop step.test.main
does not raise any problemThe text was updated successfully, but these errors were encountered: