https://issues.rhodecode.com/https://issues.rhodecode.com/favicon.ico?16960560042016-08-02T12:50:35ZRhodeCode - issuesRhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232112016-08-02T12:50:35ZDaniel Ddaniel@rhodecode.com
<ul></ul><p>Celery task do not have access to pylons/pyramid elements such as:</p>
<ul>
<li>url generator</li>
<li>request context</li>
<li>user that triggered a task</li>
</ul>
<p>Problems caused by this:</p>
<ul>
<li>create_repo at the moment triggers a CreateRepoEvent which requires the request context/user and url generator to create the url for the repo</li>
</ul>
RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232122016-08-02T12:50:56ZDaniel Ddaniel@rhodecode.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul> RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232132016-08-02T14:51:04ZDaniel Ddaniel@rhodecode.com
<ul></ul><p>After investigation our options are:</p>
<ol>
<li><p>Subclass celery.Task and make it pass the request object to celery worker, proxied and reapplied as a pyramid request context when the task is run, this will require upgrading celery as the version we run 2.2.10 lacks the capability to support this - although there seem to be some conflicts with ampq/kombu and paster here.</p></li>
<li><p>Use pyramid_celery - this will require rewriting the entire celery configuration/deployment system we have now.</p></li>
</ol>
<p>In both cases we will also need to hack pylons.url threadlocal until it is replaced with pyramid request.route_url.</p>
RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232162016-08-03T03:04:31ZRedmine Integration
<ul></ul><p>pullrequest created, <a href="https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2518" class="external">https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2518</a>, (status: under_review)</p>
RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232532016-08-08T10:47:09ZRedmine Integration
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li></ul><p>Commit <a href="https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/ffa50597a2861b9ee5176e69cd50ef640b8cec8b" class="external">https://internal-code.rhodecode.com/rhodecode-enterprise-ce/changeset/ffa50597a2861b9ee5176e69cd50ef640b8cec8b</a> changed this issue</p>
RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232542016-08-08T10:47:25ZRedmine Integration
<ul></ul><p>pullrequest merged, <a href="https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2518" class="external">https://internal-code.rhodecode.com/rhodecode-enterprise-ce/pull-request/2518</a>, (status: approved)</p>
RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=232772016-08-10T03:31:43ZMarcin Kuzminski [CTO]marcin@rhodecode.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Feedback</i></li></ul> RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=233042016-08-11T11:18:55ZDaniel Ddaniel@rhodecode.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>This particular problem has been fixed, a new task has been made here: <a href="https://issues.rhodecode.com/issues/4163" class="external">https://issues.rhodecode.com/issues/4163</a> for planning the refactor of celery.</p>
RhodeCode CE/EE - Task #4139: Bring celery workers up to shapen with initializing pyramid + pylons stackhttps://issues.rhodecode.com/issues/4139?journal_id=233052016-08-11T11:19:23ZDaniel Ddaniel@rhodecode.com
<ul><li><strong>Parent task</strong> set to <i>#4163</i></li></ul>