On Fri, Oct 2, 2020 at 3:16 AM maxime delzenne
<[email protected]> wrote:
>
> Hello everyone,
>
> I have an easy question Today. In which file shall I write the instructions 
> (bash) that are performed during the start of the webserver? In my case, to 
> start celery. I mean like the "Procfile" for Heroku. I cannot find that in 
> the help. Thank you.

Currently Toolforge does not support a Procfile style system. For the
specific case of including a celery work queue, you can see the
community provided tips at
<https://wikitech.wikimedia.org/wiki/Help:Toolforge/Redis_for_Toolforge#Celery>
and 
<https://wikitech.wikimedia.org/wiki/Help:Toolforge/Kubernetes#Kubernetes_continuous_jobs>.

The TL;DR for that is that it is technically possible to do this by
creating a custom Kubernetes "Deployment" which manages a Kubernetes
pod running celery alongside your webservice. There is however
currently no Toolforge provided tooling to manage the state of that
Deployment in conjunction with your webservice.


Bryan
-- 
Bryan Davis              Technical Engagement      Wikimedia Foundation
Principal Software Engineer                               Boise, ID USA
[[m:User:BDavis_(WMF)]]                                      irc: bd808

_______________________________________________
Wikimedia Cloud Services mailing list
[email protected] (formerly [email protected])
https://lists.wikimedia.org/mailman/listinfo/cloud

Reply via email to