fsjobqueue

package
v0.0.0-...-0c11bd6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fsjobqueue implements a filesystem-backed job queue. It implements the interfaces in package jobqueue.

Jobs are stored in the file system, using the `jsondb` package. However, this package does not use the file system as a database, but keeps some state in memory. This means that access to a given directory must be exclusive to only one `fsJobQueue` object at a time. A single `fsJobQueue` can be safely accessed from multiple goroutines, though.

Data is stored non-reduntantly. Any data structure necessary for efficient access (e.g., dependants) are kept in memory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(dir string) (*fsJobQueue, error)

Create a new fsJobQueue object for `dir`. This object must have exclusive access to `dir`. If `dir` contains jobs created from previous runs, they are loaded and rescheduled to run if necessary.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL