Skip to content

Commit

Permalink
Add generatorName in VariantTaskConfig to obey schema
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis committed Aug 23, 2024
1 parent 9b315db commit 848db18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions bbp_workflow/generation/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class GeneratorTaskConfig(BbpWorkflowConfig):
@attributes(
{
"distribution": AttrOf(DataDownload),
"generatorName": AttrOf(str, default=None),
}
)
class VariantTaskConfig(BbpWorkflowConfig):
Expand Down
4 changes: 3 additions & 1 deletion bbp_workflow/generation/generator_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def build_variant_task(self, *, algorithm, version, data, output_dir, extra_inpu
# create or find config that parametrizes the variant definition
config = create_or_find(
entity_cls=VariantTaskConfig,
properties={},
properties={
"generatorName": self.generator_name,
},
serialized_content=json.dumps({"inputs": input_values}),
filename="variant_task_configuration.json",
content_type="application/json",
Expand Down

0 comments on commit 848db18

Please sign in to comment.