// ShouldNotifyExecution decides if job execution is notifiable or not
ShouldNotifyExecution decides if job execution is notifiable or not
// ShouldNotifyExecution decides if job execution is notifiable or not
func (a Assignment) ShouldNotifyExecution(execution Execution) bool {
	if a.OnErrorOnly {
		return execution.Status == FailedStatus
	}
	return true
}
func ( a Assignment ) ShouldNotifyExecution ( execution Execution ) bool { if a . OnErrorOnly { return execution . Status == FailedStatus } return true }
ShouldNotifyExecution decides if job execution is notifiable or not
ShouldNotifyExecution decides if job execution is notifiable or not