Skip to content

Add option to set dispatch_deadline for the task? #177

Closed
@aaajeetee

Description

@aaajeetee

According to the documentation, the Cloud Task has a dispatch_deadline option. Default (for HTTP tasks) is 10 minutes.

In this package, I see no option to set this option. I do see that this config option was deleted in the past, but could not really find out why.

The reason I open this issue: I just got a "DEADLINE_EXCEEDED" error on my task, which was running longer than 10 minutes. The client that was called runs on cloud run and has a timeout of 30 minutes. This timeout was not hit.

Can you clarify why the dispatch_deadline was removed and how I can set this option with the current version? I would like to tell google that my task runs longer than 10 minutes, but I cannot seem to find the possibility to do so (I would expect it somewhere in CloudTasksQueue::pushToCloudTasks()).

Thanks in advance for your answer!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions