Add ability to re-trigger processing of videos to admin interface

RESOLVED FIXED

Status

RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: mkelly, Assigned: mkelly)

Tracking

Details

(Assignee)

Description

6 years ago
We should add a command to allow us to re-trigger video processing in case it has failed.

Comment 1

6 years ago
Commit pushed to master at https://github.com/mozilla/firefox-flicks

https://github.com/mozilla/firefox-flicks/commit/065386bd4c2e438f356dec0c241ea8dc16c2fa77
Fix Bug 841396: Add admin action to process videos.

Also changes the vimeo task retry delay to 5 minutes.

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
(Assignee)

Comment 2

6 years ago
This is failing on dev and stage with the following traceback:

Traceback (most recent call last):

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/contrib/admin/options.py", line 366, in wrapper
    return self.admin_site.admin_view(view)(*args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/views/decorators/cache.py", line 89, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/contrib/admin/sites.py", line 196, in inner
    return view(request, *args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/utils/decorators.py", line 25, in _wrapper
    return bound_func(*args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/utils/decorators.py", line 21, in bound_func
    return func(self, *args2, **kwargs2)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/contrib/admin/options.py", line 1153, in changelist_view
    response = self.response_action(request, queryset=cl.get_query_set(request))

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor/lib/python/django/contrib/admin/options.py", line 908, in response_action
    response = func(self, request, queryset)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/admin.py", line 39, in process_videos
    process_video(video.id)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor-local/lib/python/celery/app/task.py", line 329, in __call__
    return self.run(*args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/decorators.py", line 31, in wrapped
    raise wrapped.retry(exc=e)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor-local/lib/python/celery/app/task.py", line 554, in retry
    maybe_reraise()  # raise orig stack if PyErr_Occurred

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/decorators.py", line 28, in wrapped
    return func(*args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/tasks.py", line 24, in process_video
    vimeo.set_title(video.vimeo_id, video.title)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor-local/lib/python/celery/app/task.py", line 329, in __call__
    return self.run(*args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/decorators.py", line 31, in wrapped
    raise wrapped.retry(exc=e)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/vendor-local/lib/python/celery/app/task.py", line 554, in retry
    maybe_reraise()  # raise orig stack if PyErr_Occurred

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/decorators.py", line 28, in wrapped
    return func(*args, **kwargs)

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/vimeo.py", line 133, in set_title
    error_msg='Error setting title for video {video_id}: '

  File "/data/www/firefoxflicks.allizom.org/firefox-flicks/flicks/videos/vimeo.py", line 67, in _video_request
    raise VimeoServiceError(msg)

VimeoServiceError: Error setting title for video 59597800: <401 Invalid nonce> The oauth_nonce passed has already been used.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
(Assignee)

Comment 3

6 years ago
Marking as resolved, the error above was an issue with Vimeo's API being down.
Status: REOPENED → RESOLVED
Last Resolved: 6 years ago6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.