-
Notifications
You must be signed in to change notification settings - Fork 0
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
Code clean-up for release #36
base: master
Are you sure you want to change the base?
Conversation
jeofo
commented
Sep 5, 2024
- BREAKING: update to python3.12—remove pipenv and reinstall
- Removed scripts (@joyliu-q can we remove some k8 stuff now?)
- Cleaned up database implementation
- Cron job now scheduled via FastAPI Server
- General bugfixes
TODO: Update CI/CD to 3.12 |
@JeffersonDing you want to try your hand at Kittyhawk (remove the K8s stuff in |
Yeah, I'll try 😔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coming along nicely! You should try your hands at the /k8s
stuff, it's written in TS and meant to be easily configured.
@@ -65,4 +65,3 @@ def test_load(): | |||
end = time.time() | |||
runtime = end - start | |||
print(f"Time taken: {runtime} seconds") | |||
assert runtime < BENCHMARK_TIME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason we removed this assertion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add it back, was trying to make tests pass
@repeat_at(cron="0 0 * * *") | ||
async def flush_db(): | ||
count = await redis_count() | ||
print(f"{count} items found in redis") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of printing these, let's use Python's logging
, and set an overall logger with some settings.
json_string = json.dumps(data) | ||
data = json.loads(json.loads(json_string)) | ||
except ValueError as e: | ||
print(e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto