Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
wm75 committed Feb 8, 2024
1 parent b27666c commit 9aab56e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/galaxy/webapps/galaxy/controllers/async.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,8 @@ def index(self, trans, tool_id=None, data_secret=None, **kwd):
if not data:
return f"Data {data_id} does not exist or has already been deleted"
if data.state in data.dataset.terminal_states:
log.debug(
f"Tool {tool.id}: execution stopped as data {data_id} has entered terminal state prematurely"
)
trans.log_event(
f"Tool {tool.id}: execution stopped as data {data_id} has entered terminal state prematurely"
)
log.debug(f"Tool {tool.id}: execution stopped as data {data_id} has entered terminal state prematurely")
trans.log_event(f"Tool {tool.id}: execution stopped as data {data_id} has entered terminal state prematurely")
return f"Data {data_id} has finished processing before job could be completed"

# map params from the tool's <request_param_translation> section;
Expand All @@ -73,7 +69,12 @@ def index(self, trans, tool_id=None, data_secret=None, **kwd):
# if name, info, dbkey and data_type are not handled via incoming params,
# use the metadata from the already existing dataset
params_dict = dict(
STATUS=params.STATUS, URL=params.URL, name=data.name, info=data.info, dbkey=data.dbkey, data_type=data.ext
STATUS=params.STATUS,
URL=params.URL,
name=data.name,
info=data.info,
dbkey=data.dbkey,
data_type=data.ext,
)
if tool.input_translator:
tool.input_translator.translate(params)
Expand Down

0 comments on commit 9aab56e

Please sign in to comment.