Skip to content

Commit 6437668

Browse files
author
Peter Amstutz
committed
Fix flake8 / syntax errors.
1 parent f1544b2 commit 6437668

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

wes_service/arvados_wes.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,9 @@ def ListRuns(self, page_size=None, page_token=None, state_search=None):
109109
}
110110

111111
def log_for_run(self, run_id, message):
112-
api.logs().create(body={"log": {"object_uuid": run_id,
113-
"event_type": "stderr",
114-
"properties": {"text": message}}}).execute()
115-
112+
get_api().logs().create(body={"log": {"object_uuid": run_id,
113+
"event_type": "stderr",
114+
"properties": {"text": message}}}).execute()
116115

117116
def invoke_cwl_runner(self, cr_uuid, workflow_url, workflow_params,
118117
env, project_uuid,
@@ -209,12 +208,10 @@ def GetRunLog(self, run_id):
209208
containers_map[container["uuid"]] = container
210209
else:
211210
container = {
212-
"state": "Queued" if request["priority"] > 0 else "Cancelled"
211+
"state": "Queued" if request["priority"] > 0 else "Cancelled",
213212
"exit_code": None,
214213
"log": None
215214
}
216-
else:
217-
pass
218215
tasks = []
219216
containers_map = {}
220217
task_reqs = []

0 commit comments

Comments
 (0)