Documentation
¶
Index ¶
- Constants
- type Option
- type Queue
- func (q *Queue) Cancel(ctx context.Context, jobID string) error
- func (q *Queue) Complete(ctx context.Context, lease asyncpkg.Lease) error
- func (q *Queue) Enqueue(ctx context.Context, job asyncpkg.Job) (asyncpkg.Job, error)
- func (q *Queue) Fail(ctx context.Context, lease asyncpkg.Lease, cause error) error
- func (q *Queue) Lease(ctx context.Context, workerID string, ttl time.Duration) (asyncpkg.Lease, bool, error)
- func (q *Queue) Load(ctx context.Context, jobID string) (asyncpkg.Job, error)
- func (q *Queue) Renew(ctx context.Context, lease asyncpkg.Lease, ttl time.Duration) (asyncpkg.Lease, bool, error)
Constants ¶
View Source
const DefaultTableName = "agentflow_jobs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithTableName ¶
Click to show internal directories.
Click to hide internal directories.