-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: save
FunctionProfilingStep
when event is received
Signed-off-by: Guilhem Barthés <[email protected]>
- Loading branch information
1 parent
d2dfcc3
commit 0a9839b
Showing
5 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Generated by Django 4.2.10 on 2024-04-11 06:55 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations | ||
from django.db import models | ||
|
||
import orchestrator.resources | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("api", "0059_remove_datamanager_type"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="FunctionProfilingStep", | ||
fields=[ | ||
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), | ||
( | ||
"step", | ||
models.CharField( | ||
choices=[ | ||
("BUILD_IMAGE", orchestrator.resources.FunctionProfilingStep["BUILD_IMAGE"]), | ||
("SAVE_FUNCTION", orchestrator.resources.FunctionProfilingStep["SAVE_FUNCTION"]), | ||
], | ||
max_length=100, | ||
), | ||
), | ||
("duration", models.DurationField()), | ||
( | ||
"function", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, related_name="profiling_steps", to="api.function" | ||
), | ||
), | ||
], | ||
options={ | ||
"ordering": ["step"], | ||
"unique_together": {("function", "step")}, | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters