Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 573926 Details for
Bug 807332
provider sync of two repos in diff. products fails with huge dump
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch against repo_sync.py in pulp-1.0.0-8 moving callback to separate thread
post_sync_callback_in_thread.patch (text/plain), 916 bytes, created by
Ivan Necas
on 2012-03-30 09:40:33 UTC
(
hide
)
Description:
patch against repo_sync.py in pulp-1.0.0-8 moving callback to separate thread
Filename:
MIME Type:
Creator:
Ivan Necas
Created:
2012-03-30 09:40:33 UTC
Size:
916 bytes
patch
obsolete
>--- repo_sync.py.orig 2012-03-30 11:16:10.050533749 +0200 >+++ repo_sync.py 2012-03-30 11:27:55.385485799 +0200 >@@ -16,6 +16,7 @@ > import os > import time > import traceback >+import thread > from datetime import datetime > from gettext import gettext as _ > from StringIO import StringIO >@@ -402,11 +403,7 @@ > return xml > > >-def post_sync(task): >- """ >- Post sync dequeue hook to push repo and task ids to a configured url >- @param task: sync task >- """ >+def callback(task): > url = config.config.get('server', 'post_sync_url') > if not url: > return >@@ -430,3 +427,11 @@ > msg = _('Error response from post_sync_url: %(e)') % {'e': error_msg} > log.warn(msg) > connection.close() >+ >+ >+def post_sync(task): >+ """ >+ Post sync dequeue hook to push repo and task ids to a configured url >+ @param task: sync task >+ """ >+ thread.start_new_thread(callback, (task,))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 807332
: 573926