Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Created June 29, 2022 18:24
Show Gist options
  • Save khuyentran1401/b10901ca7311a121fd3af0c3f7b1c42c to your computer and use it in GitHub Desktop.
Save khuyentran1401/b10901ca7311a121fd3af0c3f7b1c42c to your computer and use it in GitHub Desktop.
@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