pull/571/head
Piero Toffanin 2018-12-07 16:13:33 -05:00
rodzic 99428c98cf
commit 95e74a4e9c
4 zmienionych plików z 19 dodań i 12 usunięć

Wyświetl plik

@ -17,11 +17,11 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='task', model_name='task',
name='resize_progress', name='resize_progress',
field=models.FloatField(blank=True, default=0.0, help_text="Value between 0 and 1 indicating the resize progress of this task's images."), field=models.FloatField(blank=True, default=0.0, help_text="Value between 0 and 1 indicating the resize progress of this task's images"),
), ),
migrations.AddField( migrations.AddField(
model_name='task', model_name='task',
name='upload_progress', name='upload_progress',
field=models.FloatField(blank=True, default=0.0, help_text="Value between 0 and 1 indicating the upload progress of this task's files to the processing node."), field=models.FloatField(blank=True, default=0.0, help_text="Value between 0 and 1 indicating the upload progress of this task's files to the processing node"),
), ),
] ]

Wyświetl plik

@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='task', model_name='task',
name='running_progress', name='running_progress',
field=models.FloatField(blank=True, default=0.0, help_text="Value between 0 and 1 indicating the running progress (estimated) of this task's."), field=models.FloatField(blank=True, default=0.0, help_text="Value between 0 and 1 indicating the running progress (estimated) of this task"),
), ),
] ]

Wyświetl plik

@ -198,13 +198,13 @@ class Task(models.Model):
resize_to = models.IntegerField(default=-1, help_text="When set to a value different than -1, indicates that the images for this task have been / will be resized to the size specified here before processing.") resize_to = models.IntegerField(default=-1, help_text="When set to a value different than -1, indicates that the images for this task have been / will be resized to the size specified here before processing.")
upload_progress = models.FloatField(default=0.0, upload_progress = models.FloatField(default=0.0,
help_text="Value between 0 and 1 indicating the upload progress of this task's files to the processing node.", help_text="Value between 0 and 1 indicating the upload progress of this task's files to the processing node",
blank=True) blank=True)
resize_progress = models.FloatField(default=0.0, resize_progress = models.FloatField(default=0.0,
help_text="Value between 0 and 1 indicating the resize progress of this task's images.", help_text="Value between 0 and 1 indicating the resize progress of this task's images",
blank=True) blank=True)
running_progress = models.FloatField(default=0.0, running_progress = models.FloatField(default=0.0,
help_text="Value between 0 and 1 indicating the running progress (estimated) of this task's.", help_text="Value between 0 and 1 indicating the running progress (estimated) of this task",
blank=True) blank=True)
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

Wyświetl plik

@ -31,9 +31,11 @@
"value": true "value": true
} }
], ],
"ground_control_points": null,
"created_at": "2017-02-18T18:01:55.402551Z", "created_at": "2017-02-18T18:01:55.402551Z",
"pending_action": null "pending_action": null,
"upload_progress": 1.0,
"resize_progress": 0.0,
"running_progress": 1.0
} }
``` ```
@ -55,9 +57,12 @@ auto_processing_node | boolean | Whether WebODM should automatically assign the
status | int | One of [Status Codes](#status-codes), or `null` if no status is available. status | int | One of [Status Codes](#status-codes), or `null` if no status is available.
last_error | string | The last error message reported by a [Processing Node](#processing-node) in case of processing failure. last_error | string | The last error message reported by a [Processing Node](#processing-node) in case of processing failure.
options | JSON[] | JSON-encoded list of name/value pairs, where each pair represents a command line option to be passed to a [Processing Node](#processing-node). options | JSON[] | JSON-encoded list of name/value pairs, where each pair represents a command line option to be passed to a [Processing Node](#processing-node).
ground_control_points | string | Currently unused. See [#37](https://github.com/OpenDroneMap/WebODM/issues/37) created_at | string | Creation date and time.
created_at | string | Creation date and time
pending_action | int | One of [Pending Actions](#pending-actions), or `null` if no pending action is set. pending_action | int | One of [Pending Actions](#pending-actions), or `null` if no pending action is set.
upload_progress | float | Value between 0 and 1 indicating the upload progress of this task's files to the processing node.
resize_progress | float | Value between 0 and 1 indicating the resize progress of this task's images.
running_progress | float | Value between 0 and 1 indicating the running progress (estimated) of this task.
<aside class="notice">Tasks inherit the permission settings from the <a href="#project">Project</a> they belong to.</aside> <aside class="notice">Tasks inherit the permission settings from the <a href="#project">Project</a> they belong to.</aside>
@ -102,9 +107,11 @@ Parameters are the same as above.
"status": 40, "status": 40,
"last_error": null, "last_error": null,
"options": [], "options": [],
"ground_control_points": null,
"created_at": "2016-12-08T13:32:28.139474Z", "created_at": "2016-12-08T13:32:28.139474Z",
"pending_action": null "pending_action": null,
"upload_progress": 1.0,
"resize_progress": 0.0,
"running_progress": 1.0
} }
] ]
``` ```