-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
Few comments before you go to far ahead |
cmd/create/execution.go
Outdated
Task string `json:"task,omitempty" pflag:",task name for which execution needs to be launched.Either an execution can be for task or workflow."` | ||
KubeServiceAcct string `json:"kubeServiceAcct" pflag:",kubernetes service account AuthRole for launching execution."` | ||
IamRoleURN string `json:"iamRoleURN" pflag:",iam role URN AuthRole for launching execution."` | ||
Version string `json:"version" pflag:",version of the launch plan or task to be fetched for execution.If not specified it would use the latest version."` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version string `json:"version" pflag:",version of the launch plan or task to be fetched for execution.If not specified it would use the latest version."` | |
Version string `json:"version" pflag:",[optional]version of the launch plan or task to be fetched for execution.If not specified it would use the latest version."` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the file has serialized version field always , We should disallow passing this as an override to avoid any mismatch in the generated file task/lp version against the one passed in. Let me know what you think
0325cf2
to
eb468e2
Compare
Signed-off-by: pmahindrakar-oss <[email protected]>
eb468e2
to
4936d30
Compare
Signed-off-by: pmahindrakar-oss <[email protected]>
cb5444d
to
832c408
Compare
Codecov Report
@@ Coverage Diff @@
## master #39 +/- ##
===========================================
+ Coverage 34.05% 45.77% +11.72%
===========================================
Files 25 34 +9
Lines 693 1018 +325
===========================================
+ Hits 236 466 +230
- Misses 441 482 +41
- Partials 16 70 +54
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
Signed-off-by: pmahindrakar-oss <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple nits, then merge?
Signed-off-by: pmahindrakar-oss <[email protected]>
…d empty or nil inputs Signed-off-by: pmahindrakar-oss <[email protected]>
TL;DR
Create the executions for given workflow/task in a project and domain.
There are three steps in generating an execution.
The spec file should be generated first and then run the execution using the spec file
flytectl get tasks -d development -p flytectldemo core.advanced.run_merge_sort.merge --version v2 --execFile execution_spec.yaml
The generated file would look similar to this. Also if the file already exist it would prompt you if you need to overwrite.
The generated file can be modified to change the parameter values and can be passed to command for execution
Notice the source and target domain/projects can be different.
The root project and domain flags of -p and -d should point to task/launch plans project/domain.
flytectl create execution --execFile execution_spec.yaml -p flytectldemo -d development --targetProject flytesnacks
Type
Are all requirements met?
Unit tests are pending
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
flyteorg/flyte#395
Follow-up issue
NA