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

Add via queueing pin op on pinMgr for handleAdd and handleAddCar #886

Merged
merged 8 commits into from
Jan 24, 2023

Conversation

neelvirdy
Copy link
Contributor

@neelvirdy neelvirdy commented Jan 19, 2023

  1. Have handleAdd and handleAddCar leverage the existing pin op codepaths for pinning contents, instead of maintaining a separate pinning codepath for those handlers
  2. Create contents in "queued" state instead of "pinning". Have pinmgr set the status to pinning once a worker is on it
  3. Use onPinStatusUpdate for all types of pin status updates, not just failures

api/v1/handlers.go Outdated Show resolved Hide resolved
api/v1/handlers.go Outdated Show resolved Hide resolved
api/v1/handlers.go Outdated Show resolved Hide resolved
cmd/estuary-shuttle/main.go Outdated Show resolved Hide resolved
cmd/estuary-shuttle/main.go Outdated Show resolved Hide resolved
cmd/estuary-shuttle/main.go Outdated Show resolved Hide resolved
cmd/estuary-shuttle/main.go Outdated Show resolved Hide resolved
api/v1/handlers.go Outdated Show resolved Hide resolved
content/pinning.go Outdated Show resolved Hide resolved
content/queue/queue.go Outdated Show resolved Hide resolved
shuttle/rpc/rpc.go Outdated Show resolved Hide resolved
@neelvirdy neelvirdy requested a review from en0ma January 23, 2023 20:01
Copy link
Contributor

@en0ma en0ma left a comment

Choose a reason for hiding this comment

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

LGTM

@en0ma en0ma merged commit 74d255a into application-research:dev Jan 24, 2023
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