Skip to content
Snippets Groups Projects
job_state.go 669 B
Newer Older
  • Learn to ignore specific revisions
  • package core
    
    // Enum for the different kinds of states a job can be in.
    type JobState string
    
    const (
    	// The job has been created but was not yet submitted
    	// to a Collector.
    	Created JobState = "created"
    
    	// The job is currently queued for processing but was
    	// not yet started.
    	Submitted = "submitted"
    
    	// The job is currently running and should be making
    	// progress.
    	Active = "active"
    
    	// The job has successfully finished. No error occured
    	// during processing.
    	Successful = "successful"
    
    	// The job finished, but during execution errors occured.
    	// A failed job should not have made any committed changes
    	// byte the Importer.
    	Failed = "failed"
    )