Create or update a feature store deployment
(
ctx: click.Context,
skip_source_validation: bool,
skip_feature_view_validation: bool,
no_progress: bool,
no_promote: bool,
)
| 287 | ) |
| 288 | @click.pass_context |
| 289 | def apply_total_command( |
| 290 | ctx: click.Context, |
| 291 | skip_source_validation: bool, |
| 292 | skip_feature_view_validation: bool, |
| 293 | no_progress: bool, |
| 294 | no_promote: bool, |
| 295 | ): |
| 296 | """ |
| 297 | Create or update a feature store deployment |
| 298 | """ |
| 299 | repo = ctx.obj["CHDIR"] |
| 300 | fs_yaml_file = ctx.obj["FS_YAML_FILE"] |
| 301 | cli_check_repo(repo, fs_yaml_file) |
| 302 | |
| 303 | repo_config = load_repo_config(repo, fs_yaml_file) |
| 304 | |
| 305 | # Set environment variable to disable progress if requested |
| 306 | if no_progress: |
| 307 | import os |
| 308 | |
| 309 | os.environ["FEAST_NO_PROGRESS"] = "1" |
| 310 | |
| 311 | try: |
| 312 | apply_total( |
| 313 | repo_config, |
| 314 | repo, |
| 315 | skip_source_validation, |
| 316 | skip_feature_view_validation, |
| 317 | no_promote=no_promote, |
| 318 | ) |
| 319 | except FeastProviderLoginError as e: |
| 320 | print(str(e)) |
| 321 | |
| 322 | |
| 323 | @cli.command("teardown", cls=NoOptionDefaultFormat) |
nothing calls this directly
no test coverage detected