task

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

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

Documentation

Overview

Package task handle task scheduling for culprit verification.

Index

Constants

This section is empty.

Variables

View Source
var CompileFailureTasks = tq.RegisterTaskClass(tq.TaskClass{
	ID:        "culprit-verification",
	Prototype: (*tpb.CulpritVerificationTask)(nil),
	Queue:     "culprit-verification",
	Kind:      tq.NonTransactional,
})

CompileFailureTasks describes how to route compile failure culprit verification tasks.

View Source
var TestFailureTasks = tq.RegisterTaskClass(tq.TaskClass{
	ID:        "test-failure-culprit-verification",
	Prototype: (*tpb.TestFailureCulpritVerificationTask)(nil),
	Queue:     "test-failure-culprit-verification",
	Kind:      tq.NonTransactional,
})

TestFailureTasks describes how to route test failure culprit verification tasks.

Functions

func RegisterTaskClass

func RegisterTaskClass(compileHandler, testHandler func(ctx context.Context, payload proto.Message) error)

RegisterTaskClass registers the task class for tq dispatcher

func ScheduleTestFailureTask

func ScheduleTestFailureTask(ctx context.Context, analysisID int64) error

ScheduleTestFailureTask schedules a task for test failure culprit verification.

Types

This section is empty.

Jump to

Keyboard shortcuts

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