Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions import-automation/executor/app/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ class ExecutorConfig:
# Latest import version (overwrite)
import_version_override: str = ''
# Relative path to version folder for graph files.
graph_data_paths: List[str] = dataclasses.field(
default_factory=lambda: ['/*/*/*.mcf'])
graph_data_path: str = '/*/*/*.mcf'
# Maximum time venv creation can take in seconds.
venv_create_timeout: float = 3600
# Maximum time downloading a file can take in seconds.
Expand Down
4 changes: 2 additions & 2 deletions import-automation/executor/app/executor/import_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class ImportStatusSummary:
import_name: str
status: ImportStatus = None
latest_version: str = ''
graph_paths: list = dataclasses.field(default_factory=list)
graph_path: str = ''
execution_time: int = 0 # seconds
data_volume: int = 0 # bytes
job_id: str = ''
Expand Down Expand Up @@ -829,7 +829,7 @@ def _import_one_helper(
version = datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d")
import_summary.latest_version = 'gs://' + os.path.join(
self.config.storage_prod_bucket_name, output_dir, version)
import_summary.graph_paths = self.config.graph_data_paths
import_summary.graph_path = self.config.graph_data_path
import_summary.next_refresh = utils.next_utc_timestamp(
import_spec.get('cron_schedule'))

Expand Down
4 changes: 1 addition & 3 deletions scripts/entities/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
"cron_schedule": "15 3 * * 1",
"config_override": {
"import_version_override": "DATE_VERSION_PLACEHOLDER",
"graph_data_paths": [
"/**/*mcf*"
],
"graph_data_path": "/**/*mcf*",
"invoke_import_validation": false,
"invoke_import_tool": false,
"invoke_differ_tool": false
Expand Down
Loading