<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Python on Froilán Irizarry Rivera</title>
		<link>https://froi.dev/en/tags/python/</link>
		<description>Recent content in Python on Froilán Irizarry Rivera</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
			<copyright>All rights reserved</copyright>
		
		
			<lastBuildDate>Fri, 27 Nov 2026 07:36:39 +0000</lastBuildDate>
		
			<atom:link href="https://froi.dev/en/tags/python/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>TIL: Celery and the --app argument</title>
				<link>https://froi.dev/en/posts/til-celery-and-the-app-argument/</link>
				<pubDate>Sun, 22 Sep 2024 18:47:00 -0400</pubDate>
				<guid>https://froi.dev/en/posts/til-celery-and-the-app-argument/</guid>
				<description>&lt;h2 id=&#34;tldr&#34;&gt;TLDR&lt;/h2&gt;&#xA;&lt;p&gt;Starting a Celery worker with &lt;code&gt;celery -A jobs worker -l INFO&lt;/code&gt; will look for&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;An &lt;strong&gt;app&lt;/strong&gt; or &lt;strong&gt;celery&lt;/strong&gt; attribute in &lt;em&gt;jobs&lt;/em&gt;: &lt;code&gt;jobs:app&lt;/code&gt; or &lt;code&gt;jobs:celery&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;A &lt;strong&gt;celery submodule&lt;/strong&gt; with an &lt;strong&gt;app&lt;/strong&gt; or &lt;strong&gt;celery&lt;/strong&gt; attribute: &lt;code&gt;jobs.celery:app&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If you aren&amp;rsquo;t following these patterns you need to specify where the Celery app is. For a &lt;em&gt;jobs&lt;/em&gt; package with a &lt;em&gt;tasks&#xA;submodule&lt;/em&gt; and a Celery app declared as &lt;em&gt;celery_app&lt;/em&gt; the command should be:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;celery --app jobs.tasks:celery_app worker -l INFO&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;hr&gt;&#xA;&lt;p&gt;Not using a piece of tech for a while can present relearning headaches that make you ask youself &amp;ldquo;why didn&amp;rsquo;t I just&#xA;write this down somewhere the first time?&amp;rdquo;. That&amp;rsquo;s what this TIL is.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
