Skip to content

Commit 5df922b

Browse files
committed
chore: drop more logs
1 parent cfbc050 commit 5df922b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

coderd/provisionerdserver/provisionerdserver.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,12 +1985,15 @@ func (s *server) completeWorkspaceBuildJob(ctx context.Context, job database.Pro
19851985
// In order to surface this to the user, we will also insert a warning into the build logs.
19861986
if _, err := db.InsertProvisionerJobLogs(ctx, database.InsertProvisionerJobLogsParams{
19871987
JobID: jobID,
1988-
CreatedAt: []time.Time{now},
1989-
Source: []database.LogSource{database.LogSourceProvisionerDaemon},
1990-
Level: []database.LogLevel{database.LogLevelWarn},
1991-
Stage: []string{"Cleaning Up"},
1988+
CreatedAt: []time.Time{now, now, now, now},
1989+
Source: []database.LogSource{database.LogSourceProvisionerDaemon, database.LogSourceProvisionerDaemon, database.LogSourceProvisionerDaemon, database.LogSourceProvisionerDaemon},
1990+
Level: []database.LogLevel{database.LogLevelWarn, database.LogLevelWarn, database.LogLevelWarn, database.LogLevelWarn},
1991+
Stage: []string{"Cleaning Up", "Cleaning Up", "Cleaning Up", "Cleaning Up"},
19921992
Output: []string{
19931993
fmt.Sprintf("Unknown ai_task_sidebar_app_id %q. This workspace will be unable to run AI tasks. This may be due to a template configuration issue, please check with the template author.", sidebarAppID.UUID.String()),
1994+
"Template author: double-check the following:",
1995+
" - You have associated the coder_ai_task with a valid coder_app in your template (ref: https://registry.terraform.io/providers/coder/coder/latest/docs/resources/ai_task).",
1996+
" - You have associated the coder_agent with at least one other compute resource. Agents with no other associated resources are not inserted into the database.",
19941997
},
19951998
}); err != nil {
19961999
s.Logger.Error(ctx, "insert provisioner job log for ai task sidebar app id warning",

0 commit comments

Comments
 (0)