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

e2pg: use stable task id #173

Merged
merged 1 commit into from
Oct 10, 2023
Merged

e2pg: use stable task id #173

merged 1 commit into from
Oct 10, 2023

Conversation

ryandotsmith
Copy link
Member

This is part of a larger change in E2PG. Instead of users defining tasks, E2PG builds tasks based on user configured integrations.

Each chain (defined in the Ethereum Sources field in the config) will have a main task. Integrations that are following the chain will be processed in the main task. If an integration requires a backfill, a new task will be created. Backfills are not a part of this commit and will be added later. Backfills will need to coordinate to not overlap work with the main task.

Given this archetecture, a task id can simple be: the chain id, a string tag that is one of 'main' 'backfill' and an optional backfill string tag that is unique amongst other backfills on the chain. For example:

1-main

1-backfill-foo

This is part of a larger change in E2PG. Instead of users defining
tasks, E2PG builds tasks based on user configured integrations.

Each chain (defined in the Ethereum Sources field in the config)
will have a main task. Integrations that are following the chain will be
processed in the main task. If an integration requires a backfill, a new
task will be created. Backfills are not a part of this commit and will
be added later. Backfills will need to coordinate to not overlap work
with the main task.

Given this archetecture, a task id can simple be: the chain id, a string
tag that is one of 'main' 'backfill' and an optional backfill string tag
that is unique amongst other backfills on the chain. For example:

1-main

1-backfill-foo
@ryandotsmith ryandotsmith self-assigned this Oct 10, 2023
@ryandotsmith ryandotsmith merged commit d01e306 into main Oct 10, 2023
2 checks passed
@ryandotsmith ryandotsmith deleted the r/taskid branch October 10, 2023 03:32
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.

1 participant