отправляем аллерт в канал слака в случае застревания
This commit is contained in:
parent
9a9d7c90eb
commit
f511d19d52
|
@ -840,7 +840,7 @@ class ATFPlan
|
||||||
|
|
||||||
$resp = atf_slack_post($slack_msg, array('thread_ts' => $task->slack_thread_ts));
|
$resp = atf_slack_post($slack_msg, array('thread_ts' => $task->slack_thread_ts));
|
||||||
|
|
||||||
if(isset($resp['ok']) && $item['error'] == ATFTask::CODE_EXCEPTION)
|
if(isset($resp['ok']) && $item['error'] == ATFTask::CODE_EXCEPTION || $item['error'] == ATFTask::CODE_STUCK)
|
||||||
$this->session->tryShareToQAChannel($resp['ts'], $orig_msg);
|
$this->session->tryShareToQAChannel($resp['ts'], $orig_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue