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

feat: reload chaos experiments on service startup #642

Merged
merged 6 commits into from
Oct 1, 2023

Conversation

kerenfi
Copy link
Collaborator

@kerenfi kerenfi commented Sep 27, 2023

In order to recover from in memory experiments scheduling when service is down we want to recover and load future experiments to re schedule

Question Answer
Bug fix
New feature
Breaking change
Deprecations
Documentation
Tests added

Related issues: #634

async function runChaosExperiment(kubeObject, jobId, jobExperimentId) {

function scheduleChaosExperiment(kubeObject, jobId, jobExperimentId, startAfter) {
const timeout = setTimeout(() => chaosExperimentConnector.runChaosExperiment(kubeObject, jobId, jobExperimentId), startAfter);
Copy link
Collaborator

Choose a reason for hiding this comment

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

After you merge with me, note that jobId was dropped since it's not needed

@GuyAb GuyAb merged commit 8ff3e15 into fb-chaos-mesh-support Oct 1, 2023
@GuyAb GuyAb deleted the reload-experiments branch October 2, 2023 08:37
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.

4 participants