cdklabs / cdklabs/construct-hub

Reprocessing can cause ingestion of new packages to be delayed by over an hour

Open
#715 1 comment 0 reactions 0 assignees View on GitHub
bug effort/epic p1
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.