Skip to content

Commit e123c04

Browse files
authored
Merge pull request #1601 from mvdbeek/extend_run_docs
Add documentation for workflow_track, invocation_download, and invoca…
2 parents a15f86d + 2ac432c commit e123c04

1 file changed

Lines changed: 63 additions & 0 deletions

File tree

docs/_running_external.rst

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,69 @@ This indicates the number of datasets created, as well as the state they are in
271271
(running, errored, paused, etc.)
272272

273273

274+
Tracking workflow progress
275+
===============================================
276+
277+
When you run a workflow on an external Galaxy server, you may want to monitor
278+
its progress from the command line without using the web interface. The
279+
``workflow_track`` command follows the progress of a workflow invocation,
280+
displaying status updates as jobs complete:
281+
282+
::
283+
284+
$ planemo workflow_track INVOCATION_ID --galaxy_url SERVER_URL --galaxy_user_key YOUR_API_KEY
285+
286+
Or using a profile:
287+
288+
::
289+
290+
$ planemo workflow_track INVOCATION_ID --profile tutorial_profile
291+
292+
The command polls the Galaxy server periodically and reports the status of
293+
each job in the invocation. You can also use the ``--fail_fast`` option to
294+
stop tracking immediately when any job fails, rather than waiting for the
295+
entire invocation to complete.
296+
297+
298+
Downloading invocation outputs
299+
===============================================
300+
301+
After a workflow has completed (whether run via Planemo or the Galaxy web
302+
interface), you can download all output files using the ``invocation_download``
303+
command:
304+
305+
::
306+
307+
$ planemo invocation_download INVOCATION_ID --profile tutorial_profile
308+
309+
By default, outputs are saved to a directory named ``output_{invocation_id}``.
310+
You can specify a different location with the ``--output_directory`` option:
311+
312+
::
313+
314+
$ planemo invocation_download INVOCATION_ID --profile tutorial_profile --output_directory ./my_outputs
315+
316+
The command also supports ``--output_json`` to write a JSON file containing
317+
metadata about the downloaded outputs.
318+
319+
320+
Exporting invocations as archives
321+
===============================================
322+
323+
For reproducibility and sharing purposes, you can export a completed workflow
324+
invocation as an archive using the ``invocation_export`` command. The default
325+
format is `RO-Crate <https://www.researchobject.org/ro-crate/>`_, a community
326+
standard for packaging research data with their metadata:
327+
328+
::
329+
330+
$ planemo invocation_export INVOCATION_ID --profile tutorial_profile --output invocation.rocrate.zip
331+
332+
The RO-Crate archive includes the workflow definition, input and output
333+
datasets, and provenance information, making it suitable for long-term
334+
archival and sharing with collaborators.
335+
336+
274337
Profile configuration files
275338
===============================================
276339

0 commit comments

Comments
 (0)