MCPcopy
hub / github.com/feast-dev/feast / apply_total_command

Function apply_total_command

sdk/python/feast/cli/cli.py:289–320  ·  view source on GitHub ↗

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,
)

Source from the content-addressed store, hash-verified

287)
288@click.pass_context
289def 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)

Callers

nothing calls this directly

Calls 3

cli_check_repoFunction · 0.90
load_repo_configFunction · 0.90
apply_totalFunction · 0.90

Tested by

no test coverage detected