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

snapshotEngine: Dynamic sleep time #608

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Conversation

orcutt989
Copy link
Contributor

Instead of sleeping for the configured amount of time this will pull the date on the newest artifact of a given network, version, and history mode.

If the date is older than our sleep time then it starts the artifact creation job.

If the date is newer than it subtracts this from the configured sleep time and sleeps for this new amount.

This was created because we run our nodes pretty slim and sometimes they OOM. This causes the jobs to restart when they are sleeping resulting in more artifacts created than expected with a given sleep time and increased costs.

Now even if the jobs get restarted it will still dynamically calculate if the job needs to sleep or not.

Copy link
Collaborator

@nicolasochem nicolasochem left a comment

Choose a reason for hiding this comment

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

Will it work if there are no artifacts yet? (new namespace)

Copy link
Collaborator

@nicolasochem nicolasochem left a comment

Choose a reason for hiding this comment

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

thanks

@orcutt989 orcutt989 merged commit 6b9ac52 into master Oct 3, 2023
20 checks passed
@harryttd harryttd deleted the check-newest-artifact branch February 26, 2024 18:21
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.

None yet

2 participants