Skip to content

Commit

Permalink
feat: 计划任务添加前缀 Cron
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Dec 15, 2023
1 parent 2565710 commit 9263f30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/crontab/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func NewByScriptJob(job *model.Cronjob) error {

entryId, err := crontab.AddFunc(spec, func() {
workhub.GetSendPod(mac.WorkerId).Exec(&command.ExecPayload{
Name: she.Name,
Name: "Cron: " + she.Name,
CommandType: she.CommandType,
Username: she.Username,
WorkDirectory: she.WorkDirectory,
Expand Down
2 changes: 1 addition & 1 deletion module/workhub/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func createHistory(pod *SendPod, data *command.ExecPayload) uint {

item := &taskline.CreateParam{
UserId: pod.UserId,
Subject: "Exec: " + data.Name,
Subject: data.Name,
HostName: pod.WorkerMeta.HostName,
WorkerId: pod.WorkerId,
Request: data,
Expand Down

0 comments on commit 9263f30

Please sign in to comment.