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

Handle pin claim job errors #676

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Handle pin claim job errors #676

merged 1 commit into from
Jan 15, 2025

Conversation

JGiter
Copy link
Contributor

@JGiter JGiter commented Nov 22, 2024

  • Fixing types or arguments passed to job callbacks
  • Logging IPFS request errors

@JGiter JGiter marked this pull request as ready for review January 10, 2025 13:05
@JGiter JGiter requested a review from jrhender January 10, 2025 13:05
}

@OnQueueFailed()
onFailed(job: Job, err: Error) {
this.logger.error(
`Failed ${job.name} claim ${JSON.parse(job.data).cid}: ${err}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

@JGiter why removing the JSON.parse here? Is data an object type already?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, job.data is PinClaimData

@jrhender jrhender self-requested a review January 15, 2025 05:24
Copy link
Collaborator

@jrhender jrhender left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@jrhender jrhender merged commit 53f5162 into develop Jan 15, 2025
13 checks passed
@jrhender jrhender deleted the handle-pin-job-errors branch January 15, 2025 22:04
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