def inner(): pubsub_helper.get_subscriber().acknowledge( subscription=pubsub_helper.get_subscription_path( scrape_key, pubsub_type=PUBSUB_TYPE), ack_ids=[ack_id])
def inner() -> pubsub.types.PullResponse: return pubsub_helper.get_subscriber().pull( subscription=subscription_path, max_messages=1, return_immediately=return_immediately)