protected function addSnitch($values = array())
{
static $snitch, $pid, $path;
if ($snitch === null) {
$snitch = str_replace('Exakat\\Tasks\\', '', get_class($this));
$pid = getmypid();
$path = $this->config->projects_root . '/projects/.exakat/' . $snitch . '.json';
}
$values['pid'] = $pid;
file_put_contents($path, json_encode($values));
}