Skip to content

fix mixing yield and return in DoFn #17

@github-actions

Description

@github-actions

yield (key, predictions) # TODO fix mixing yield and return in DoFn

                wait += 1
                time.sleep(wait*wait)

        response = requests.post(self.inference_url, json=data)
        response.raise_for_status()

        predictions = response.json().get("predictions", [])

        logging.info(f"Inference response:\n key: {key}  predictions:{len(predictions)}")

        yield (key, predictions)  # TODO fix mixing yield and return in DoFn


class ListCombine(beam.CombineFn):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions