- 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.
14 lines
271 B
Go
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
|
|
}
|