Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Don't crash if we fail to read the job ad #62

Closed
@matyasselmeci

Description

@matyasselmeci

We read and parse the job ad file in main.go:parse_job_ad() for getting Owner and ProjectName info of the job. It's not currently used (usage was removed in #50) but we plan to use it for telemetry in #41.

That function crashes (log.Fatal) if $_CONDOR_JOB_AD is set to a non-existent file, or if the job ad file exists but can't be read for some reason. This results in the job going on hold with the error message stash_plugin exited with code 1, unable to open output file .../.stash_plugin.out since the plugin doesn't write the output classad.

Don't exit out, just give a warning.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions