Skip to content

Switched to the Heartbeat API#6

Merged
ErikBjare merged 5 commits intomasterfrom
dev/heartbeat
Jan 31, 2017
Merged

Switched to the Heartbeat API#6
ErikBjare merged 5 commits intomasterfrom
dev/heartbeat

Conversation

@ErikBjare
Copy link
Copy Markdown
Member

@ErikBjare ErikBjare commented Jan 31, 2017

@ErikBjare ErikBjare changed the title Dev/heartbeat Switched to the Heartbeat API Jan 31, 2017
Copy link
Copy Markdown
Member

@johan-bjareholt johan-bjareholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome simplification.

Just want the poll_time described since it's unclear.

Comment thread aw_watcher_window/main.py Outdated
labels.append("appname:" + current_window["appname"])
current_window_event = Event(label=labels, timestamp=now)

client.heartbeat(bucketname, current_window_event, 2*args.poll_time)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default poll time is 1.0, what does that mean? A second? A minute?

And why 2*poll_time?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One second. The 2*poll_time is there since the loop block obviously takes more than poll_timeseconds (we know it takes at least that long due to the sleep(poll_time)).

A better value would probably be poll_time + 1, I'll fix that tomorrow.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't 1 second a little too low as the default value?

@ErikBjare ErikBjare merged commit 9e84b36 into master Jan 31, 2017
@ErikBjare ErikBjare deleted the dev/heartbeat branch January 31, 2017 22:28
vasuemme111 pushed a commit to Ralvie-AI/aw-watcher-window that referenced this pull request Apr 24, 2024
Fix the issue where the application name are same for some system applications
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants