Sha256: e3da3f81cc7ebab08bb6331552dff8e65a9bdb83b4616457586e54c4ea9ad585

Contents?: true

Size: 1.85 KB

Versions: 15

Compression:

Stored size: 1.85 KB

Contents

interface IGlobalWindow {
  mountPath: string
}

interface IWorkerRecord {
  worker_id: string,
  max_thread_size: number,
  current_queue_size: number,
  current_executing_size: number,
  polling_model_names: string[],
  executor_status: string,
  last_heartbeated_at: string,
}
interface IWorkersState {
  records: IWorkerRecord[]
}
interface IWorkerProps {
  worker: IWorkerRecord
}

interface ISignalRecord {
  worker_id: string,
  signal: string,
  sent_at: string,
  received_at: string,
}
interface ISignalsState {
  records: ISignalRecord[]
}
interface ISignalProps {
  signal: ISignalRecord
}

interface ISchedulableRecord {
  crono_trigger_status: string,
  id: number,
  cron: string | null,
  next_execute_at: string | null,
  last_executed_at: string | null,
  timezone: string | null,
  execute_lock: number,
  locked_by: string | null,
  started_at: string,
  finished_at: string,
  last_error_name: string,
  last_error_reason: string,
  last_error_time: string,
  retry_count: number,
  time_to_unlock: number,
  delay_sec: number,
}
interface ISchedulableRecordsProps {
  model_name: string
}
interface ISchedulableRecordsStates {
  records: ISchedulableRecord[],
  timeRangeMinute: number,
  executions: IExecution[],
}

interface ISchedulableRecordProps {
  model_name: string,
  record: ISchedulableRecord
}

interface IExecution {
  status: string,
  id: number,
  schedule_id: number,
  schedule_type: string,
  worker_id: number,
  executed_at: string,
  completed_at: string | null,
  error_name: string | null,
  error_reason: string | null,
}

interface IExecutionProps {
  execution: IExecution
}

export {
  IGlobalWindow,
  IWorkerRecord,
  IWorkersState,
  IWorkerProps,
  ISignalRecord,
  ISignalsState,
  ISignalProps,
  ISchedulableRecord,
  ISchedulableRecordsProps,
  ISchedulableRecordsStates,
  ISchedulableRecordProps,
  IExecution,
  IExecutionProps
}

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
crono_trigger-0.8.3 web/app/src/interfaces.ts
crono_trigger-0.8.1 web/app/src/interfaces.ts
crono_trigger-0.8.0 web/app/src/interfaces.ts
crono_trigger-0.7.1 web/app/src/interfaces.ts
crono_trigger-0.7.0 web/app/src/interfaces.ts
crono_trigger-0.6.4 web/app/src/interfaces.ts
crono_trigger-0.6.3 web/app/src/interfaces.ts
crono_trigger-0.6.2 web/app/src/interfaces.ts
crono_trigger-0.6.1 web/app/src/interfaces.ts
crono_trigger-0.6.0 web/app/src/interfaces.ts
crono_trigger-0.5.4 web/app/src/interfaces.ts
crono_trigger-0.5.3 web/app/src/interfaces.ts
crono_trigger-0.5.2 web/app/src/interfaces.ts
crono_trigger-0.5.1 web/app/src/interfaces.ts
crono_trigger-0.5.0 web/app/src/interfaces.ts