Comments (3)
If i remember correctly our reason for setting the limit to 100 was so activitywatch wouldn't take up all CPU and disk usage by dumping the whole bucket if someone had run activitywatch for a long period of time. Now when i think of it it's kind of stupid, but still valid I guess. At least we should document it somewhere.
@ErikBjare Should we remove the default 100 event limit or keep it?
Instead of setting limit = 10**6
you can use limit = -1
to fetch all events.
By the way @nikanar, if you havn't seen it yet you can have a nice view of the REST api at localhost:5600/api, could be useful.
from aw-client.
The default limit is 100 by default for very reason that Johan explained.
That being said, it might be better to have 100 as the default argument in ´aw-client´ and make ´limit=None´ mean that ´limit=-1´ is passed to the API.
And again @nikanar, I can't thank you enough for the work you are doing here ❤️
from aw-client.
Fixed
aw-client: 4b11b94
aw-server: ActivityWatch/aw-server@3d841d9
from aw-client.
Related Issues (20)
- Integrate JSON datastore for uncommittable data
- Failed events queue grows exponentially HOT 2
- Unavailable server led to unordered events HOT 1
- Make API surface clearer about sync, async and queue HOT 1
- Failed queue is never sent HOT 1
- Implement some "wait for queue to empty" call
- Add method for caching next expected event to be sent (in case of program/machine failure) HOT 2
- Send heartbeats from queue as batches
- Need help understanding client.py HOT 2
- Cannot create_bucket with queued=True HOT 11
- Better support systems running with a proxy HOT 5
- aw-cli does not parse "host" arg properly
- Example file not working (working_hours.py) HOT 1
- Many heartbeats and a unavailable server might lead to queue clogging
- Failed to run examples and tests
- type for start and end should be Optional[datetime] HOT 3
- Return response data from insert_event(s) methods
- Versioning confusion HOT 1
- Crashes if no space left on device 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 aw-client.