query/demo/work/jobs/JobState.hpp

29 lines
526 B
C++

#ifndef JOB_STATE_HPP
#define JOB_STATE_HPP
#include "matador/utils/enum_mapper.hpp"
#include <cstdint>
namespace work::models::jobs {
enum class JobState : uint8_t {
Pending,
Running,
Succeeded,
Failed,
Cancelled
};
static const matador::utils::enum_mapper<JobState> JobStateEnum({
{JobState::Pending, "Pending"},
{JobState::Running, "Running"},
{JobState::Succeeded, "Succeeded"},
{JobState::Failed, "Failed"},
{JobState::Cancelled, "Cancelled"}
});
}
#endif //JOB_STATE_HPP