mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-10 15:35:51 +00:00
Workflow Fixes (#156)
This commit is contained in:
parent
8117395d73
commit
0800990627
11 changed files with 350 additions and 108 deletions
|
@ -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}/")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue