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

feat(worker/monitor/pusher): creating pusher subcomponent #33

Merged
merged 6 commits into from
Apr 23, 2024

Conversation

lemosep
Copy link
Member

@lemosep lemosep commented Apr 12, 2024

No description provided.

@lemosep lemosep self-assigned this Apr 12, 2024
@lffg lffg removed the enhancement label Apr 13, 2024
@lffg lffg marked this pull request as draft April 19, 2024 13:56
worker/src/monitor/pusher.rs Outdated Show resolved Hide resolved
let metrics = metrics_report.get_metrics();

let _ = client
.post("http://localhost:3000/worker/metrics")
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we're going to abstract the client into the sender module later, this hard-coded string isn't a problem for now.

sleep(args.metrics_report_interval).await;
let metrics = metrics_report.get_metrics();

let _ = client
Copy link
Contributor

Choose a reason for hiding this comment

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

This code ignores the error. What if a network error occurs? How should we handle it? We may decide later on.

cc: @gustavodiasag @YuriRDev

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm fine with leaving it as is for now. Filing an issue for a future proper handle might be an option.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with Gustavo, we should create a issue for this to handle it, but leave the priority as low as possible.

@lffg lffg marked this pull request as ready for review April 23, 2024 19:37
@lffg lffg merged commit 1853e1c into main Apr 23, 2024
3 checks passed
@lffg lffg deleted the feat/worker/monitor/pusher branch April 23, 2024 19:38
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.

4 participants