Skip to content

Commit 85e908b

Browse files
authored
Merge pull request #229 from galaxyproject/dev
2.7.4 Patch Release
2 parents c4e7473 + c9b0578 commit 85e908b

6 files changed

Lines changed: 16 additions & 5 deletions

File tree

abm/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.3
1+
2.8.0-dev.1

abm/lib/benchmark.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,11 @@ def run(context: Context, workflow_path, history_prefix: str, experiment: str):
203203
inputs[input[0]] = {'id': dsid, 'src': 'hda', 'size': dssize}
204204
else:
205205
raise Exception(f'Invalid input value')
206-
print(f"Running workflow {wfid}")
206+
print(f"Running workflow {wfid} in history {new_history_name}")
207207
invocation = gi.workflows.invoke_workflow(wfid, inputs=inputs, history_name=new_history_name)
208208
id = invocation['id']
209-
invocations = gi.invocations.wait_for_invocation(id, 86400, 10, False)
209+
#invocations = gi.invocations.wait_for_invocation(id, 86400, 10, False)
210+
invocations = gi.invocations.wait_for_invocation(id, 86400, 10, True)
210211
print("Waiting for jobs")
211212
if history_prefix is not None:
212213
parts = history_prefix.split()

abm/lib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def key(context: Context, args: list):
5959

6060
def url(context: Context, args: list):
6161
if len(args) != 2:
62-
print(f"USAGE: abm config key <cloud> <url>")
62+
print(f"USAGE: abm config url <cloud> <url>")
6363
return
6464
profile_name = args[0]
6565
url = args[1]

abm/lib/dataset.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import json
22

33
from bioblend.galaxy import dataset_collections
4-
from common import connect, Context, print_json, _get_dataset_data, _make_dataset_element
4+
from common import connect, Context, print_json, _get_dataset_data, _make_dataset_element, find_history
55
from pprint import pprint
66
from pathlib import Path
77

@@ -147,6 +147,7 @@ def collection(context: Context, args: list):
147147
def import_from_config(context: Context, args: list):
148148
gi = None
149149
key = None
150+
history = None
150151
kwargs = {}
151152
while len(args) > 0:
152153
arg = args.pop(0)
@@ -178,6 +179,9 @@ def import_from_config(context: Context, args: list):
178179

179180
if gi is None:
180181
gi = connect(context)
182+
if history is not None:
183+
history = find_history(gi, history)
184+
181185
response = gi.tools.put_url(url, history, **kwargs)
182186
print(json.dumps(response, indent=4))
183187

abm/lib/experiment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def run_on_cloud(cloud: str, config: dict):
7070
chart = config['galaxy']['chart']
7171
if 'job_configs' in config and len(config['job_configs']) > 0:
7272
for conf in config['job_configs']:
73+
rules_file = f"rules/{conf}.yml"
74+
print(f"Applying {rules_file} namespace:{namespace} chart:{chart}")
7375
if not helm.update(context, [f"rules/{conf}.yml", namespace, chart]):
7476
log.warning(f"job configuration not found: rules/{conf}.yml")
7577
continue

abm/lib/helm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def update(context: Context, args: list):
3737
return False
3838

3939
print(f"Applying rules {values} to {context.GALAXY_SERVER}")
40+
print(f"Helm update namespace: {namespace}")
41+
print(f"Helm update chart: {chart}")
4042
#command = f'{helm} upgrade galaxy {chart} -n {namespace} --reuse-values --set-file jobs.rules."container_mapper_rules\.yml".content={rules}'
4143
command = f'{helm} upgrade galaxy {chart} -n {namespace} --reuse-values -f {values}'
4244
env = get_env(context)
@@ -51,6 +53,8 @@ def update(context: Context, args: list):
5153
return False
5254

5355
print('Waiting for the new deployments to come online')
56+
# Give kubernetes a moment to start processing the update.
57+
time.sleep(30)
5458
wait_until_ready(namespace, env)
5559
return True
5660

0 commit comments

Comments
 (0)