From an event plugin, checking if a job is running or queued