func (m *Manager) GetJob(id int) *Job {
	m.mutex.Lock()
	defer m.mutex.Unlock()

	// get from the queue or graveyard
	_, j := m.getJob(append(m.queue, m.graveyard...), id)
	if j != nil {
		// make a copy of the job and return the pointer
		jCopy := *j
		return &jCopy
	}

	return nil
}
// GetJob returns a copy of the Job for the provided id. Returns nil if the job
// does not exist.
GetJob returns a copy of the Job for the provided id. Returns nil if the job
does not exist.
// GetJob returns a copy of the Job for the provided id . Returns nil if the job // does not exist .
func (m *Manager) GetJob(id int) *Job {
	m.mutex.Lock()
	defer m.mutex.Unlock()
	_, j := m.getJob(append(m.queue, m.graveyard...), id)
	if j != nil {
		jCopy := *j
		return &jCopy
	}
	return nil
}
func ( m * Manager ) GetJob ( id int ) * Job { m . mutex . Lock ( ) defer m . mutex . Unlock ( ) _ , j := m . getJob ( append ( m . queue , m . graveyard ... ) , id ) if j != nil { jCopy := * j return & jCopy } return nil }
GetJob returns a copy of the Job for the provided id.
GetJob returns a copy of the Job for the provided id .
// get from the queue or graveyard // make a copy of the job and return the pointer