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

Replace beem with lighthive #30

Merged
merged 37 commits into from
Jan 10, 2022
Merged

Conversation

brianoflondon
Copy link
Collaborator

@brianoflondon brianoflondon commented Jan 6, 2022

Lighthive used to post custom_jsons - more work incoming to remove beem from checking for server settings

Closes #28

Signed-off-by: Brian of London <[email protected]>
Signed-off-by: Brian of London <[email protected]>
Signed-off-by: Brian of London <[email protected]>
Signed-off-by: Brian of London <[email protected]>
)
# TODO: Should we periodically check if the account is allowed
# and shut down if not?
if self.server_account not in allowed:
logging.error(
f"Account @{self.server_account} not authorised to send Podpings"
)
except AccountDoesNotExistsException:
except 45:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't really know how to do error trapping properly and play nice with loops. Basic checks work.

@brianoflondon brianoflondon changed the title Workin progress on #28 Work in progress on #28 Jan 8, 2022
brianoflondon and others added 13 commits January 8, 2022 11:18
Signed-off-by: Brian of London <[email protected]>
Signed-off-by: Brian of London <[email protected]>
Add handling for more than 5 custom_jsons from one account in a given block. The retry condition will trigger.

I can't think of a good way to write a test condition for this
I'm not sure this test is really doing what I want, but lighthive seems to handle it.
Signed-off-by: Brian of London <[email protected]>
Also fix the description since it doesn't render as markdown on pypi
@agates agates marked this pull request as ready for review January 10, 2022 17:41
@agates agates changed the title Work in progress on #28 Replace beem with lighthive Jan 10, 2022
@brianoflondon brianoflondon merged commit 7a3b3e7 into develop Jan 10, 2022
@agates agates deleted the feature/1.1/Test_Lighthive branch August 15, 2022 17:10
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