Documentation
¶
Index ¶
- func GoMailSendMail(ctx context.Context, recipients []string, subject string, msg string, ...) *log.Status
- func SQSEnqueue(ctx context.Context, queueURL string, data any) (string, *log.Status)
- type CompletionMsg
- type Courier
- func (b *Courier) AddDatabase(conn db.DBAdapter)
- func (b *Courier) AddJson(records any, filePath string)
- func (b *Courier) AddLogFile(logPath string)
- func (b *Courier) AddOutput(outputPath string)
- func (b *Courier) AddPerJobLogFile(logDir string)
- func (b *Courier) GetOutputByExt() []string
- func (b *Courier) GetOutputPaths() []string
- func (b *Courier) Notification(req request.Request, status *log.Status, duration time.Duration) *log.Status
- func (b *Courier) PersistToBucket() *log.Status
- func (b *Courier) ServerInfo(cfg aws.Config) string
- type LongRunNotify
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoMailSendMail ¶
Types ¶
type CompletionMsg ¶
type Courier ¶
type Courier struct {
IsUnitTest bool // Set to true by run_bucket_test.
// contains filtered or unexported fields
}
func (*Courier) AddDatabase ¶
func (*Courier) AddLogFile ¶
AddLogFile sets up single-file logging with truncation (legacy behavior) Deprecated: Use AddPerJobLogFile with FCBH_DATASET_LOG_DIR instead
func (*Courier) AddPerJobLogFile ¶
AddPerJobLogFile creates a new log file for each job in the specified directory
func (*Courier) GetOutputByExt ¶
func (*Courier) GetOutputPaths ¶
func (*Courier) Notification ¶
func (*Courier) PersistToBucket ¶
type LongRunNotify ¶
type LongRunNotify struct {
EstimateMin float64
Threshold time.Duration
// contains filtered or unexported fields
}
func NewLongRunNotify ¶
func NewLongRunNotify(ctx context.Context, request request.Request) LongRunNotify
func (LongRunNotify) SendEmail ¶
func (l LongRunNotify) SendEmail()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.