Skip to content

Commit 73fe3f3

Browse files
committed
fix(qstash): drop bogus Upstash-Callback-Timeout header
I added it as a guess and it broke publishes — QStash returns 400 'time: missing unit in duration' when it's missing the unit suffix. The documented Upstash-Timeout header (already set) is sufficient.
1 parent 53ccbb7 commit 73fe3f3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/queue/qstash.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func (q *QStash) Enqueue(ctx context.Context, j Job) error {
118118
// section-store a multi-hundred-page PDF. Set the per-message
119119
// timeout to 9m55s so we stay safely under Cloud Run's max
120120
// request timeout (10m) and never get cut off mid-job.
121+
// (The header expects a Go-style duration string.)
121122
req.Header.Set("Upstash-Timeout", "595s")
122123
if !j.RunAt.IsZero() {
123124
delay := time.Until(j.RunAt)

0 commit comments

Comments
 (0)