Created
June 29, 2022 18:24
-
-
Save khuyentran1401/b10901ca7311a121fd3af0c3f7b1c42c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@task(cache_key_fn=task_input_hash, cache_expiration=timedelta(days=1)) | |
def get_relevant_info(data: List[dict], config: DictConfig): | |
"""Get only the information that we care about in each repo""" | |
infos = {} | |
for info in config.relevant_info: | |
value = py_(data).map(info).value() | |
infos[info] = value | |
return infos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment