Skip to content
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

Version/service #961

Merged
merged 23 commits into from
Jan 25, 2021
Merged

Version/service #961

merged 23 commits into from
Jan 25, 2021

Conversation

tworec
Copy link
Contributor

@tworec tworec commented Jan 22, 2021

No description provided.

@tworec tworec requested a review from prekucki as a code owner January 22, 2021 15:11
core/version/src/lib.rs Outdated Show resolved Hide resolved
core/version/src/lib.rs Show resolved Hide resolved
core/version/src/db/dao.rs Outdated Show resolved Hide resolved
core/version/src/db/model.rs Show resolved Hide resolved
Err(e) => log::error!("Storing new Yagna release {} to DB. {}", rel, e),
Ok(r) => {
counter!("version.new", 1);
log::warn!("{}", ReleaseMessage::Available(&r));
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like the idea of claiming pinger responsibility here. It can result in ugly spamming of log more frequently than defined by interval in pinger.

Copy link
Contributor Author

@tworec tworec Jan 25, 2021

Choose a reason for hiding this comment

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

this will be invoked:

  • every 24h by worker
  • on every start
  • manually via yagna version check

It will immediately inform the user (via logs) that there is new version. This immediate notification was my goal here.

The same message will be logged by pinger every 30mins.

Copy link
Contributor

Choose a reason for hiding this comment

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

So every 24h we will get double logs from pinger and worker?

@tworec tworec removed the request for review from prekucki January 25, 2021 11:24
@tworec tworec merged commit b27d17c into version-notifier Jan 25, 2021
@tworec tworec deleted the version/service branch January 25, 2021 14:29
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.

None yet

2 participants