Skip to content

Commit

Permalink
nr: D persist/sqldb/retry/offload_node_status_repo_with_retry.go
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec committed Nov 10, 2020
1 parent a37b532 commit 4ba6d3b
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 172 deletions.
76 changes: 0 additions & 76 deletions persist/sqldb/retry/offload_node_status_repo_with_retry.go

This file was deleted.

85 changes: 0 additions & 85 deletions persist/sqldb/retry/offload_node_status_repo_with_retry_test.go

This file was deleted.

2 changes: 0 additions & 2 deletions server/apiserver/argoserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"github.com/argoproj/argo"
"github.com/argoproj/argo/config"
"github.com/argoproj/argo/persist/sqldb"
"github.com/argoproj/argo/persist/sqldb/retry"
clusterwftemplatepkg "github.com/argoproj/argo/pkg/apiclient/clusterworkflowtemplate"
cronworkflowpkg "github.com/argoproj/argo/pkg/apiclient/cronworkflow"
eventpkg "github.com/argoproj/argo/pkg/apiclient/event"
Expand Down Expand Up @@ -158,7 +157,6 @@ func (as *argoServer) Run(ctx context.Context, port int, browserOpenFunc func(st
if err != nil {
log.Fatal(err)
}
offloadRepo = retry.WithRetry(offloadRepo)
// we always enable the archive for the Argo Server, as the Argo Server does not write records, so you can
// disable the archiving - and still read old records
wfArchive = sqldb.NewWorkflowArchive(session, persistence.GetClusterName(), as.managedNamespace, instanceIDService)
Expand Down
8 changes: 2 additions & 6 deletions test/e2e/argo_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1201,9 +1201,7 @@ spec:
templates:
- name: run-archie
container:
image: argoproj/argosay:v2
command: [cowsay, ":) Hello Argo!"]
imagePullPolicy: IfNotPresent`).
image: argoproj/argosay:v2`).
When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeArchived).
Expand All @@ -1223,9 +1221,7 @@ spec:
templates:
- name: run-betty
container:
image: argoproj/argosay:v2
command: [cowsay, ":) Hello Argo!"]
imagePullPolicy: IfNotPresent`).
image: argoproj/argosay:v2`).
When().
SubmitWorkflow().
WaitForWorkflow(fixtures.ToBeArchived, "to be archived")
Expand Down
2 changes: 0 additions & 2 deletions test/e2e/fixtures/persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (

"github.com/argoproj/argo/config"
"github.com/argoproj/argo/persist/sqldb"
"github.com/argoproj/argo/persist/sqldb/retry"
"github.com/argoproj/argo/util/instanceid"
)

Expand All @@ -33,7 +32,6 @@ func newPersistence(kubeClient kubernetes.Interface, wcConfig *config.Config) *P
if err != nil {
panic(err)
}
offloadNodeStatusRepo = retry.WithRetry(offloadNodeStatusRepo)
instanceIDService := instanceid.NewService(wcConfig.InstanceID)
workflowArchive := sqldb.NewWorkflowArchive(session, persistence.GetClusterName(), Namespace, instanceIDService)
return &Persistence{session, offloadNodeStatusRepo, workflowArchive}
Expand Down
2 changes: 1 addition & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1853,7 +1853,7 @@ func (woc *wfOperationCtx) markWorkflowPhase(phase wfv1.NodePhase, message strin
woc.log.Infof("Marking workflow as pending archiving")
woc.wf.Labels[common.LabelKeyWorkflowArchivingStatus] = "Pending"
} else {
woc.log.Infof("Does't match with archive label selector. Skipping Archive")
woc.log.Infof("Doesn't match with archive label selector. Skipping Archive")
}
}
woc.updated = true
Expand Down

0 comments on commit 4ba6d3b

Please sign in to comment.