Publishing is the moment a piece of content leaves the place where you produced it and lands in another system. Not everything there is in your control: the site may be briefly unresponsive, a password may have expired, a request limit may have been hit. Failures are unavoidable. The real question is what happens when one occurs. A wrong retry can publish the same article twice. No retry at all leaves the content stuck, unnoticed.

This guide covers how to classify publishing failures, the principles of a safe retry, and how Autodigy applies them.

Sort failures into three classes

Temporary connection failure · Configuration or access error · Response that needs verification

Each failure calls for a different response. In practice, three classes do the job:

Class Examples Right response
Transient The site is momentarily unresponsive, maintenance mode, request limit reached Wait and retry automatically
Permanent Invalid password, no permission, address not found, invalid fields Retrying will not help; fix the cause first
Uncertain The request went out but no answer came back First verify what happened on the remote side, then decide

Retrying a permanent failure over and over wastes time and strains the target system. Declaring a transient failure final right away creates needless intervention. The uncertain case is the most dangerous, because the content may already be live.

Four principles of a safe retry

  1. An identifying key (idempotency). Every publishing request carries a key tied to the content's text and schedule. A second request with the same key does not create a second post.
  2. Spaced attempts. Retries are not back to back; they follow increasing waits.
  3. Classify the failure. Once a failure is recognized as permanent, attempts stop.
  4. Record the outcome. What happened on which attempt is written down, so "why was it not published?" has an answer.

How publishing works in Autodigy

Approved content enters the publishing queue. Only one publishing job runs for a given content item at a time. A publishing job makes up to three attempts, waiting about one minute, five minutes and fifteen minutes between them. Every attempt is recorded.

Classification

The response from the publishing target is classified according to the connector:

For WordPress:

Status Class Retried?
401 Authentication No
403 Permission No
404 Endpoint not found No
409 Conflict Yes
429 Rate limit Yes
500 and above WordPress server error Yes

For the custom PHP connector: 401 (authentication), 403 (permission) and 422 (validation) are permanent; 409 (conflict), 429 (rate limit) and 503 (service unavailable) are transient.

When a permanent failure comes back, Autodigy does not repeat the same request pointlessly; it treats the job as failed right away. For a transient failure it retries on the wait schedule above. Each failure arrives with a suggested action: for WordPress, for example, "Renew the application password and username" or "Grant the WordPress user permission to publish content"; for custom PHP, "Check the connector access token." Reading it often points to the right fix.

A pre-check also runs before publishing. If the language or the publishing target is incomplete, the request is not sent at all and the message names the field that needs fixing. That too is a permanent class and is not retried.

Preventing double publishing

Autodigy uses several layers together to prevent double publishing:

  • A single job. Only one publishing job runs for a content item at a time.
  • A publishing key and record. Each publication is recorded under a key tied to the content's text and schedule. If an earlier attempt with the same key already succeeded, a new attempt does not repeat the publication; it takes the existing result and marks the content as published.
  • A lease. While one attempt is running, another does not start; an attempt that is stuck is treated as expired after about fifteen minutes.
  • A key on the connector side. The custom PHP connector expects an Idempotency-Key on the publish request. The same key with the same body returns the earlier result; the same key with a different body is rejected with 409.
  • A check after publishing. An hourly check confirms that published content is still reachable on the remote system.

These layers exist to prevent double publishing; they do not promise absolute protection. They are designed so that pressing a retry button a second time does not produce a second post.

When a failure becomes visible

When the attempts run out, the content moves to Failed and a publishing failure record is opened. You see it in these places:

  • On the overview dashboard, as the count of failed publications, and in the content list under the Failed filter.
  • On the content's page, in the Last publishing error field.
  • In the notification center, as a failed-publishing notification if you have opted in.

A person with publishing rights (Account owner, Administrator or Team manager) can press Retry publishing on the content's page. The button works only for content in failed status; it queues the content again and starts a new publishing job. The same protection layers apply.

What to do when you get a failure

Read the error · Check the destination · Resolve the problem · Retry when appropriate
  1. Read the error text. The suggestion usually names the cause.
  2. Identify the class. For authentication and permission failures, fix the password, token or user permission. For a validation failure, check the content fields and the connector version. For a transient failure, wait and look again.
  3. Test the connection. In the site's settings, run Test connection to confirm the connection is still valid.
  4. Check the remote side. The content may already be live on the site. Do not retry until you are sure.
  5. Retry. Once the cause is fixed, press Retry publishing.
  6. Record it if it repeats. If the same failure keeps coming back, contact the connection owner or support with the error text and the content address.

Prepare in advance

  • Check the credentials of the publishing target (password, token) on a schedule; an expired password is the most common permanent failure.
  • Run the connection test when you change a setting, not on publishing day.
  • Keep the failed-publishing notification on and decide who looks at it.
  • Distribute retry rights on purpose. Anyone who can press the button should know to check the remote side first.

Common mistakes

  • Retrying a permanent failure repeatedly. Trying ten times with an invalid password means failing ten times.
  • Retrying without checking the remote side. The post may already be live.
  • Letting failures go quiet. In a flow where nobody owns a failed item, it stays stuck without anyone noticing.
  • Not reading the message. The suggested action is often half the solution.

Related articles