func (c *Cron) QueuedJobs() []string {
	c.lock.Lock()
	defer c.lock.Unlock()

	res := []string{}
	for k, v := range c.jobs {
		if v.triggered {
			res = append(res, k)
		}
		c.jobs[k].triggered = false
	}
	return res
}
func (c *Cron) QueuedJobs() []string {
	c.lock.Lock()
	defer c.lock.Unlock()

	res := []string{}
	for k, v := range c.jobs {
		if v.triggered {
			res = append(res, k)
		}
		c.jobs[k].triggered = false
	}
	return res
}
func ( c * Cron ) QueuedJobs ( ) [ ] string { c . lock . Lock ( ) defer c . lock . Unlock ( ) res := [ ] string { } for k , v := range c . jobs { if v . triggered { res = append ( res , k ) } c . jobs [ k ] . triggered = false } return res }
// QueuedJobs returns a list of jobs that need to be triggered
// and reset trigger in jobStatus
QueuedJobs returns a list of jobs that need to be triggered and reset trigger in jobStatus