added some more entities for work demo
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user