èª²é¡ è§£æ±ºç 対çæ¦è¦ çºçç¶æ³ 対ç詳細 ææ 注æ åè èª²é¡ subprocessã¢ã¸ã¥ã¼ã«ãå©ç¨ãã¦å¤é¨ã®ã·ã§ã«ã¹ã¯ãªãããèµ·åãããã¨ãããããã®ã·ã§ã«ã¹ã¯ãªããã«ããã¦åããã»ã¹ï¼ããã¯ã°ã©ã¦ã³ãããã»ã¹ãªã©ï¼ãåä½ãã¦ããæä¸ã«ãsubprocessã§è¨å®ããtimeoutãçºçããããã®ã¨ããç´æ¥èµ·åããã·ã§ã«ã¹ã¯ãªããã®ããã»ã¹ã¯killããããããã®åããã»ã¹ã¯æ®åãã¦ããããã ãtimeoutãçºçããéã«ã¯åããã»ã¹ãå«ãã¦killããããã©ãããã°ãããã 解決ç 対çæ¦è¦ èµ·åããããã»ã¹ãå¥ã®ã»ãã·ã§ã³ã¨ãã¦ç®¡çããpython ã® timeout ä¾å¤ catch ã«ããã¦ãããã»ã¹ã°ã«ã¼ã ID ã«å¯¾ãã¦kill ããã çºçç¶æ³ æåã«ã課é¡ãã®ç¶æ³ãçºçããæ§åã示ãã以ä¸ã®ãããªã¹ã¯ãªãããç¨æãããã·ã§ã«ã¹ã¯ãªããã§ã¯ï¼subprocessã§è¨å®ã
{{#tags}}- {{label}}
{{/tags}}