cdklabs / cdklabs/construct-hub
Reprocessing can cause ingestion of new packages to be delayed by over an hour
- Dominant language
- TypeScript
- Stars
- 239
- Forks
- 30
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 11
Description
If we are running a full reprocessing of all packages on Construct Hub, it's possible that so many fargate tasks will be running that it's impossible for new packages to get processed. (Specifically, the "Orchestration" step function may have a task running to ingest a package, and it may get very unlucky retrying the ECS SubmitTask operation in an exponential backoff loop we have defined).
Fixingn this may require separating the compute for reprocessing and regular ingestion, or adding some way to prioritize new package tasks over reprocessing package tasks, or something else entirely.
Related: https://github.com/cdklabs/construct-hub/issues/708
Contributor guide
Research direction
Start by reviewing the Orchestration step function and its ECS SubmitTask retry behavior, then read related issue #708. Define how regular ingestion should be prioritized or isolated from full reprocessing, and consider the work done only when new packages are no longer delayed by reprocessing load.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100