Comments (4)
Thanks for your reaction! I'm glad my suggestion resonated with you.
As for the default limit, yes, 1000 log entries seems reasonable. It means that Rocketry's default mem requirement for a task that doesn't produce any logs by itself is capped at around 6.5 MB, which seems ok.
Let me know if you'd like some help with it in case you decide to go forward with an implementation.
from rocketry.
A bit background: The rational for the default logging is that it's easy to prototype and get started with Rocketry. Wasn't meant for production and the assumption was there would be some thousand records max in generic cases.
But I think you have a very valid point: there should be a hard limit by default and I think your proposal would be the way to go. I'm thinking maybe the limit could be like 1000 or so.
Thanks for the idea and I really appreciate the time you spent on investigating the issue and the solutions. I think there was another similar issue but due to lack of elaboration there I didn't get the grip on the whole issue from that.
from rocketry.
I'll do!
I'm currently working on adding optional timezone as that seems to be quite important for quite many people. After that I either try to progress on the event system or then I focus on Red Bird issues possibly including this issue. I'll notify you then if you wish to participate (like in the discussion at least, would be great to have your opinions).
from rocketry.
Hello!
I had this issue in production and fixed it with a LimitedMemoryRepo. Also implemented a NullRepo which does not track any logs whatsoever (is this going to break anything, e.g. if query_data does nothing?)
I can push my changes to be included in Rocketry as alternative log repos to the list offered by redbird
from rocketry.
Related Issues (20)
- @app.task('daily.at("21:00") before Friday') HOT 1
- @app.task(daily.between("08:00", "20:00") & every("10 minutes")) HOT 3
- Passing a mongoclient to MongoRepo does not work. Rocketry.run() fails. HOT 1
- ENH - API for viewing the task queue HOT 1
- Add tasks during runtime HOT 1
- TypeError: issubclass() arg 1 must be a class HOT 2
- ENH - Downtime recovery (persistance, crash recovery, process restart)
- ENH - Change task schedule on fly
- Warning error HOT 1
- @app.task(minutely & (time_of_week.between('Mon', 'Sat') & time_of_day.between('3:00', '10:00'))) HOT 1
- Pydantic v2 support HOT 25
- flask support
- Adding task on fly is not working in all scenarios HOT 1
- Optimization: Short circuit evaluation
- BUG: Hourly tasks are being run on server restarts HOT 1
- BUG HOT 5
- BUG HOT 1
- Is there any way to schedule an async function using 'threads' or 'processes'?
- pydantic.errors.PydanticUserError: `const` is removed, use `Literal` instead HOT 4
- Conditions: cron "0/20 * * * *" is not same as "*/20 * * * *" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocketry.