Skip to content

Commit

Permalink
ok
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 Aug 24, 2021
1 parent 48982dd commit 1c54d0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/environment-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Note that these environment variables may be removed at any time.
| `ALL_POD_CHANGES_SIGNIFICANT` | `bool` | `false` | Whether to consider all pod changes as significant during pod reconciliation. |
| `ALWAYS_OFFLOAD_NODE_STATUS` | `bool` | `false` | Whether to always offload the node status. |
| `ARCHIVED_WORKFLOW_GC_PERIOD` | `time.Duration` | `24h` | The periodicity for GC of archived workflows. |
| `ARGO_PPROF` | `bool` | `false` | Enable pprof endpoints |
| `ARGO_TRACE` | `string` | `"1"` | Whether to enable tracing statements in Argo components. |
| `CRON_SYNC_PERIOD` | `time.Duration` | `10s` | How often to sync cron workflows. |
| `DEFAULT_REQUEUE_TIME` | `time.Duration` | `10s` | The requeue time for the rate limiter of the workflow queue. |
Expand Down
2 changes: 1 addition & 1 deletion util/pprof/pprof.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func Init() {
// https://mmcloughlin.com/posts/your-pprof-is-showing
http.DefaultServeMux = http.NewServeMux()
if os.Getenv("ARGO_WORKFLOWS_PPROF") == "true" {
if os.Getenv("ARGO_PPROF") == "true" {
log.Info("enabling pprof debug endpoints - do not do this in production")
http.HandleFunc("/debug/pprof/", pprof.Index)
http.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
Expand Down

0 comments on commit 1c54d0b

Please sign in to comment.