Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-video-pipeline
Overview
Overview
Details
Activity
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
edx
edx-video-pipeline
Commits
5f53d133
Commit
5f53d133
authored
7 years ago
by
Gregory Martin
Committed by
GitHub
7 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #43 from edx/yro/update_celery_queues
Yro/update celery queues
parents
8f65da73
bde0453c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
36 deletions
+23
-36
bin/deliver
+1
-1
control/veda_file_ingest.py
+2
-10
control/veda_heal.py
+9
-17
frontend/abvid_reporting.py
+4
-1
instance_config.yaml
+3
-5
youtube_callback/sftp_id_retrieve.py
+4
-2
No files found.
bin/deliver
View file @
5f53d133
...
...
@@ -66,7 +66,7 @@ class DeliverCli:
'worker'
,
'--loglevel=info'
,
'--concurrency='
+
str
(
auth_dict
[
'celery_threads'
]),
'-Q '
+
auth_dict
[
'celery_
stat
_queue'
],
'-Q '
+
auth_dict
[
'celery_
deliver
_queue'
],
'-n deliver.
%
h'
))
)
...
...
This diff is collapsed.
Click to expand it.
control/veda_file_ingest.py
View file @
5f53d133
...
...
@@ -163,22 +163,14 @@ class VedaIngest:
if
len
(
self
.
encode_list
)
==
0
:
return
None
"""
send job to queue
"""
if
self
.
video_proto
.
filesize
>
self
.
auth_dict
[
'largefile_queue_barrier'
]:
cel_queue
=
self
.
auth_dict
[
'largefile_celery_queue'
]
else
:
cel_queue
=
self
.
auth_dict
[
'main_celery_queue'
]
# Enqueue
for
e
in
self
.
encode_list
:
# print e
veda_id
=
self
.
video_proto
.
veda_id
encode_profile
=
e
jobid
=
uuid
.
uuid1
()
.
hex
[
0
:
10
]
celeryapp
.
worker_task_fire
.
apply_async
(
(
veda_id
,
encode_profile
,
jobid
),
queue
=
cel_queue
queue
=
self
.
auth_dict
[
'celery_worker_queue'
]
)
"""
...
...
This diff is collapsed.
Click to expand it.
control/veda_heal.py
View file @
5f53d133
...
...
@@ -81,23 +81,15 @@ class VedaHeal(object):
VAC
.
call
()
self
.
val_status
=
None
if
len
(
encode_list
)
>
0
:
"""
send job to queue
"""
if
v
.
video_orig_filesize
>
self
.
auth_dict
[
'largefile_queue_barrier'
]:
cel_queue
=
self
.
auth_dict
[
'largefile_celery_queue'
]
else
:
cel_queue
=
self
.
auth_dict
[
'main_celery_queue'
]
for
e
in
encode_list
:
veda_id
=
v
.
edx_id
encode_profile
=
e
jobid
=
uuid
.
uuid1
()
.
hex
[
0
:
10
]
celeryapp
.
worker_task_fire
.
apply_async
(
(
veda_id
,
encode_profile
,
jobid
),
queue
=
cel_queue
)
# Enqueue
for
e
in
encode_list
:
veda_id
=
v
.
edx_id
encode_profile
=
e
jobid
=
uuid
.
uuid1
()
.
hex
[
0
:
10
]
celeryapp
.
worker_task_fire
.
apply_async
(
(
veda_id
,
encode_profile
,
jobid
),
queue
=
self
.
auth_dict
[
'celery_worker_queue'
]
)
def
determine_fault
(
self
,
video_object
):
"""
...
...
This diff is collapsed.
Click to expand it.
frontend/abvid_reporting.py
View file @
5f53d133
...
...
@@ -39,7 +39,10 @@ with open(auth_yaml, 'r') as stream:
def
report_status
(
status
,
abvid_serial
,
youtube_id
):
v1
=
VedaUpload
.
objects
.
filter
(
video_serial
=
abvid_serial
)
.
latest
()
try
:
v1
=
VedaUpload
.
objects
.
filter
(
video_serial
=
abvid_serial
)
.
latest
()
except
ObjectDoesNotExist
:
return
if
len
(
youtube_id
)
>
0
:
excuse
=
''
...
...
This diff is collapsed.
Click to expand it.
instance_config.yaml
View file @
5f53d133
...
...
@@ -82,13 +82,11 @@ val_username:
# ---
celery_app_name
:
veda_production
# can do multiple queues like so: foo,bar,baz
main_celery_queue
:
encode_worker
celery_receiver_queue
:
encode_worker
largefile_celery_queue
:
large_encode_worker
celery_stat_queue
:
transcode_stat
largefile_queue_barrier
:
1000000000
celery_worker_queue
:
encode_worker
celery_deliver_queue
:
deliver_worker
celery_threads
:
1
rabbitmq_broker
:
rabbitmq_pass
:
rabbitmq_user
:
...
...
This diff is collapsed.
Click to expand it.
youtube_callback/sftp_id_retrieve.py
View file @
5f53d133
...
...
@@ -144,7 +144,7 @@ def domxml_parser(file):
"""
if
'status-'
not
in
file
:
return
None
return
upload_data
=
{
'datetime'
:
None
,
...
...
@@ -157,7 +157,9 @@ def domxml_parser(file):
try
:
tree
=
ET
.
parse
(
os
.
path
.
join
(
workdir
,
file
))
except
ET
.
ParseError
:
return
None
return
except
IOError
:
return
root
=
tree
.
getroot
()
for
child
in
root
:
...
...
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