scworker

package
v0.0.0-...-5d4f9ca Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 28 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUpscaleInternal

func CreateUpscaleInternal(Track *analytics.AnalyticsService, Repo *repository.Repository, Redis *database.RedisWrapper, MQClient queue.MQClient, sMap *shared.SyncMap[chan requests.CogWebhookMessage], generation *ent.Generation, output *ent.GenerationOutput) error

Create an Upscale in sc-worker, wait for result ! TODO - clean this up and merge with CreateUpscale method

Types

type WorkerError

type WorkerError struct {
	StatusCode int

	Err error

	ErrDescription string
}

Error wrapper for GPU worker requests

func WorkerInternalServerError

func WorkerInternalServerError() *WorkerError

Suppresses internal errors

func (*WorkerError) Error

func (r *WorkerError) Error() string

Jump to

Keyboard shortcuts

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