Fix hook type is invalid

e.g.: 'post-job' should run only one time after each job,
but before fix it will run eveywhere when hook is triggered.