('deleting',models.BooleanField(db_index=True,default=False,help_text='Whether this project has been marked for deletion. Projects that have running tasks need to wait for tasks to be properly cleaned up before they can be deleted.')),
('owner',models.ForeignKey(help_text='The person who created the project',on_delete=django.db.models.deletion.PROTECT,to=settings.AUTH_USER_MODEL)),
('uuid',models.CharField(blank=True,db_index=True,default='',help_text="Identifier of the task (as returned by OpenDroneMap's REST API)",max_length=255)),
('name',models.CharField(blank=True,help_text='A label for the task',max_length=255,null=True)),
('processing_lock',models.BooleanField(default=False,help_text='A flag indicating whether this task is currently locked for processing. When this flag is turned on, the task is in the middle of a processing step.')),
('processing_time',models.IntegerField(default=-1,help_text='Number of milliseconds that elapsed since the beginning of this task (-1 indicates that no information is available)')),
('status',models.IntegerField(blank=True,choices=[(10,'QUEUED'),(20,'RUNNING'),(30,'FAILED'),(40,'COMPLETED'),(50,'CANCELED')],db_index=True,help_text='Current status of the task',null=True)),
('last_error',models.TextField(blank=True,help_text='The last processing error received',null=True)),
('options',django.contrib.postgres.fields.jsonb.JSONField(blank=True,default={},help_text='Options that are being used to process this task',validators=[app.models.validate_task_options])),
('console_output',models.TextField(blank=True,default='',help_text="Console output of the OpenDroneMap's process")),
('ground_control_points',models.FileField(blank=True,help_text='Optional Ground Control Points file to use for processing',null=True,upload_to=app.models.gcp_directory_path)),
('pending_action',models.IntegerField(blank=True,choices=[(1,'CANCEL'),(2,'REMOVE'),(3,'RESTART')],db_index=True,help_text='A requested action to be performed on the task. The selected action will be performed by the scheduler at the next iteration.',null=True)),
('processing_node',models.ForeignKey(blank=True,help_text='Processing node assigned to this task (or null if this task has not been associated yet)',null=True,on_delete=django.db.models.deletion.CASCADE,to='nodeodm.ProcessingNode')),
('project',models.ForeignKey(help_text='Project that this task belongs to',on_delete=django.db.models.deletion.CASCADE,to='app.Project')),
],
),
migrations.AddField(
model_name='imageupload',
name='task',
field=models.ForeignKey(help_text='Task this image belongs to',on_delete=django.db.models.deletion.CASCADE,to='app.Task'),