fix: add countCompletedJobs api

This commit is contained in:
Ruben Fiszel
2024-11-14 20:44:29 +01:00
parent 15f1b7cf7d
commit 2a78359af7
3 changed files with 79 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ JobStatus = Literal["RUNNING", "WAITING", "COMPLETED"]
class Windmill:
def __init__(self, base_url=None, token=None, workspace=None, verify=True):
base = base_url or os.environ.get("BASE_INTERNAL_URL")
base = base_url or os.environ.get("BASE_INTERNAL_URL") or os.environ.get("WM_BASE_URL")
self.base_url = f"{base}/api"
self.token = token or os.environ.get("WM_TOKEN")