TheSchwartz ã® worker ã Ctrl-C ã¨ã kill ã§æ¢ããå ´åã«ãjob ã®å¦çãå端ãªç¶æ
ã§çµããããã¨å°ããã¨ãã話ã以å Deamon::Generic 㧠TheSchwartz ã® worker ããã¼ã¢ã³åãã(2) - é
æ¥è¨ ã¯ã¦ãªæ¯åº ã§è«¦ãããã ãã©ãã¡ãã£ã¨å¿
è¦ã«è¿«ãããã®ã§èãã¦ã¿ããä¸å¿ã§ããã£ã½ãã package MyWorker; use strict; use warnings; use base qw( TheSchwartz::Worker ); sub sighandler { warn "caught signal @_\n"; no warnings 'redefine'; *TheSchwartz::work_once = sub { exit }; } sub work { my ($class, $job) = @
{{#tags}}- {{label}}
{{/tags}}