yao/job/progress.go
Max 38f86aa77b Implement job management functionality and update job model
- Added new job management functions: Once, Cron, and Daemon for creating jobs with different scheduling types.
- Introduced methods for job manipulation, including Start, Cancel, and various setters for job properties.
- Updated job model to reflect changes in the job execution process type, renaming "process_type" to "mode" and adjusting enum values to uppercase.
- Removed obsolete interfaces and types related to job management, streamlining the codebase.
2025-08-31 11:59:16 +08:00

14 lines
271 B
Go

package job
// Progress the progress manager struct
type Progress struct{}
// Progress Progress manager
func (j *Job) Progress() ProgressManager {
return &Progress{}
}
// Set set the progress
func (p *Progress) Set(progress int, message string) error {
return nil
}