Skip to content

Refactor agent core startup solo#89

Merged
Superskyyy merged 30 commits into
refactor-fork-supportfrom
refactor-agent-core-startup-solo
Feb 16, 2023
Merged

Refactor agent core startup solo#89
Superskyyy merged 30 commits into
refactor-fork-supportfrom
refactor-agent-core-startup-solo

Conversation

@Superskyyy

Copy link
Copy Markdown
Owner
  • If this pull request closes/resolves/fixes an existing issue, replace the issue url. Closes:
  • Update the CHANGELOG.md.

@Superskyyy Superskyyy merged commit c1cd0a1 into refactor-fork-support Feb 16, 2023
When os.fork(), the service instance should be changed to a new one by appending pid.
"""
python_version: tuple = sys.version_info[:2]
if python_version[0] < 3 and python_version[1] < 7:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

21% of developers fix this issue

Unsupported operand: < is not supported for operand types typing.Union[int, str] and int.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Help us improve LIFT! (Sonatype LiftBot external survey)

Was this a good recommendation for you? Answering this survey will not impact your Lift settings.

[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

When os.fork(), the service instance should be changed to a new one by appending pid.
"""
python_version: tuple = sys.version_info[:2]
if python_version[0] < 3 and python_version[1] < 7:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

21% of developers fix this issue

Unsupported operand: < is not supported for operand types typing.Union[int, str] and int.


ℹ️ Expand to see all @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Help us improve LIFT! (Sonatype LiftBot external survey)

Was this a good recommendation for you? Answering this survey will not impact your Lift settings.

[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

Superskyyy added a commit that referenced this pull request Feb 17, 2023
This PR is made of two tightly coupled parts:

* Total rewrite of agent startup logic from module functions -> singleton class. (some other logic was changed in meter to fix wrong forking behavior)
* Provide experimental support for os.fork(), exposed as an option.
* A demo directory to provide easier access to oap/kafka/demoservices (for contributors).

Minor changes:

* Docs: fixed some missed ones over time.
* Fixed a redis bug.
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.

1 participant