-
Notifications
You must be signed in to change notification settings - Fork 25
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
base: pre-release/v0.3.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
ignore lendle jobs...