mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-06-29 15:26:02 +00:00
17 lines
533 B
Go
17 lines
533 B
Go
package interfaces
|
|
|
|
import (
|
|
"context"
|
|
"os/exec"
|
|
)
|
|
|
|
// JobProcessorInterface defines the contract for job processing.
|
|
// This matches the existing queue.JobProcessor interface but is centralized here.
|
|
type JobProcessorInterface interface {
|
|
// ProcessJob processes a transcription job
|
|
ProcessJob(ctx context.Context, jobID string) error
|
|
|
|
// ProcessJobWithProcess processes a job and allows registering the process for termination
|
|
ProcessJobWithProcess(ctx context.Context, jobID string, registerProcess func(*exec.Cmd)) error
|
|
}
|