fasten-onprem/backend/pkg/models/background_job_scheduled_sy...

13 lines
417 B
Go
Raw Permalink Normal View History

2023-10-08 17:29:26 -06:00
package models
import "github.com/fastenhealth/fasten-onprem/backend/pkg"
// TODO: this is a WIP.
func NewScheduledSyncBackgroundJob(schedule pkg.BackgroundJobSchedule) *BackgroundJob {
return &BackgroundJob{
JobType: pkg.BackgroundJobTypeScheduledSync,
JobStatus: pkg.BackgroundJobStatusReady, //scheduled jobs will not be processed immediately, so their status is set to READY
Schedule: &schedule,
}
}