app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobAcknowledge

func JobAcknowledge(
	w http.ResponseWriter,
	req *http.Request,
	conf *config.Config,
	jobManifest *job.Manifest,
	broker *broker.Shim) error

JobCheckout is executed when a workload finishes a job, and registers it as completed

func JobPublish

func JobPublish(
	w http.ResponseWriter,
	req *http.Request,
	conf *config.Config,
	jobManifest *job.Manifest,
	broker *broker.Shim) error

JobCheckout is executed when a workload finishes a job, and registers it as completed

func JobReject

func JobReject(
	w http.ResponseWriter,
	req *http.Request,
	conf *config.Config,
	jobManifest *job.Manifest,
	broker *broker.Shim) error

func Run

func Run(conf *config.Config)

Run is the primary entrypoint of the AMPS application

func Watchdog

func Watchdog(
	ticker *time.Ticker,
	conf *config.Config,
	jobManifest *job.Manifest,
	broker *broker.Shim,
	manifestMutex *sync.Mutex,
)

Watchdog is a goroutine that takes care of job timeouts and general state management

Types

type JobSchema

type JobSchema struct {
	Identifier string `json:"identifier"`
	Reschedule bool   `json:"reschedule,omitempty"`
}

Jump to

Keyboard shortcuts

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