Skip to content

Commit c9fa0b2

Browse files
committed
(#11) documentation for increase/reduce task runtime or file sizes
1 parent ed7184c commit c9fa0b2

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

docs/source/generating_workflows.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,24 @@ The current list of available workflow recipes include:
6161
- :class:`~workflowhub.generator.workflow.soykb_recipe.SoyKBRecipe`: :code:`from workflowhub.generator import SoyKBRecipe`
6262
- :class:`~workflowhub.generator.workflow.srasearch_recipe.SRASearchRecipe`: :code:`from workflowhub.generator import SRASearchRecipe`
6363

64+
Increasing/Reducing Runtime and File Sizes
65+
******************************************
66+
67+
Workflow recipes also allow the generation of synthetic workflows with increased/reduced
68+
runtimes and/or files sizes determined by a factor provided by the user:
69+
70+
- :code:`runtime_factor`: The factor of which tasks runtime will be increased/decreased.
71+
- :code:`input_file_size_factor`: The factor of which tasks input files size will be increased/decreased.
72+
- :code:`output_file_size_factor`: The factor of which tasks output files size will be increased/decreased.
73+
74+
The following example shows how to create a Seismology workflow recipe in which task
75+
runtime is increased by 10%, input files by 50%, and output files reduced by 20%: ::
76+
77+
from workflowhub.generator import SeismologyRecipe
78+
79+
# creating a Seismology workflow recipe with increased/decreased runtime and file sizes
80+
recipe = SeismologyRecipe.from_num_tasks(num_tasks=100, runtime_factor=1.1, input_file_size_factor=1.5, output_file_size_factor=0.8)
81+
6482
The Workflow Generator
6583
----------------------
6684

docs/source/user_api_common.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workflowhub.common.file
1111
:private-members:
1212

1313
workflowhub.common.task
14-
----------------------
14+
-----------------------
1515

1616
.. automodule:: workflowhub.common.task
1717
:members:

0 commit comments

Comments
 (0)