worker: add JobArtifact() and DeleteJobArtifacts()
This allows removing the `artifactsDir` from `weldr.API`. It makes more sense to deal with that directory in one place only.
This commit is contained in:
parent
b452a31eed
commit
e06076ed8c
5 changed files with 69 additions and 39 deletions
|
|
@ -137,7 +137,7 @@ func main() {
|
|||
compatOutputDir := path.Join(stateDir, "outputs")
|
||||
|
||||
workers := worker.NewServer(logger, jobs, artifactsDir)
|
||||
weldrAPI := weldr.New(rpm, arch, distribution, repoMap[common.CurrentArch()], logger, store, workers, artifactsDir, compatOutputDir)
|
||||
weldrAPI := weldr.New(rpm, arch, distribution, repoMap[common.CurrentArch()], logger, store, workers, compatOutputDir)
|
||||
|
||||
go func() {
|
||||
err := workers.Serve(jobListener)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue