forked from slides/empowering-django-with-background-workers
This commit is contained in:
parent
674b6a4990
commit
8ff0aa4a69
1 changed files with 22 additions and 21 deletions
41
slides.md
41
slides.md
|
@ -13,8 +13,8 @@ themeConfig:
|
||||||
|
|
||||||
## Jake Howard{.mt-5}
|
## Jake Howard{.mt-5}
|
||||||
|
|
||||||
### Django London{.mt-5}
|
#### Django London{.mt-5}
|
||||||
#### September 2024
|
##### September 2024
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- Here to talk about Background Workers
|
- Here to talk about Background Workers
|
||||||
|
@ -228,7 +228,7 @@ layout: cover
|
||||||
background: https://images.unsplash.com/photo-1518729371765-043e54eb5674?q=80&w=1807&auto=format&fit=crop&ixlib=rb-4.0.3
|
background: https://images.unsplash.com/photo-1518729371765-043e54eb5674?q=80&w=1807&auto=format&fit=crop&ixlib=rb-4.0.3
|
||||||
---
|
---
|
||||||
|
|
||||||
# Does it take time?{.text-right}
|
# Does it take time?{.text-right.italic}
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- Does it take time
|
- Does it take time
|
||||||
|
@ -243,7 +243,7 @@ background: https://images.unsplash.com/photo-1518729371765-043e54eb5674?q=80&w=
|
||||||
layout: fact
|
layout: fact
|
||||||
---
|
---
|
||||||
|
|
||||||
## Does it leave your infrastructure?{.mb-5}
|
## Does it leave your infrastructure?{.mb-5.italic}
|
||||||
|
|
||||||
```mermaid
|
```mermaid
|
||||||
flowchart BT
|
flowchart BT
|
||||||
|
@ -281,7 +281,7 @@ layout: cover
|
||||||
background: https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3
|
background: https://images.unsplash.com/photo-1518770660439-4636190af475?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3
|
||||||
---
|
---
|
||||||
|
|
||||||
# Specialized hardware?
|
# Does it require specialized hardware?
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- Maybe it's less about when, more about where?
|
- Maybe it's less about when, more about where?
|
||||||
|
@ -675,11 +675,11 @@ for user in page.subscribers.iterator():
|
||||||
```python
|
```python
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.core.mail import send_mail
|
from django.core.mail import send_mail
|
||||||
|
from django.tasks import task
|
||||||
from django.template.loader import render_to_string
|
from django.template.loader import render_to_string
|
||||||
|
|
||||||
from wagtail.models import Page
|
from wagtail.models import Page
|
||||||
|
|
||||||
from django.tasks import task
|
|
||||||
|
|
||||||
@task()
|
@task()
|
||||||
def send_email_to_user(page_id: int, user_id: int):
|
def send_email_to_user(page_id: int, user_id: int):
|
||||||
|
@ -882,12 +882,6 @@ image: /pypi.png
|
||||||
- No excuse to give it a go
|
- No excuse to give it a go
|
||||||
- Report back the bugs
|
- Report back the bugs
|
||||||
- The more testing done now, the better
|
- The more testing done now, the better
|
||||||
- There's still work to do
|
|
||||||
- Features
|
|
||||||
- Improvements
|
|
||||||
- Performance
|
|
||||||
- Scalability
|
|
||||||
- The list goes on...
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -897,9 +891,14 @@ layout: section
|
||||||
# Where will we be _soon_™?
|
# Where will we be _soon_™?
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- More testing
|
- There's still work to do
|
||||||
- More features
|
- Features
|
||||||
- Writing task queues takes time
|
- Writing task queues takes time
|
||||||
|
- Improvements
|
||||||
|
- Performance
|
||||||
|
- Scalability
|
||||||
|
- Testing
|
||||||
|
- The list goes on...
|
||||||
- Upstreaming
|
- Upstreaming
|
||||||
- That's the big benefit
|
- That's the big benefit
|
||||||
- Else it really is just another standard
|
- Else it really is just another standard
|
||||||
|
@ -946,7 +945,7 @@ class: flex justify-center flex-col text-xl
|
||||||
|
|
||||||
# Out of scope (_for now_)
|
# Out of scope (_for now_)
|
||||||
|
|
||||||
- Completion / failed hooks
|
- Task dependencies
|
||||||
- Bulk queueing
|
- Bulk queueing
|
||||||
- Automated task retrying
|
- Automated task retrying
|
||||||
- Task runner API
|
- Task runner API
|
||||||
|
@ -1014,11 +1013,13 @@ layout: section
|
||||||
- Suggest improvements
|
- Suggest improvements
|
||||||
- Issues / Discussions are open and active
|
- Issues / Discussions are open and active
|
||||||
- If you want to get involved, please do!
|
- If you want to get involved, please do!
|
||||||
|
- There have been many great contributors so far
|
||||||
- There's plenty of work to do
|
- There's plenty of work to do
|
||||||
- And I can't do it alone!
|
- And I can't do it alone!
|
||||||
- If you maintain a worker library
|
- If you maintain a worker library
|
||||||
- Have interesting use cases
|
- Have interesting use cases
|
||||||
- Or have been burned by one...
|
- Or have been burned by one
|
||||||
|
- ...
|
||||||
-->
|
-->
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -1035,14 +1036,14 @@ class: text-center text-2xl
|
||||||
<li><mdi-twitter /> @RealOrangeOne</li>
|
<li><mdi-twitter /> @RealOrangeOne</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="absolute right-5 bottom-1/2 translate-y-1/2">
|
<div class="absolute right-10 bottom-1/2 translate-y-1/2">
|
||||||
<h3>Me</h3>
|
<h3>Me</h3>
|
||||||
<img src="/dls24-qrcode.png" width="150px" />
|
<img src="/dls24-qrcode.png" width="175px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="absolute left-5 bottom-1/2 translate-y-1/2">
|
<div class="absolute left-10 bottom-1/2 translate-y-1/2">
|
||||||
<h3><code>django-tasks</code></h3>
|
<h3><code>django-tasks</code></h3>
|
||||||
<img src="/django-tasks-qrcode.png" width="150px" />
|
<img src="/django-tasks-qrcode.png" width="175px" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in a new issue