important-hamburger-34837
07/02/2023, 12:40 PMCannot convert from /tmp/some_path to typing.Optional[flytekit.types.directory.types.FlyteDirectory]\n\nSYSTEM ERROR! Contact platform administrators."
please note that sometimes it works . does it have to use context path instead ?glamorous-carpet-83516
07/02/2023, 11:38 PMfreezing-airport-6809
important-hamburger-34837
07/03/2023, 9:20 AMdef scrape(scraper_input: ScraperMapInput) -> Optional[FlyteDirectory]:
scraper.scrape() # writes multiple files to a output_path directory
remote_dir = os.path.join('<gs://datasets>', output_path)
return FlyteDirectory(path=output_path, remote_directory=remote_dir)
# wf:
result = map_task(scrape, min_success_ratio=0.25)(scraper_input=scraper_inputs)
important-hamburger-34837
07/03/2023, 9:22 AMglamorous-carpet-83516
07/04/2023, 6:38 AMimportant-hamburger-34837
07/04/2023, 10:27 AMelegant-toddler-67101
07/04/2023, 12:45 PMelegant-toddler-67101
07/04/2023, 2:16 PMelegant-toddler-67101
07/04/2023, 2:17 PMglamorous-carpet-83516
07/05/2023, 12:32 AMglamorous-carpet-83516
07/05/2023, 1:34 AM/tmp/some_path
a directory
2. did you see any other errors in the pod?important-hamburger-34837
07/05/2023, 10:37 AMimportant-hamburger-34837
07/05/2023, 10:37 AM