Skip to content

47 implement aws api as a potential runner type#59

Open
AymanBx wants to merge 3 commits intomainfrom
47-implement-aws-api-as-a-potential-runner_type
Open

47 implement aws api as a potential runner type#59
AymanBx wants to merge 3 commits intomainfrom
47-implement-aws-api-as-a-potential-runner_type

Conversation

@AymanBx
Copy link
Contributor

@AymanBx AymanBx commented Feb 24, 2026

When creating sub_tasks from variants the mapping didn't work as expected after testing.
I could've used itertools but went with a double-nested loop because it's more intuitive to me...

@AymanBx AymanBx requested a review from brownsarahm February 24, 2026 07:30
@AymanBx AymanBx linked an issue Feb 24, 2026 that may be closed by this pull request
Copy link
Contributor

@brownsarahm brownsarahm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the changes to the prompt generation are not good python


keys = self.variant_values.keys()

for i in range(len(list(self.variant_values.values())[0])):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no for i in range loops, that's not pythonic style and is very hard to parse

for key in keys:
single_dict.update({key: self.variant_values[key][i]})
prompt = prompt.format(**single_dict)
prompt_id = self.prompt_id_generator(self.task_id,single_dict)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no. if the thing isn't working then it's becaue data got loaded wrong. this makes no sense

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested it before and after. Before it was giving an error about the passed data not being Map data (not verbatim).

I looked up the format method and from what I saw it takes a simple dict object with key-value. I didn't see an instance where it took a dict of key-[list of values].

unless I didin't understand what exactly you were trying to do...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement AWS API as a potential runner_type

2 participants