fix: Insert provisioner job logs async (#185)

The context could be cancelled after a log is sent, which resulted
in a failure. This prevent's that from occurring by using the
background context.
This commit is contained in:
Kyle Carberry
2022-02-07 14:14:15 -08:00
committed by GitHub
parent d55231cc0f
commit 13360e2e2a
3 changed files with 7 additions and 23 deletions
-9
View File
@@ -335,15 +335,6 @@ type ProjectVersion struct {
ImportJobID uuid.UUID `db:"import_job_id" json:"import_job_id"`
}
type ProjectVersionLog struct {
ID uuid.UUID `db:"id" json:"id"`
ProjectVersionID uuid.UUID `db:"project_version_id" json:"project_version_id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`
Source LogSource `db:"source" json:"source"`
Level LogLevel `db:"level" json:"level"`
Output string `db:"output" json:"output"`
}
type ProjectVersionParameter struct {
ID uuid.UUID `db:"id" json:"id"`
CreatedAt time.Time `db:"created_at" json:"created_at"`