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 schedule entrance and job name para #107

Open
wants to merge 9 commits into
base: pre-release/v0.3.0
Choose a base branch
from

Conversation

2024river
Copy link
Contributor

@2024river 2024river commented Sep 9, 2024

ignore lendle jobs...

Copy link
Contributor

@shanshuo0918 shanshuo0918 left a comment

Choose a reason for hiding this comment

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

这个scheduler怎么用呢?

cli/schedule.py Outdated

@click.command(context_settings=dict(help_option_names=["-h", "--help"]))
@click.option(
"-cn",
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you need chain name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because some configurations depend on the chain, just like the selection of protocol ID in Uniswap v3.
And some table fields have chain names.
But it is true that this will be removed due to the configuration change of the address

cli/schedule.py Outdated
envvar="DBLINK_URL",
help="dblink to take token price, maybe moved to other replace later",
)
@click.option(
Copy link
Contributor

Choose a reason for hiding this comment

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

You can only run one job at a time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but it has changed now.

envvar="POSTGRES_URL",
help="The required postgres connection url." "e.g. postgresql+psycopg2://postgres:[email protected]:5432/ethereum",
)
@click.option(
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest not to add this. You can assume you have token price table in postgres-url

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure

# Conflicts:
#	indexer/aggr_jobs/ordered_tasks/models/period_feature_holding_balance_merchantmoe.py
#	indexer/aggr_jobs/ordered_tasks/models/period_feature_holding_balance_uniswap_v3.py
#	indexer/aggr_jobs/ordered_tasks/models/period_feature_merchant_moe_token_bin.py
#	indexer/aggr_jobs/ordered_tasks/models/period_feature_uniswap_v3_pool_prices.py
#	indexer/aggr_jobs/ordered_tasks/models/period_feature_uniswap_v3_token_details.py
#	indexer/aggr_jobs/ordered_tasks/period_feature_holding_balance_merchantmoe.sql
#	indexer/aggr_jobs/ordered_tasks/period_feature_holding_balance_uniswap_v3.sql
#	indexer/aggr_jobs/regular_tasks/daily_feature_holding_balance_uniswap_v3.sql
#	indexer/aggr_jobs/regular_tasks/models/daily_feature_uniswap_v3_pool_prices.py
#	indexer/aggr_jobs/regular_tasks/models/daily_feature_uniswap_v3_token_details.py
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.

2 participants