-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly calculate
Job.started_at
/Job.finished_at
Since before_docker_run/after_docker_run were called respenctively before/after setting the status and started_at/finished_at, it was causing timing issues in tests and not only.
- Loading branch information
1 parent
ef59c40
commit 515f76a
Showing
3 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
docker-app/qfieldcloud/core/migrations/0067_auto_20230515_1320.py
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,23 @@ | ||
# Generated by Django 3.2.18 on 2023-05-15 11:20 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0066_delta_client_id"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="job", | ||
name="docker_finished_at", | ||
field=models.DateTimeField(blank=True, editable=False, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="job", | ||
name="docker_started_at", | ||
field=models.DateTimeField(blank=True, editable=False, null=True), | ||
), | ||
] |
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