Workflow Fixes (#156)

This commit is contained in:
Kerem Yilmaz 2024-04-04 19:09:19 -07:00 committed by GitHub
parent 8117395d73
commit 0800990627
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 350 additions and 108 deletions

View file

@ -1,11 +1,13 @@
import os
import tempfile
import zipfile
from pathlib import Path
from urllib.parse import urlparse
import aiohttp
import structlog
from skyvern.constants import SKYVERN_DIR
from skyvern.exceptions import DownloadFileMaxSizeExceeded
LOG = structlog.get_logger()
@ -62,3 +64,7 @@ def zip_files(files_path: str, zip_file_path: str) -> str:
zipf.write(file_path, arcname)
return zip_file_path
def get_path_for_workflow_download_directory(workflow_run_id: str) -> Path:
return Path(f"{SKYVERN_DIR}/downloads/{workflow_run_id}/")