<commit_before>syntax = "proto3";

package application;

option java_package = "org.cloudiator.messages.entities";

import "taskEntities.proto";
import "jobEntities.proto";
import "nodeEntities.proto";

message ProcessNew {
  string schedule = 1;
  string task = 2;
  string nodeGroup = 3;
}

message Process {
  string id = 1;
  string schedule = 2;
  string task = 3;
  oneof runsOn {
    string node = 4;
    string nodeGroup = 5;
  }
  ProcessType type = 6;
  ProcessState state = 7;
}


message ProcessGroup {
  string id = 1;
  repeated Process process = 2;
}

message LanceProcess {
  string schedule = 1;
  Job job = 2;
  string task = 3;
  iaas.Node node = 4;
}

message SparkProcess {
  string schedule = 1;
  Job job = 2;
  string task = 3;
  iaas.NodeGroup nodeGroup = 4;
}

message FaasProcess {
  string schedule = 1;
  Job job = 2;
  string task = 3;
  iaas.Node node = 4;
}

message ScheduleNew {
  string job = 1;
  Instantiation instantiation = 2;
}

message Schedule {
  string id = 1;
  string Job = 2;
  Instantiation instantiation = 3;
  repeated Process processes = 4;
}

enum Instantiation {
  MANUAL = 0;
  AUTOMATIC = 1;
}

enum ProcessType {
  LANCE = 0;
  SPARK = 1;
  FAAS = 2;
}

enum ProcessState {
  PROCESS_STATE_CREATED = 0;
  PROCESS_STATE_FAILED = 1;
  PROCESS_STATE_RUNNING = 2;
  PROCESS_STATE_ERROR = 3;
  PROCESS_STATE_DELETED = 4;
}
<commit_msg>added finished state<commit_after>syntax = "proto3";

package application;

option java_package = "org.cloudiator.messages.entities";

import "taskEntities.proto";
import "jobEntities.proto";
import "nodeEntities.proto";

message ProcessNew {
  string schedule = 1;
  string task = 2;
  string nodeGroup = 3;
}

message Process {
  string id = 1;
  string schedule = 2;
  string task = 3;
  oneof runsOn {
    string node = 4;
    string nodeGroup = 5;
  }
  ProcessType type = 6;
  ProcessState state = 7;
  string userId = 8;
}


message ProcessGroup {
  string id = 1;
  repeated Process process = 2;
}

message LanceProcess {
  string schedule = 1;
  Job job = 2;
  string task = 3;
  iaas.Node node = 4;
}

message SparkProcess {
  string schedule = 1;
  Job job = 2;
  string task = 3;
  iaas.NodeGroup nodeGroup = 4;
}

message FaasProcess {
  string schedule = 1;
  Job job = 2;
  string task = 3;
  iaas.Node node = 4;
}

message ScheduleNew {
  string job = 1;
  Instantiation instantiation = 2;
}

message Schedule {
  string id = 1;
  string Job = 2;
  Instantiation instantiation = 3;
  repeated Process processes = 4;
}

enum Instantiation {
  MANUAL = 0;
  AUTOMATIC = 1;
}

enum ProcessType {
  LANCE = 0;
  SPARK = 1;
  FAAS = 2;
}

enum ProcessState {
  PROCESS_STATE_CREATED = 0;
  PROCESS_STATE_FAILED = 1;
  PROCESS_STATE_RUNNING = 2;
  PROCESS_STATE_ERROR = 3;
  PROCESS_STATE_DELETED = 4;
  PROCESS_STATE_FINISHED = 5;
}

{'fraction_non_alphanumeric': 0.096113074204947, 'fraction_numerical': 0.029681978798586573, 'mean_word_length': 3.2380239520958085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '125837', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1014, 'n_words': 305}