-
Notifications
You must be signed in to change notification settings - Fork 71
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
Show pending items in queue counter on dashboard #96
Conversation
This looks okay to me. I'd like to hold off merging it until the hooks make it into a new wpull release. That way, we can change requirements.txt accordingly, and the usual One thing: for pipelines that don't have this code, we'll see zero for queued and downloaded items. I don't think this is a big problem: it will eventually be solved as all pipelines are updated, and we can adapt our brains in the meantime. |
@yipdw Okay, sounds reasonable. |
I don't understand why you think they are always being reset to 0. They are reset to 0 after their value has been added to the global counter in redis.
|
I mean, why are the counters even there in the first place, instead of just
|
I created those internal counters just like I guess the idea is to retry adding the value in case something goes wrong during the redis operation. |
Ah, okay. @yipdw what's the point of |
Yeah, the idea behind I'm not sure it's necessary, though -- losing a record here or there might not be worth the odd code flow. It may not actually fulfill its intended purpose: part of |
wpull 0.1000 has been released and is being used by ArchiveBot, so I'm merging this. |
Also show total number of queued and downloaded items as a title attribute.
This seems to work pretty well; however, I've noticed that For the sort of coarse-grained "are we there yet" information we're looking for, this isn't a problem; however, from an accounting perspective, it'd be nice for all quantities to match up 😄 |
Based upon ArchiveTeam/wpull#169