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

Keep on multiple networks #48

Open
mikeghen opened this issue May 16, 2022 · 0 comments
Open

Keep on multiple networks #48

mikeghen opened this issue May 16, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@mikeghen
Copy link
Contributor

We need to be able to keep on multiple networks. Superfluid is deployed on Gnosis Chain and Avalanche. Getting REX setup on these networks will increase volume.

As a first step, the existing DAGs should be changed so that if there's multiple networks, then there will be multiple DAGs.

A single DAG script usually creates 1 dag, the pattern is 1 file 1 dag. However, we can use a single file to make multiple DAGs.

One solution is to add a variable networks = ['polygon', 'gnosis', 'avalanche'] and then at the top of the DAG files use:

for network in Variables.networks:
   dag = DAG("ricochet_distribute_{network}", ...)

A single DAG file will then make multiple DAGs:

ricochet_distribute_polygon
ricochet_distribute_gnsois
ricochet_distribute_avalanche
@mikeghen mikeghen added help wanted Extra attention is needed $2500 bounty labels May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant