Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cp_video_dokku
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Dzehil
cp_video_dokku
Commits
8d03a98e
Commit
8d03a98e
authored
2 years ago
by
Ilya Simonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no start task for upload to s3 if not video id
parent
1853625e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tasks.py
apps/core/tasks.py
+3
-0
No files found.
apps/core/tasks.py
View file @
8d03a98e
...
...
@@ -15,6 +15,9 @@ log = logging.getLogger('send_video_to_s3')
@
app
.
task
()
def
send_video_to_s3
(
video_id
=
None
):
if
not
video_id
:
return
log
.
info
(
f
'Uploading video id {video_id} to S3...'
)
local_video
=
Video
.
objects
.
get
(
id
=
video_id
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment