Aleksandr Melnikov
77812419d2
Removing pod anti-affinity injection from workflows.
...
- Workspaces end up calling workflows. This has to be removed
as part of switching back to resource requests.
2020-09-24 11:03:37 -07:00
Rush Tehrani
c45231c106
Merge pull request #585 from aleksandrmelnikov/feat/core.583-workflows.use.pod.anti.affinity
...
feat: Updated Workflows, and Cron created Workflows, to ensure they get their own pod by using Pod AntiAffinity. This replaces resource limits and/or requests.
2020-09-21 16:20:13 -07:00
Aleksandr Melnikov
31076bc70d
Adding systemConfig to function.
...
- Also added error return
2020-09-18 15:50:28 -07:00
Aleksandr Melnikov
3e87376feb
Updating cron_workflow to actually ensure a singular node for
...
the cron created workflows.
2020-09-17 17:42:49 -07:00
Andrey Melnikov
d4d4884e5b
feat: initial pagination updates
2020-09-16 18:26:51 -07:00
Andrey Melnikov
8586639a6c
update: cron workflows to use new labels
2020-08-09 16:15:05 -07:00
Andrey Melnikov
5620bfb3fb
docs: workflow_template_types
2020-06-22 12:45:13 -07:00
Andrey Melnikov
dea5eeda3b
clean: WorkflowTemplateVersionId -> WorkflowTemplateVersionID
2020-06-22 12:29:26 -07:00
Andrey Melnikov
97c5e2da6f
fix: issue where listing cron workflows failed
2020-06-22 11:11:53 -07:00
Andrey Melnikov
1526194e71
clean: CronWorkflow logic since label options are now a map and not a pointer to a map.
2020-06-20 13:18:52 -07:00
Andrey Melnikov
d209423100
clean:
...
* updated method names to fit go conventions of uppercase. Db -> DB
* updated some method calls to use updated column select functions to remove extraneous empty string
* updated methods to use new label function that does nothing if no labels are passed in, this simplifies the code.
* updated some methods to use new Selectx function, reducing code in caller.
2020-06-20 13:18:52 -07:00
Rush Tehrani
8ba2f9f6a1
Merge pull request #246 from onepanelio/fix/delete.scheduled.cron
...
Fixed TerminateCronWorkflow
2020-05-22 20:22:45 -07:00
Aleksandr Melnikov
b712ba676a
Fixed TerminateCronWorkflow
...
- Code will clean up any WorkflowExecutions, including those in progress.
Code then cleans up the scheduled cron workflow, archiving it in the database.
2020-05-22 19:20:31 -07:00
rushtehrani
3ebd7ab245
increase column size to 63 for cron workflows and workflo executions
2020-05-22 17:26:58 -07:00
rushtehrani
617806011c
move getCronWorkflowColumns to types.go
2020-05-22 16:01:17 -07:00
Aleksandr Melnikov
e405ccdf04
Removing unused functions.
2020-05-22 15:57:00 -07:00
Aleksandr Melnikov
f555584fc8
Per https://github.com/onepanelio/core/pull/226/files#r429475185
...
This method ended up being equal to the one mentioned.
2020-05-22 15:42:25 -07:00
Aleksandr Melnikov
f4743d3790
Making method not public.
...
Per https://github.com/onepanelio/core/pull/226#discussion_r429473764
2020-05-22 15:35:26 -07:00
Aleksandr Melnikov
7ec544550b
Refactored per https://github.com/onepanelio/core/pull/226#discussion_r428964039 .
2020-05-22 15:28:59 -07:00
Aleksandr Melnikov
bd38568e6b
Fixing "is_archived" not being set on insert, which had unintentional
...
consequences for displaying data in UI.
2020-05-22 15:22:14 -07:00
Aleksandr Melnikov
4cdef38325
Refactoring CronWorkflow pkg
...
- Terminate function will focus on deleting data
- Archive will delete k8s but archive db data
Removing DB and K8s specific methods
- Per code guidelines, these do not add anything by abstracting them away.
2020-05-22 14:30:30 -07:00
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
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
Aleksandr Melnikov
92b9aba0d1
Adding namespace to cron workflow related code.
2020-05-21 12:47:42 -07:00
Aleksandr Melnikov
68ffbb1d93
Refactoring raw SQL to use squirrel.
2020-05-20 15:53:12 -07:00
Aleksandr Melnikov
381fba4c8f
Refactoring TerminateCronWorkflow into separate methods.
...
- Need these methods for archiving
2020-05-20 14:18:59 -07:00
Aleksandr Melnikov
9e48c3b406
Updating name generated to use onepanel uid generation.
2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
fc10444656
Updating name to uid in cron_workflow and related code.
2020-05-14 10:31:33 -07:00
Aleksandr Melnikov
4ad388e892
Adding import.
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
5e86a0e2aa
Removing unused namespace parameter.
2020-05-14 10:29:55 -07:00
rushtehrani
5ebb1db051
make code more modular
2020-05-05 20:52:36 -07:00
Andrey Melnikov
d1235ee2cb
fix: Cron update params and field types
2020-05-02 17:57:13 -07:00
Andrey Melnikov
5dfbf98ec4
fix: cron manifest parsing issue
2020-05-02 17:39:36 -07:00
Andrey Melnikov
19a622e37a
fix: cron workflow parameters did not update
2020-05-02 16:38:24 -07:00
Andrey Melnikov
adb59a36a3
Merge remote-tracking branch 'origin/feat/workspaces' into feat/integrate.workflow.changes
2020-05-01 23:36:59 -07:00
Andrey Melnikov
1fe4201704
feat: updated crons to have a manifest in db
2020-04-30 14:52:26 -07:00
rushtehrani
af82c312a7
move workspace_types and common_types and refactor Parameter alias
2020-04-29 17:31:44 -07:00
Andrey Melnikov
b0571f69c9
fix: issues with cron workflow labels not being set/saved.
2020-04-29 14:01:37 -07:00
Andrey Melnikov
a516ab4d38
fix: missing db cron workflow update.
2020-04-29 11:11:33 -07:00
Andrey Melnikov
d493bfb19a
Merge remote-tracking branch 'origin/feat/workspaces' into feat/integrate.workflow.changes
2020-04-29 09:53:22 -07:00
rushtehrani
772f6ce880
move injectAutomatedFields after exit and init handlers
2020-04-29 09:37:04 -07:00
rushtehrani
beea0ce69e
refactor workflow stats
2020-04-28 16:59:24 -07:00
Andrey Melnikov
7528348aaf
Merge remote-tracking branch 'origin/feat/workspaces' into feat/integrate.workflow.changes
2020-04-28 10:21:23 -07:00
rushtehrani
d80e53a12b
inject stats container before automated fields
2020-04-27 19:21:59 -07:00
Andrey Melnikov
9533251227
feat: Added cron workflow statistics to workflow templates
2020-04-27 11:34:44 -07:00
Andrey Melnikov
1920eb5ed0
update: database records for all resources.
2020-04-27 09:32:45 -07:00
Andrey Melnikov
fd686a0672
update: workflow versions are db records again to more easily store custom user manifest and parameters
2020-04-22 12:18:39 -07:00