mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Using dsa pem for retrieving rabbit update counts.
This commit is contained in:
parent
dc986a0a3e
commit
bfad5a19ac
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def calculate_metrics():
|
|||
from apps.rss_feeds.models import Feed
|
||||
|
||||
hour_ago = datetime.datetime.utcnow() - datetime.timedelta(hours=1)
|
||||
update_feeds_query = "ssh sclay@db01 \"sudo rabbitmqctl list_queues -p newsblurvhost | grep %s\" | awk '{print $2}'"
|
||||
update_feeds_query = "ssh -i ~sclay/.ssh/id_dsa sclay@db01 \"sudo rabbitmqctl list_queues -p newsblurvhost | grep %s\" | awk '{print $2}'"
|
||||
|
||||
return {
|
||||
'update_queue': Feed.objects.filter(queued_date__gte=hour_ago).count(),
|
||||
|
|
Loading…
Add table
Reference in a new issue