Refactored alert check/fire methods to remove redundancy and support multi-job-id case