Add initial work for backgrounding mailer job
This commit is contained in:
parent
b6d1bd9ee2
commit
81e057b900
4 changed files with 15 additions and 1 deletions
|
|
@ -1234,6 +1234,7 @@ const (
|
|||
JobtypeEmailSend Jobtype = "email-send"
|
||||
JobtypeTextRespond Jobtype = "text-respond"
|
||||
JobtypeTextSend Jobtype = "text-send"
|
||||
JobtypeComplianceMailerSend Jobtype = "compliance-mailer-send"
|
||||
)
|
||||
|
||||
func AllJobtype() []Jobtype {
|
||||
|
|
@ -1245,6 +1246,7 @@ func AllJobtype() []Jobtype {
|
|||
JobtypeEmailSend,
|
||||
JobtypeTextRespond,
|
||||
JobtypeTextSend,
|
||||
JobtypeComplianceMailerSend,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1262,7 +1264,8 @@ func (e Jobtype) Valid() bool {
|
|||
JobtypeLabelStudioAudioCreate,
|
||||
JobtypeEmailSend,
|
||||
JobtypeTextRespond,
|
||||
JobtypeTextSend:
|
||||
JobtypeTextSend,
|
||||
JobtypeComplianceMailerSend:
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue