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

Log error if marking event fire as fired fails #461

Merged
merged 1 commit into from
Jul 19, 2021

Conversation

rowanseymour
Copy link
Contributor

No description provided.

rerr := marker.RemoveTask(rc, campaignsLock, fmt.Sprintf("%d", failed.FireID))
if rerr != nil {
log.WithError(rerr).WithField("fire_id", failed.FireID).Error("error unmarking campaign fire")
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rowanseymour rowanseymour requested a review from nicpottier July 19, 2021 22:20
Copy link
Member

@nicpottier nicpottier left a comment

Choose a reason for hiding this comment

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

good to have but this is the opposite problem we saw ya? (event wasn't actually fired but was marked as fired)

@codecov
Copy link

codecov bot commented Jul 19, 2021

Codecov Report

Merging #461 (1113a33) into main (91fd406) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #461      +/-   ##
==========================================
- Coverage   56.59%   56.57%   -0.02%     
==========================================
  Files         123      123              
  Lines        8586     8588       +2     
==========================================
  Hits         4859     4859              
- Misses       2950     2952       +2     
  Partials      777      777              
Impacted Files Coverage Δ
core/tasks/campaigns/fire_campaign_event.go 36.66% <0.00%> (-2.62%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 91fd406...1113a33. Read the comment docs.

@rowanseymour
Copy link
Contributor Author

@nicpottier well this is on the code that unmarks as fired, any contacts who failed.. i.e. any contacts not returned by runner.FireCampaignEvents.. so maybe?

@rowanseymour rowanseymour merged commit 013438c into main Jul 19, 2021
@rowanseymour rowanseymour deleted the log_err_mark_fails branch July 19, 2021 23:12
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