Skip to content

Commit 74ca2bd

Browse files
martensonnsoranzo
andauthored
Apply suggestions from Nicola's code review
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
1 parent 43ea4b1 commit 74ca2bd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

bioblend/galaxy/invocations/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def rerun_invocation(
174174
parameters_normalized: bool = False,
175175
resource_params: Optional[dict[str, Any]] = None,
176176
use_cached_job: bool = True,
177-
instance: bool = True,
178177
) -> dict[str, Any]:
179178
"""
180179
Rerun a workflow invocation. For more extensive documentation of all
@@ -238,9 +237,6 @@ def rerun_invocation(
238237
:param use_cached_job: Whether to use cached jobs for the workflow
239238
invocation.
240239
241-
:type instance: bool
242-
:param instance: True if the provided id is Workflow id, as opposed to StoredWorkflow id.
243-
244240
:rtype: dict
245241
:return: A dict describing the new workflow invocation.
246242
@@ -281,10 +277,8 @@ def rerun_invocation(
281277
payload["parameters_normalized"] = parameters_normalized
282278
if resource_params:
283279
payload["resource_params"] = resource_params
284-
if use_cached_job:
285-
payload["use_cached_job"] = use_cached_job
280+
payload["use_cached_job"] = use_cached_job
286281
if instance:
287-
payload["instance"] = instance
288282
url = "/".join((self.gi.url, "workflows", workflow_id, "invocations"))
289283
return self.gi.make_post_request(url=url, payload=payload)
290284

0 commit comments

Comments
 (0)