Bumps the workspace deadline by the template's configured "activity_bump" duration (default 1h). If the workspace bump will cross an autostart threshold, then the bump is autostart + TTL. This is the deadline behavior if the workspace was to autostart from a stopped state. Max deadline is respected
(ctx context.Context, arg ActivityBumpWorkspaceParams)
| 107 | // We only bump if workspace shutdown is manual. |
| 108 | // We only bump when 5% of the deadline has elapsed. |
| 109 | func (q *sqlQuerier) ActivityBumpWorkspace(ctx context.Context, arg ActivityBumpWorkspaceParams) error { |
| 110 | _, err := q.db.ExecContext(ctx, activityBumpWorkspace, arg.NextAutostart, arg.WorkspaceID) |
| 111 | return err |
| 112 | } |
| 113 | |
| 114 | const deleteAIProviderKey = `-- name: DeleteAIProviderKey :exec |
| 115 | DELETE FROM |
nothing calls this directly
no test coverage detected