job

package
v0.0.0-...-63237fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

The package job models a single job to be handled by the simulation, as well as the tasks that a job can have.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoneTask

type DoneTask struct {
	Start, Duration uint64
	Location        string
}

A scheduled Task becomes DoneTask with Start time and Location of datacenter

type Job

type Job struct {
	Id                  string
	Submission          uint64
	Cpus                uint
	Tasks               []Task
	File                file.File
	Scheduled           []DoneTask
	Available_Cpu       int // adaptive code
	Total_task_duration int // adaptive code
}

A Job to be handled by the simulation with all its attributes.

func Load

func Load(reader io.Reader, files map[string]file.File) ([]Job, error)

Loads a list of Jobs from a Reader, and requires a map of files to connect to names in Reader.

type Task

type Task struct {
	Duration uint64
}

A Task that is included in a Job.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL