Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Scheduler app models #4

Open
Yacobolo opened this issue Feb 16, 2024 · 1 comment
Open

Build Scheduler app models #4

Yacobolo opened this issue Feb 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Yacobolo
Copy link
Collaborator

Yacobolo commented Feb 16, 2024

we need these models to store the output of the scheduling algorithm, which has the following output:
image

They should all be add to the scheduler app.

Models Overview

  1. SchedulerRuns

    • id (AutoField): Primary key, automatically incremented.
    • run_time (DateTimeField): Records when the scheduling process was executed.
    • details (TextField): Stores a summary or details about the scheduling run, such as outcomes, performance metrics, etc.
  2. ResourceIntervals

    • id (AutoField): Primary key, automatically incremented.
    • resource_id (ForeignKey): Links to the Resource model.
    • task_id (ForeignKey): Links to the Task model, indicating the task to which the interval belongs.
    • interval_start (DateTimeField): The start time of the scheduled interval.
    • interval_end (DateTimeField): The end time of the scheduled interval.
  3. ResourceAllocations

    • id (AutoField): Primary key, automatically incremented.
    • task_id (ForeignKey): Links to the Task model.
    • resource_id (ForeignKey): Links to the Resource model, indicating the resource assigned to the task.
  4. Task (existing model)

    • planned_start (DateTimeField): Planned start time for the task.
    • planned_end (DateTimeField): Planned end time for the task.
@Yacobolo Yacobolo added the enhancement New feature or request label Feb 16, 2024
@Yacobolo
Copy link
Collaborator Author

In the resource manager app we need the models: Resource and ResourceGroup
In the resource assigner app we need the Resource assignments which should reflect the Assignment model in factryengine. You can keep the Assignment Rule and Assignment Rule Constraint.
See: https://github.com/factryflow/factryengine/blob/main/docs/usage.md
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants