worker: Expose the ArtifactsDir path

This will help make it easier to write the original compose request json
to the same directory tree.

Related: RHEL-60120
This commit is contained in:
Brian C. Lane 2024-10-25 15:25:22 -07:00 committed by Tomáš Hozza
parent a394d1a498
commit 199a3d31f8

View file

@ -605,6 +605,11 @@ func (s *Server) SetFailed(id uuid.UUID, error *clienterrors.Error) error {
return s.jobs.FailJob(id, res)
}
// Return the ArtifactsDir path
func (s *Server) ArtifactsDir() string {
return s.config.ArtifactsDir
}
// Provides access to artifacts of a job. Returns an io.Reader for the artifact
// and the artifact's size.
func (s *Server) JobArtifact(id uuid.UUID, name string) (io.Reader, int64, error) {