Aleksandr Melnikov
bc1236fef3
Updated cron workflow and workflow execution select queries.
...
- Exclude "is_archived" rows.
2020-05-22 11:59:43 -07:00
Aleksandr Melnikov
d4fbd71d55
Updating workflow execution selection to not return archived executions.
2020-05-21 22:37:50 -07:00
Aleksandr Melnikov
e8c28175f5
Fixing queries not executing.
2020-05-21 22:33:12 -07:00
Aleksandr Melnikov
860dc7398c
Updating function names per feedback.
2020-05-21 22:20:00 -07:00
Aleksandr Melnikov
1a9ce9870d
Refactoring DB queries related to archiving.
...
- Using Squirrel RunWith instead of ToSql.
2020-05-21 22:19:26 -07:00
Rush Tehrani
d273037954
Merge pull request #236 from onepanelio/fix/onepanelio.core.234-workflow.details.issues
...
Fix/onepanelio.core.234 workflow.details.issues
2020-05-21 16:07:28 -07:00
Andrey Melnikov
ea5d4d56fb
update: Updated GetWorkflowExecution request to also get information for the workflow template, since we query for it anyway.
2020-05-21 15:13:26 -07:00
rushtehrani
79aa54c0c1
don't compress artifacts by default
2020-05-21 08:35:13 -07:00
Aleksandr Melnikov
68ffbb1d93
Refactoring raw SQL to use squirrel.
2020-05-20 15:53:12 -07:00
Aleksandr Melnikov
b79cfa019f
Added code to clean up Workflow Executions.
...
- Removes db and k8s entries.
2020-05-20 14:59:01 -07:00
Aleksandr Melnikov
81566969c7
Merge pull request #223 from onepanelio/feat/ns-scoped-artifact-config
...
feat: ns scoped artifact config
2020-05-20 13:32:19 -07:00
rushtehrani
6d0260a623
get artifactRepository config separately
2020-05-20 12:15:53 -07:00
Andrey Melnikov
f3deea797b
update: reworked watching workflow execution to keep watching until the workflow is done or failed.
2020-05-20 11:23:03 -07:00
Andrey Melnikov
dc1972a808
fix: (WIP) fixed an issue where workflow watch crashed and closed websocket, despite the workflow still running.
2020-05-19 20:59:05 -07:00
rushtehrani
609f24fcb2
update documentation
2020-05-19 18:03:58 -07:00
rushtehrani
a7d075e7c7
use correct http method
2020-05-19 17:40:22 -07:00
rushtehrani
2df35cb27e
add workflow status webhook
2020-05-19 17:33:02 -07:00
rushtehrani
260dd334f6
update api + remove unused import
2020-05-19 12:57:37 -07:00
Andrey Melnikov
9deee0cc8c
Merge pull request #213 from onepanelio/feat/resource-env-vars
...
feat: resource env vars
2020-05-19 12:43:55 -07:00
rushtehrani
8540bb82b7
add comment to function + named return value
2020-05-19 12:40:22 -07:00
rushtehrani
ac8c622769
remove length check since range will not iterate on 0 length slices
2020-05-19 12:31:15 -07:00
Rush Tehrani
e75170d468
Merge pull request #205 from onepanelio/fix/labels
...
fix: remove label uid and fix migration
2020-05-19 11:38:48 -07:00
rushtehrani
679d7e50b5
add resource env vars
2020-05-18 22:10:44 -07:00
rushtehrani
3f5108121b
remove unused methods
2020-05-18 21:43:02 -07:00
rushtehrani
8ddab20769
append artifact repository to outputs as well if only key is provided
2020-05-18 19:49:18 -07:00
rushtehrani
674c4f81e5
inject default artifact repository
2020-05-18 15:48:38 -07:00
Andrey Melnikov
756010958d
fix: GetWorkflowExecution now gets the same columns as List.
...
Also minor cleanup with method calls.
2020-05-18 12:47:04 -07:00
rushtehrani
cf7d52bb19
namespace config updates
2020-05-18 12:34:05 -07:00
Andrey Melnikov
14af381877
fix: issue where cloning a workflow by uid didn't work.
2020-05-17 14:03:23 -07:00
rushtehrani
655bb3c15f
don't generate UUID
2020-05-15 12:31:19 -07:00
Aleksandr Melnikov
62c8f5dcb2
Adding support for terminated workflow executions.
...
- When terminating, adding started_at and finished_at timestamps
Updated workflow_template.proto to return the count of terminated executions.
- Updating supporting code
2020-05-14 17:13:44 -07:00
Aleksandr Melnikov
6a27719167
Updating TerminateWorkflowExecution to not remove the DB workflow entry.
...
- This keeps the Workflow in the UI list.
2020-05-14 13:47:10 -07:00
rushtehrani
195a332281
remove unused code
2020-05-14 10:45:38 -07:00
Aleksandr Melnikov
735b10c025
Refactored name to uid.
2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
b41c2ea848
Changed name to uid for CloneWorkflowExecution.
...
- Added supporting changes
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
c1ce0ad17b
Changed name to uid for WatchWorkflowExecution.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
2048b7a4eb
Using Onepanel UID generator.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
d308761f27
Changed name to uid for GetWorkflowExecution.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
18a795f129
Using GenerateUID to clean up the names.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
184bb1247d
Removing sys-uid appending.
...
- Workflow generates the name on creation. We're continuing to use
workflow.name.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
5e86a0e2aa
Removing unused namespace parameter.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
1420248489
Removing un-used function.
2020-05-14 10:29:55 -07:00
Aleksandr Melnikov
998d6bcca4
Removing injected "sys-uid" since we're injecting it before createWorkflow is called.
2020-05-14 10:29:08 -07:00
Aleksandr Melnikov
f7d20e9d54
Exiting loop once param found.
2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
263f963a4c
Using parameters instead of labels.
2020-05-14 10:27:15 -07:00
Aleksandr Melnikov
6111abd740
Adding sys-uid to CreateWorkflowExecution.
...
- Appending if it does not exist
2020-05-14 10:27:15 -07:00
rushtehrani
e5f5b8d183
fix typo
2020-05-14 01:05:49 -07:00
rushtehrani
c121116b9d
move envfrom to util
2020-05-14 00:33:46 -07:00
rushtehrani
5fe29d5f58
add precedence to env vars
2020-05-13 23:05:09 -07:00
rushtehrani
3edbc809de
use EnvFrom for mounting env vars in workflows
2020-05-13 21:53:33 -07:00