Rebuild worker automatically (CI)
This commit is contained in:
@@ -1096,7 +1096,8 @@ class AppBase:
|
||||
|
||||
get_path = "/api/v1/files/namespaces/%s?execution_id=%s&ids=true" % (category, self.full_execution["execution_id"])
|
||||
headers = {
|
||||
"Authorization": "Bearer %s" % self.authorization
|
||||
"Authorization": "Bearer %s" % self.authorization,
|
||||
"User-Agent": "Shuffle 1.1.0",
|
||||
}
|
||||
|
||||
ret = requests.get("%s%s" % (self.url, get_path), headers=headers)
|
||||
@@ -1121,7 +1122,8 @@ class AppBase:
|
||||
|
||||
get_path = "/api/v1/files/namespaces/%s?execution_id=%s" % (namespace, self.full_execution["execution_id"])
|
||||
headers = {
|
||||
"Authorization": "Bearer %s" % self.authorization
|
||||
"Authorization": "Bearer %s" % self.authorization,
|
||||
"User-Agent": "Shuffle 1.1.0",
|
||||
}
|
||||
|
||||
ret1 = requests.get("%s%s" % (self.url, get_path), headers=headers)
|
||||
@@ -1183,7 +1185,8 @@ class AppBase:
|
||||
get_path = "/api/v1/files/%s?execution_id=%s" % (item, full_execution["execution_id"])
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": "Bearer %s" % self.authorization
|
||||
"Authorization": "Bearer %s" % self.authorization,
|
||||
"User-Agent": "Shuffle 1.1.0",
|
||||
}
|
||||
|
||||
ret1 = requests.get("%s%s" % (self.url, get_path), headers=headers)
|
||||
@@ -1285,7 +1288,8 @@ class AppBase:
|
||||
org_id = full_execution["workflow"]["execution_org"]["id"]
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": "Bearer %s" % self.authorization
|
||||
"Authorization": "Bearer %s" % self.authorization,
|
||||
"User-Agent": "Shuffle 1.1.0",
|
||||
}
|
||||
|
||||
if not isinstance(infiles, list):
|
||||
@@ -1331,6 +1335,7 @@ class AppBase:
|
||||
|
||||
new_headers = {
|
||||
"Authorization": f"Bearer {self.authorization}",
|
||||
"User-Agent": "Shuffle 1.1.0",
|
||||
}
|
||||
|
||||
upload_path = "/api/v1/files/%s/upload?execution_id=%s" % (cur_id, full_execution["execution_id"])
|
||||
@@ -1377,7 +1382,8 @@ class AppBase:
|
||||
|
||||
headers = {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": f"Bearer {self.authorization}"
|
||||
"Authorization": f"Bearer {self.authorization}",
|
||||
"User-Agent": "Shuffle 1.1.0",
|
||||
}
|
||||
|
||||
if len(self.action) == 0:
|
||||
@@ -1492,6 +1498,13 @@ class AppBase:
|
||||
|
||||
self.full_execution = fullexecution
|
||||
|
||||
#try:
|
||||
# if "backend_url" in self.full_execution:
|
||||
# self.url = self.full_execution["backend_url"]
|
||||
# self.base_url = self.full_execution["backend_url"]
|
||||
#except KeyError:
|
||||
# pass
|
||||
|
||||
try:
|
||||
if replace_params == True:
|
||||
for inner_action in self.full_execution["workflow"]["actions"]:
|
||||
|
||||
@@ -4302,7 +4302,9 @@ func runInitEs(ctx context.Context) {
|
||||
|
||||
url := os.Getenv("SHUFFLE_APP_DOWNLOAD_LOCATION")
|
||||
if len(url) == 0 {
|
||||
url = "https://github.com/frikky/shuffle-apps"
|
||||
log.Printf("Skipping download since no URL is set")
|
||||
//url = "https://github.com/frikky/shuffle-apps"
|
||||
return
|
||||
}
|
||||
|
||||
username := os.Getenv("SHUFFLE_DOWNLOAD_AUTH_USERNAME")
|
||||
|
||||
Reference in New Issue
Block a user