phalcon/cphalcon · error · Phalcon\Queue\Exceptions\Exception

JOB_TOO_BIG

Error message

JOB_TOO_BIG

What it means

The Beanstalk server returned the sentinel JOB_TOO_BIG, re-thrown by the client. A put() attempted to insert a job whose body exceeds the server's max job size (default 65535 bytes in beanstalkd), so the job was rejected and not enqueued.

Solutions

  1. Reduce the job payload size (compress or trim data)
  2. Store large payloads externally (filesystem, object storage, database) and enqueue only a reference/URL
  3. Start beanstalkd with a larger -z max-job-size setting if your workload genuinely needs bigger jobs
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep:233 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/550b88e4c16a72ed. Report an issue: GitHub.

Appendix: source

Thrown at phalcon/Queue/Adapter/Beanstalk/BeanstalkConnection.zep:233

                return false;
            }

            let data = rtrim(stream_get_line(connection, length + 2), "\r\n"),
                meta = stream_get_meta_data(connection);

            if meta["timed_out"] {
                throw new Exception("Connection timed out");
            }
        } else {
            let data = stream_get_line(connection, 16384, "\r\n");
        }

        if data === "UNKNOWN_COMMAND" {
            throw new Exception("UNKNOWN_COMMAND");
        }

        if data === "JOB_TOO_BIG" {
            throw new Exception("JOB_TOO_BIG");
        }

        if data === "BAD_FORMAT" {
            throw new Exception("BAD_FORMAT");
        }

        if data === "OUT_OF_MEMORY" {
            throw new Exception("OUT_OF_MEMORY");
        }

        return data;
    }

    /**
     * Reads the latest status line and splits it into tokens.
     *
     * @phpstan-return queue_beanstalk_status
     */

View on GitHub (pinned to b7419de9cd)