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

Generalized backoff functionality #108

Merged
merged 6 commits into from
Mar 21, 2024

Conversation

JTSIV1
Copy link
Contributor

@JTSIV1 JTSIV1 commented Feb 15, 2024

  • Adds function to exponential backoff any input function
  • Implements backoff in Supervisor.ts using generalized backoff

This was referenced Feb 15, 2024
Copy link
Member

@alexandermichels alexandermichels left a comment

Choose a reason for hiding this comment

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

Great work, John. Let's get this tested and try to merge it soon.

@@ -148,6 +148,32 @@ var Helper = {
consoleEnd: "\x1b[0m",

consoleGreen: "\x1b[32m",

/**
Copy link
Member

Choose a reason for hiding this comment

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

This code is really clean and well-written, great work!

@@ -7,6 +7,9 @@ import connectionPool from "./connectors/ConnectionPool";
import * as events from "events";
import DB from "./DB";
import NodeSSH = require("node-ssh");
import BaseConnector from "./connectors/BaseConnector";
Copy link
Member

Choose a reason for hiding this comment

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

Are the BaseConnector and Console imports still necessary or left-over from the previous implementation? If not, let's remove them.

Copy link
Member

@alexandermichels alexandermichels left a comment

Choose a reason for hiding this comment

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

LGTM

@alexandermichels alexandermichels merged commit ee9c837 into cybergis:v2 Mar 21, 2024
1 check passed
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