- 替换 sqlite 驱动为 github.com/glebarez/sqlite

- 修复数据库锁定的问题
- 修复部分代码不完善的问题
- 修复策略显示不完整的问题
- 修复编辑文件换行符的问题
- 优化guacd连接
This commit is contained in:
dushixiang
2022-03-29 22:31:08 +08:00
parent 03114b486c
commit d393d28e5e
42 changed files with 435 additions and 567 deletions

View File

@ -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 {