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

Support sync of accepted costs between Scrooge instances #650

Closed
wants to merge 4 commits into from

Conversation

mkurek
Copy link
Contributor

@mkurek mkurek commented Sep 28, 2018

No description provided.

@coveralls
Copy link

coveralls commented Oct 1, 2018

Coverage Status

Coverage increased (+0.2%) to 76.933% when pulling 6e9934e on accepted-costs-sync into 1e0b14c on develop.


def _publish_dump(dump):
for recipient_url, auth_token in settings.ACCEPTED_COSTS_SYNC_RECIPIENTS:
response = requests.post( # todo: retry, timeout
Copy link
Collaborator

Choose a reason for hiding this comment

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

This todo is for later?

@@ -403,3 +403,7 @@
PERCENT_DIFF_EPSILON = 0.0001
# recalculate costs on /scrooge/api/v0.9/pricingserviceusages/
ENABLE_RECALCULATE_COSTS_ON_POST = True

ACCEPTED_COSTS_SYNC_RECIPIENTS = []
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would be good to add comment about how ACCEPTED_COSTS_SYNC_RECIPIENTS data format should look like.

Copy link
Contributor

@szymi- szymi- left a comment

Choose a reason for hiding this comment

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

Approved by misclick.

@mkurek mkurek closed this Jun 2, 2021
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

4 participants