Skip to content

Commit

Permalink
Apply requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noliveleger committed Dec 18, 2024
1 parent 0c1c221 commit d40c568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kobo/apps/long_running_migrations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LongRunningMigration(AbstractTimeStampedModel):
LONG_RUNNING_MIGRATIONS_DIR = os.path.join(
'kobo',
'apps',
'long_running_migrations'
'jobs'
)

name = models.CharField(max_length=255, unique=True)
Expand Down
2 changes: 1 addition & 1 deletion kobo/apps/long_running_migrations/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def execute_long_running_migrations():
Q(status=LongRunningMigrationStatus.CREATED)
| Q(status=LongRunningMigrationStatus.IN_PROGRESS)
& Q(date_modified__lte=task_expiry_time)
):
).order_by('date_created'):
migration.execute()
finally:
cache.delete(lock_key)

0 comments on commit d40c568

Please sign in to comment.