faint-zoo-41552
06/20/2024, 9:59 PMwith so that different people on the team can have different creds. π§΅faint-zoo-41552
06/20/2024, 9:59 PMpoetry run python classifier/pull_data_flow.py --environment=pypi β-with 'secrets:sources=["dev/mmr-snowflake"]' runfaint-zoo-41552
06/20/2024, 9:59 PMUsing python3 (3.11.7)
Usage: pull_data_flow.py [OPTIONS] COMMAND [ARGS]...
Try 'pull_data_flow.py --help' for help.
Error: No such command 'β-with'.faint-zoo-41552
06/20/2024, 10:02 PMancient-application-36103
06/20/2024, 10:35 PMfaint-zoo-41552
06/20/2024, 10:42 PMfaint-zoo-41552
06/20/2024, 10:42 PMancient-application-36103
06/20/2024, 10:54 PM__name__=="__main__": bits?faint-zoo-41552
06/20/2024, 10:54 PMif __name__ == "__main__":
ClassificationPreprocessing()faint-zoo-41552
06/20/2024, 10:55 PMclass ClassificationPreprocessing(FlowSpec):faint-zoo-41552
06/20/2024, 10:55 PM@secrets(sources=['dev/mmr-snowflake'])
@batch(image='python:3.10.13-slim', cpu=16, memory=2**16, gpu=0)
@conda(packages=PREPROCESSING_PACKAGES, python=PYTHON_VERSION)
@step
def pull_ocr(self):
import pandas as pd
import ast
from shared.execute_sql import SnowflakeOAuthQuery, SqlArgsancient-application-36103
06/20/2024, 10:56 PMfaint-zoo-41552
06/20/2024, 10:56 PM@environment(SNOWFLAKE_INFO) but that just straight up failed, not sure how to structure env varsfaint-zoo-41552
06/20/2024, 10:56 PMancient-application-36103
06/20/2024, 10:57 PM@environment(vars=SNOWFLAKEINFO) should workfaint-zoo-41552
06/20/2024, 10:57 PMshy-address-41011
06/20/2024, 11:12 PMfaint-zoo-41552
06/20/2024, 11:12 PMshy-address-41011
06/20/2024, 11:21 PMshy-address-41011
06/20/2024, 11:21 PMfaint-zoo-41552
06/20/2024, 11:22 PMfaint-zoo-41552
06/20/2024, 11:22 PMshy-address-41011
06/20/2024, 11:23 PMfaint-zoo-41552
06/20/2024, 11:23 PMfaint-zoo-41552
06/20/2024, 11:23 PMfaint-zoo-41552
06/20/2024, 11:24 PMshy-address-41011
06/20/2024, 11:25 PMfrom metaflow import FlowSpec, step
import os
class HelloWorldFlow(FlowSpec):
@step
def start(self):
for name, value in os.environ.items():
print("{0}: {1}".format(name, value))
self.next(self.end)
@step
def end(self):
pass
if __name__ == '__main__':
HelloWorldFlow()
and run it like :
python helloflow.py --with 'secrets:sources=["'REPLACE_SECRET_HERE'"]' runfaint-zoo-41552
06/20/2024, 11:28 PMmark@mmr-laptop:~/src/HypHub/models/lease_sales_classifier$ poetry run python helloflow.py --with 'secrets:sources=["'REPLACE_SECRET_HERE'"]' run
The currently activated Python version 3.12.1 is not supported by the project (~3.11).
Trying to find and use a compatible version.
Using python3 (3.11.7)
Metaflow 2.12.4 executing HelloWorldFlow for user:mark
Validating your flow...
The graph looks good!
Running pylint...
Pylint is happy!
2024-06-20 16:27:43.688 Workflow starting (run-id 1870):
2024-06-20 16:27:47.653 [1870/start/11341 (pid 936231)] Task is starting.
2024-06-20 16:27:49.748 [1870/start/11341 (pid 936231)] <flow HelloWorldFlow step start> failed:
2024-06-20 16:27:51.493 [1870/start/11341 (pid 936231)] Flow failed:
2024-06-20 16:27:51.620 [1870/start/11341 (pid 936231)] Failed to retrieve secret 'REPLACE_SECRET_HERE': An error occurred (ResourceNotFoundException) when calling the GetSecretValue operation: Secrets Manager can't find the specified secret.
2024-06-20 16:27:51.620 [1870/start/11341 (pid 936231)]
2024-06-20 16:27:51.721 [1870/start/11341 (pid 936231)] Task failed.
2024-06-20 16:27:51.873 Workflow failed.
2024-06-20 16:27:51.873 Terminating 0 active tasks...
2024-06-20 16:27:51.873 Flushing logs...
Step failure:
Step start (task-id 11341) failed.faint-zoo-41552
06/20/2024, 11:28 PMfaint-zoo-41552
06/20/2024, 11:28 PMfaint-zoo-41552
06/20/2024, 11:29 PMfaint-zoo-41552
06/20/2024, 11:29 PMshy-address-41011
06/20/2024, 11:30 PMancient-application-36103
06/20/2024, 11:31 PMfaint-zoo-41552
06/20/2024, 11:31 PMfaint-zoo-41552
06/20/2024, 11:31 PMancient-application-36103
06/20/2024, 11:32 PMancient-application-36103
06/20/2024, 11:33 PMfaint-zoo-41552
06/20/2024, 11:33 PMmark@mmr-laptop:~/src/HypHub/models/lease_sales_classifier$ poetry run python helloflow.py logs scrub
The currently activated Python version 3.12.1 is not supported by the project (~3.11).
Trying to find and use a compatible version.
Using python3 (3.11.7)
Metaflow 2.12.4 executing HelloWorldFlow for user:mark
Usage: helloflow.py logs scrub [OPTIONS] INPUT_PATH
Try 'helloflow.py logs scrub --help' for help.
Error: Missing argument 'INPUT_PATH'.faint-zoo-41552
06/20/2024, 11:33 PMancient-application-36103
06/20/2024, 11:35 PMfaint-zoo-41552
06/20/2024, 11:40 PMfaint-zoo-41552
06/20/2024, 11:40 PMfaint-zoo-41552
06/20/2024, 11:44 PMancient-application-36103
06/20/2024, 11:46 PMancient-application-36103
06/20/2024, 11:46 PMfaint-zoo-41552
06/20/2024, 11:48 PMfaint-zoo-41552
06/20/2024, 11:48 PMancient-application-36103
06/20/2024, 11:49 PMfaint-zoo-41552
06/20/2024, 11:49 PMfaint-zoo-41552
06/20/2024, 11:50 PMfaint-zoo-41552
06/21/2024, 12:10 AMMetaflow 2.12.4 executing ClassificationPreprocessing for user:mark
Project: extraction, Branch: user.mark
Invalid command:
No Tasks found at the given path -- either none exist or they have not finished yet.
If you know the task has finished, you can supply --include-not-done to force scrub it.
I know that that job exists because I can see it in the clusterancient-application-36103
06/21/2024, 12:13 AMfaint-zoo-41552
06/21/2024, 12:13 AMfaint-zoo-41552
06/21/2024, 12:13 AMfaint-zoo-41552
06/21/2024, 12:14 AMancient-application-36103
06/21/2024, 12:14 AMpython flow.py logs scrub run-id/step-name/task-id would be the commandfaint-zoo-41552
06/21/2024, 12:16 AMfaint-zoo-41552
06/21/2024, 12:16 AM