-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Task stuck fix #66
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
Merged
Merged
Task stuck fix #66
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d9a56eb
Fixed console CSS to not wrap (better display)
pierotofy 49a8b1b
First version of docker launch script
pierotofy 03baa57
CSS fix, slate docs (started working on them), webodm.sh improvement
pierotofy dcdf69f
from_pgraster and to_pgraster out-of-db support
pierotofy 5c54aca
Added OffDbRasterField, changed orthophoto type from RasterField to O…
pierotofy 7db9ba2
Test fixes, postgis migration
pierotofy e460220
Added migrations
pierotofy a9d7cc6
Removed makemigrations command
pierotofy a108640
Added missing migration
pierotofy bec65c4
ubuntugis repository for gdal 2.1 dependency, gdal version check in s…
pierotofy 3e504ff
Dockerfile fix
pierotofy 3cdf7b4
Dockerfile fix
pierotofy 8d41ef8
Dockerfile fix
pierotofy 3bdb3ac
Forgot -y flag
pierotofy 9f674a1
Fixed dockerfile, now uses testing packages of debian to install GDAL…
pierotofy bf9a7ba
Better exception handling, fixes
pierotofy 070e72b
Added ALTER command in init.sql
pierotofy 32108c7
Changed shebang on wait-for-it.sh
pierotofy fbee45c
Added requirement note in README
pierotofy d6ef809
Added proposed changes by @mojodna
pierotofy 3a6e270
Removed ALTER SYSTEM set, users will just have to set those options m…
pierotofy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -1 +0,0 @@ | ||
*.py | ||
This file contains hidden or 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,106 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10 on 2016-12-12 15:35 | ||
from __future__ import unicode_literals | ||
|
||
import app.models | ||
import app.postgis | ||
from django.conf import settings | ||
import django.contrib.postgres.fields.jsonb | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('nodeodm', '0001_initial'), | ||
('auth', '0008_alter_user_username_max_length'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ImageUpload', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('image', models.ImageField(help_text='File uploaded by a user', upload_to=app.models.image_directory_path)), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='Project', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='A label used to describe the project', max_length=255)), | ||
('description', models.TextField(blank=True, help_text='More in-depth description of the project', null=True)), | ||
('created_at', models.DateTimeField(default=django.utils.timezone.now, help_text='Creation date')), | ||
('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)), | ||
], | ||
options={ | ||
'permissions': (('view_project', 'Can view project'),), | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ProjectGroupObjectPermission', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('content_object', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Project')), | ||
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Group')), | ||
('permission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Permission')), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='ProjectUserObjectPermission', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('content_object', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Project')), | ||
('permission', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Permission')), | ||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'abstract': False, | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Task', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('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)), | ||
('orthophoto', app.postgis.OffDbRasterField(blank=True, help_text='Orthophoto created by OpenDroneMap', null=True, srid=4326)), | ||
('created_at', models.DateTimeField(default=django.utils.timezone.now, help_text='Creation date')), | ||
('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')), | ||
], | ||
options={ | ||
'permissions': (('view_task', 'Can view task'),), | ||
}, | ||
), | ||
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'), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='projectuserobjectpermission', | ||
unique_together=set([('user', 'permission', 'content_object')]), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='projectgroupobjectpermission', | ||
unique_together=set([('group', 'permission', 'content_object')]), | ||
), | ||
] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If using Docker for {Mac, Windows}, it'll be your own IP address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So Linux / Mac uses its own IP address, Windows needs to figure it out via
docker-machine ip
. Was this more a suggestion to change "Linux / Mac" with "{Linux, Mac}"?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, just that depending on the Docker setup people are using the IP will vary (as will the mechanism for doing so). Docker for __ transparently proxies ports;
docker-machine
does not.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mm, I guess I'm a little confused, perhaps you can make a PR to change the README?