-
Notifications
You must be signed in to change notification settings - Fork 321
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
Unable to deploy project version through CLI deployment:deploy with disabled historical data #1454
Comments
Please add the following command to your deployment script
|
Hey @jamesbayly thanks for the hint. I tried, but looks like the flag |
Maybe here: subql/packages/cli/src/commands/deployment/deploy.ts Lines 85 to 98 in cbe2187
providing some defaults fallback boolean values might help: const indexerAD = {
unsafe: flags.indexerUnsafe || false,
batchSize: flags.indexerBatchSize || 30,
subscription: flags.indexerSubscription || false ,
historicalData: flags.indexerHistoricalData || false,
workers: flags.indexerWorkers || 1,
}; i suspect that, if no |
or a another approach is to set default value for the Flag according to oclif:
to indexerHistoricalData: Flags.boolean({description: 'Enable Historical Data', required: false, default: false}), |
Prerequisites
Description
By default
subql deployment:deploy
also when omitting the--indexerHistoricalData
flag deploys a project version and enables historical data. Projects which are incompatible with historicalData, should be able to disable the feature also via CLI and not only through the UI.Details
When deploying our project with the command:
The deployment successfully runs but the indexer lands in an unhealthy state.
Our data model is NOT compatible with historical data, as we implemented a custom logic for state tracking and snapshotting. For this reason we need to disable it, in order for the indexer to work correctly. This is currently not possible through the CLI but only with the UI.
When the exact same project is deployed through the UI with the same CID, historical data IS disabled and the indexer works fine:
Steps to Reproduce
Any other information
Deployment Error Info
The text was updated successfully, but these errors were encountered: