argoproj / argoproj/argo-workflows
Pass `parallelism` via CLI? Error on string vs int
- Dominant language
- Go
- Stars
- 17k
- Forks
- 3.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 138
Description
Is it possible to pass in parallelism via the command line?
I tried to setup a parameter to do this, but got an error about the value not being a number.
```
Failed to parse workflow:
error unmarshaling JSON: while decoding JSON: json:
cannot unmarshal string into Go struct field WorkflowSpec.parallelism of type int64
```
If it's not possible by default to set this for the workflow from the command line, is there a way of coercing a string containing a number into a number?
**Edit**: Do you have [anything like an `int` filter](https://stackoverflow.com/a/28234670)? I heard you were using Jinja but I can't find it within the codebase.
Contributor guide
Research direction
Start by tracing CLI parameter handling and JSON unmarshalling for WorkflowSpec.parallelism, then check whether the codebase provides the Jinja or int-filter support mentioned in the issue. Done means establishing and documenting a supported way to pass a numeric parallelism value, or clearly defining that the capability is not supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100