Skip to content

Conversation

@argush3
Copy link
Collaborator

@argush3 argush3 commented Sep 15, 2025

Issue #: /bcgov/entity#30658

Description of changes:

  • Add gunicorn post fork hook to re-init LD client so FF value updates and flag evaluations are updated between LD client & server in real-time. Note this is how LD official documentation recommends dealing with this issue if you use gunicorn with the --preload flag.
  • Add gunicron exit work hook to flush any buffered LD events
  • Fix typo for worker connections

Local testing results
image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the lear license (Apache 2.0).

@argush3 argush3 self-assigned this Sep 15, 2025
@argush3 argush3 merged commit c66c341 into bcgov:main Sep 15, 2025
3 of 4 checks passed
@argush3 argush3 deleted the 30658_business_api_ld_issue branch September 15, 2025 20:22
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.

2 participants