- 替换 sqlite 驱动为 github.com/glebarez/sqlite
- 修复数据库锁定的问题 - 修复部分代码不完善的问题 - 修复策略显示不完整的问题 - 修复编辑文件换行符的问题 - 优化guacd连接
This commit is contained in:
@ -103,7 +103,7 @@ func (r jobService) InitJob() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r jobService) Create(o *model.Job) (err error) {
|
||||
func (r jobService) Create(ctx context.Context, o *model.Job) (err error) {
|
||||
|
||||
if o.Status == constant.JobStatusRunning {
|
||||
j, err := getJob(o)
|
||||
@ -117,7 +117,7 @@ func (r jobService) Create(o *model.Job) (err error) {
|
||||
o.CronJobId = int(jobId)
|
||||
}
|
||||
|
||||
return repository.JobRepository.Create(context.TODO(), o)
|
||||
return repository.JobRepository.Create(ctx, o)
|
||||
}
|
||||
|
||||
func (r jobService) DeleteJobById(id string) error {
|
||||
|
||||
Reference in New Issue
Block a user