SearchSECODatabaseAPI
jobTypes::FailedJob Struct Reference

Mirrors an entry of the failedjobs table in the database. Difference with Job is the addition of a reasonID and reasonData, to indicate a reason for failure. More...

#include <JobTypes.h>

Public Member Functions

 FailedJob (Job job, int reasonID, std::string reasonData)
 Constructs a failed job given a normal job and the reason. More...
 

Public Attributes

std::string jobid
 
long long time
 
long long timeout
 
long long priority
 
std::string url
 
int retries
 
int reasonID
 
std::string reasonData
 

Detailed Description

Mirrors an entry of the failedjobs table in the database. Difference with Job is the addition of a reasonID and reasonData, to indicate a reason for failure.

Constructor & Destructor Documentation

◆ FailedJob()

jobTypes::FailedJob::FailedJob ( Job  job,
int  reasonID,
std::string  reasonData 
)
inline

Constructs a failed job given a normal job and the reason.

Parameters
jobThe job this failed job is based on.
reasonIDThe id of the failure reason.
reasonDataThe data of the reason.

The documentation for this struct was generated from the following file: