refactoring to get pid when cancel job #29
ignore RubyMine files