Skip to content

cant subscribe with maxInProgress option #985

Description

@leibale

it's return ApiError to callback

Invalid JSON payload received. Unknown name "max_in_progress": Cannot find field.

Activity

  1. stephenplusplus commented on Dec 2, 2015

    @stephenplusplus
    Contributor

    Where is that field hiding? I'll find it unless @callmehiphop beats me to it.

  2. callmehiphop commented on Dec 3, 2015

    @callmehiphop
    Contributor

    I wasn't able to reproduce this locally - @leibale would you mind sharing some example code to help reproduce this error? I believe maxInProgress is a convenience option for the client only, so I'm a little confused on how it's getting sent to the upstream API.

  3. leibale commented on Dec 3, 2015

    @leibale
    ContributorAuthor

    when you create a subscription you can set the interval and stuff like this, but you can't set the maximum of messages your worker will work in parallel.
    at version 24 (I think) wee (I create a pull request) add option to set the
    maxInProgress and the subscription not pull more messages if your worker not call to message.ack or message.skip (this functions do -- to the counter and check if there is more messages).

    I'm sorry for the English..

  4. added a commit that references this issue on Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: pubsubIssues related to the Pub/Sub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions