method

App.RunScheduledPublications

Claim and run a bounded publication batch.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe ctx value.
limitintThe limit value.
actor*store.DocumentThe actor value.

Returns

The declared result.

(int, error)

How it works

Execute normally runs this worker. Direct use is for explicit job runners and tests. Each publication change rechecks revision and access.

Full signature

func (application *App) RunScheduledPublications( ctx context.Context, limit int, actor *store.Document, ) (int, error)

Source core/publishing.go:210

Related types

  • App

    A resolved application bound to operation services.

  • Document

    A stored document with status and version metadata.