Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bacalhau job ID parse helper #401

Open
bgins opened this issue Oct 8, 2024 · 0 comments
Open

Add Bacalhau job ID parse helper #401

bgins opened this issue Oct 8, 2024 · 0 comments

Comments

@bgins
Copy link
Contributor

bgins commented Oct 8, 2024

In #175 we added a check for errors in the output of bacalhau create --id-only --wait path/to/job/spec:

splitOutputs := strings.Split(string(runOutputRaw), "\n")
runOutput := splitOutputs[0]
outputError := strings.Join(strings.Fields(strings.Join(splitOutputs[1:], " ")), " ")

We would like to refactor the parsing into a helper function. In addition, we should add tests to check that the parsing works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant