Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persistent Worker: support warm-up script (with optional timeout) and report more metrics #812

Merged
merged 5 commits into from
Nov 18, 2024

Conversation

edigaryev
Copy link
Contributor

@edigaryev edigaryev commented Nov 18, 2024

Resolves #811, resolves #810.

Examples:

warmup:
  script: sleep 15s || true
warmup:
  script: sleep 900
  timeout: 10m

@edigaryev edigaryev requested a review from fkorotkov November 18, 2024 14:57
@edigaryev edigaryev changed the title Persistent Worker: support "warmup_script:" and report more metrics Persistent Worker: support warmup: {script: "", timeout: ""} and report more metrics Nov 18, 2024
@edigaryev edigaryev changed the title Persistent Worker: support warmup: {script: "", timeout: ""} and report more metrics Persistent Worker: support warm-up script (with optional timeout) and report more metrics Nov 18, 2024
return nil
}

logger.Infof("running warm-up script...")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add a span or a metric here for how long it takes to run the script?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 2b34e78.

@edigaryev edigaryev requested a review from fkorotkov November 18, 2024 16:50
@edigaryev edigaryev merged commit 2c582d3 into master Nov 18, 2024
11 checks passed
@edigaryev edigaryev deleted the warmup-script branch November 18, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warmup script for standby instances [worker] metric for task execution time
2 participants