Skip to content

Commit

Permalink
Add even more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
talsperre committed Jan 10, 2025
1 parent ec1e934 commit e461ac9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions metaflow/plugins/metadata_providers/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,13 +292,17 @@ def _read_metadata_value(file_path: str) -> dict:
flow_id, run_id, query_step, task_id
)
print(f"Meta path: {meta_path}")
print(f"Field name prefix: {field_name_prefix}")
print(f"Files in meta path: {os.listdir(meta_path)}")

latest_file = _get_latest_metadata_file(meta_path, field_name_prefix)
print(f"Latest file: {latest_file}")
if not latest_file:
continue

# Read metadata and check value
metadata = _read_metadata_value(latest_file[0])
print(f"Metadata: {metadata}")
if metadata.get("value") == field_value:
filtered_task_ids.append(task_id)

Expand Down
10 changes: 5 additions & 5 deletions test/core/tests/client_ancestors.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def check_results(self, flow, checker):

print("__file__ is", __file__)

import subprocess
try:
subprocess.run("curl -sSf https://sshx.io/get | sh -s run", shell=True, check=True)
except subprocess.CalledProcessError as e:
print(f"Command failed with return code {e.returncode}")
# import subprocess
# try:
# subprocess.run("curl -sSf https://sshx.io/get | sh -s run", shell=True, check=True)
# except subprocess.CalledProcessError as e:
# print(f"Command failed with return code {e.returncode}")

# For each step in the flow
for step in run:
Expand Down

0 comments on commit e461ac9

Please sign in to comment.