-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1223 lines (1182 loc) · 65.7 KB
/
Copy pathindex.html
File metadata and controls
1223 lines (1182 loc) · 65.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="dark light">
<meta name="theme-color" content="#0d1410" media="(prefers-color-scheme: dark)">
<meta name="theme-color" content="#f3f6f2" media="(prefers-color-scheme: light)">
<meta name="description" content="Stop running Redis to send an email. django-ox puts Django tasks in your existing database and recovers work when a worker dies, so you don't have to.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="Oxpull">
<meta property="og:url" content="https://oxpull.com/">
<meta property="og:title" content="Stop running Redis to send an email">
<meta property="og:description" content="Queue Django tasks in your existing database. When a worker dies, django-ox recovers its tasks so you don't have to.">
<meta property="og:image" content="https://oxpull.com/assets/social-card.png">
<meta property="og:image:alt" content="django-ox, a worker for Django tasks that keeps the queue in your database">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Stop running Redis to send an email">
<meta name="twitter:description" content="Queue Django tasks in your existing database. When a worker dies, django-ox recovers its tasks so you don't have to.">
<meta name="twitter:image" content="https://oxpull.com/assets/social-card.png">
<title>Oxpull · Django tasks in your database</title>
<style>
/* ===== Tokens and foundation ===== */
:root {
color-scheme: dark;
--bg: #0d1410;
--panel: #16201b;
--panel-raised: #1b2820;
--panel-deep: #101813;
--ink: #eef4ee;
--muted: #a4b4a8;
--subtle: #8ca093;
--accent: #6fc59a;
--accent-hover: #8fd8b3;
--accent-ink: #0c2417;
--accent-soft: rgba(111, 197, 154, .09);
--accent-line: rgba(111, 197, 154, .3);
--warm: #e5bc85;
--code-purple: #c4ace0;
--code-blue: #a0c5d6;
--line: #2a382e;
--line-soft: rgba(168, 196, 176, .1);
--grid: rgba(168, 196, 176, .055);
--glow: rgba(74, 144, 98, .13);
--nav-bg: rgba(13, 20, 16, .91);
--shadow: 0 24px 80px rgba(0, 0, 0, .22);
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
--mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
--radius: 16px;
--max-width: 1160px;
}
@media (prefers-color-scheme: light) {
:root {
color-scheme: light;
--bg: #f3f6f2;
--panel: #ffffff;
--panel-raised: #edf3ed;
--panel-deep: #f6f8f4;
--ink: #1b2420;
--muted: #526359;
--subtle: #617166;
--accent: #1f6b4b;
--accent-hover: #155339;
--accent-ink: #ffffff;
--accent-soft: rgba(31, 107, 75, .065);
--accent-line: rgba(31, 107, 75, .28);
--warm: #865a24;
--code-purple: #78509c;
--code-blue: #29647d;
--line: #d7e0d6;
--line-soft: rgba(35, 72, 47, .09);
--grid: rgba(35, 72, 47, .06);
--glow: rgba(90, 161, 111, .13);
--nav-bg: rgba(243, 246, 242, .92);
--shadow: 0 24px 70px rgba(35, 61, 41, .075);
}
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: var(--font);
font-size: 16px;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
::selection { color: var(--accent-ink); background: var(--accent); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a, button, summary {
transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
:focus-visible {
outline: 3px solid var(--accent);
outline-offset: 5px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 {
font-size: clamp(2rem, 3.8vw, 3.25rem);
line-height: 1.12;
font-weight: 620;
letter-spacing: -.045em;
}
h3 { font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
img, svg { display: block; }
code, pre { font-family: var(--mono); }
code { font-size: .88em; }
p code {
padding: .1em .35em;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--panel-deep);
color: var(--ink);
overflow-wrap: anywhere;
}
.container { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
position: fixed;
top: 12px;
left: 16px;
z-index: 100;
padding: 10px 16px;
color: var(--accent-ink);
background: var(--accent);
border-radius: 6px;
transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.eyebrow {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
color: var(--accent);
font: 11px/1.5 var(--mono);
letter-spacing: .1em;
text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.section { padding-block: 104px; }
.section-heading {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 40px;
margin-bottom: 44px;
}
.section-heading > p { max-width: 320px; color: var(--muted); font-size: 15px; }
.button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
min-height: 46px;
padding: 11px 19px;
border: 1px solid var(--line);
border-radius: 7px;
font-size: 14px;
font-weight: 600;
line-height: 1.4;
white-space: nowrap;
}
.button-primary {
color: var(--accent-ink);
background: var(--accent);
border-color: var(--accent);
box-shadow: 0 2px 0 rgba(0, 0, 0, .08);
}
.button-primary:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
transform: translateY(-1px);
}
.button-secondary { color: var(--ink); background: var(--panel); }
.button-secondary:hover { background: var(--panel-raised); border-color: var(--subtle); }
.text-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--accent);
font-size: 13px;
font-weight: 550;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 4px 9px;
border: 1px solid var(--accent-line);
border-radius: 5px;
color: var(--accent);
background: var(--accent-soft);
font: 10px/1.5 var(--mono);
white-space: nowrap;
}
.dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
/* ===== Sticky navigation ===== */
.site-header {
position: sticky;
top: 0;
z-index: 30;
border-bottom: 1px solid var(--line-soft);
background: var(--nav-bg);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 720; letter-spacing: -.055em; }
.brand-icon { width: 32px; height: 32px; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links > a { color: var(--muted); font-size: 13px; padding-block: 12px; }
.nav-links > a:hover { color: var(--ink); }
.nav-cta { min-height: 37px; padding: 8px 13px; font-size: 12px; }
/* ===== Hero and code illustration ===== */
.hero { position: relative; padding: 94px 0 78px; isolation: isolate; overflow: hidden; }
.hero::before {
content: "";
position: absolute;
inset: 0;
z-index: -2;
background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
background-size: 56px 56px;
mask-image: linear-gradient(to bottom, #000, transparent 90%);
-webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero::after {
content: "";
position: absolute;
z-index: -1;
width: 900px;
height: 700px;
right: -160px;
top: -160px;
background: radial-gradient(ellipse, var(--glow), transparent 66%);
pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.release {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 5px 10px 5px 6px;
margin-bottom: 30px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--panel-deep);
color: var(--muted);
font: 10px/1.5 var(--mono);
}
.release-version { color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 3px; }
.release .icon { width: 12px; height: 12px; }
h1 { max-width: 580px; font-size: clamp(3.5rem, 6.1vw, 5.35rem); font-weight: 620; letter-spacing: -.064em; line-height: 1.025; }
h1 span { color: var(--accent); }
.hero-description { max-width: 415px; margin-top: 25px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-footnote { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: var(--subtle); font: 11px/1.6 var(--mono); }
.hero-footnote .separator { width: 3px; height: 3px; background: var(--subtle); border-radius: 50%; }
.code-stage { min-width: 0; padding-top: 30px; }
.code-card { overflow: hidden; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--panel-deep); box-shadow: var(--shadow); }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 51px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.file-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 11px/1.4 var(--mono); }
.file-label .icon { width: 14px; height: 14px; color: var(--accent); }
.file-type { color: var(--subtle); font: 10px/1.4 var(--mono); }
.code-card pre { margin: 0; padding: 26px 19px 27px; overflow-x: auto; font-size: 12px; line-height: 2; tab-size: 4; }
.code-card pre code { font-size: inherit; }
.syntax-keyword { color: var(--code-purple); }
.syntax-function { color: var(--code-blue); }
.syntax-type { color: var(--warm); }
.syntax-comment { color: var(--subtle); }
.transaction-preview { padding: 19px; border-top: 1px solid var(--line); background: var(--panel); }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 17px; }
.preview-label { color: var(--subtle); font: 10px/1.5 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.db-rows { position: relative; display: grid; gap: 8px; margin-left: 7px; padding-left: 17px; border-left: 1px solid var(--accent); }
.db-rows::before, .db-rows::after { content: ""; position: absolute; left: 0; width: 7px; height: 1px; background: var(--accent); }
.db-rows::before { top: 0; }
.db-rows::after { bottom: 0; }
.db-row { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-deep); font: 11px/1.5 var(--mono); }
.db-row .icon { width: 14px; height: 14px; color: var(--subtle); }
.db-row .row-data { margin-left: auto; color: var(--subtle); font-size: 10px; }
.row-check { color: var(--accent); display: flex; }
.db-row .row-check .icon { color: var(--accent); }
.transaction-caption { margin: 13px 0 0 24px; color: var(--muted); font: 10px/1.6 var(--mono); }
.code-caption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 17px; color: var(--subtle); font: 10px/1.5 var(--mono); }
.code-caption .icon { width: 13px; height: 13px; color: var(--accent); }
/* ===== Proof strip ===== */
.proof { padding-bottom: 36px; }
.proof-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; }
.proof-topline .eyebrow { margin: 0; color: var(--subtle); font-size: 10px; }
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr .9fr; padding: 31px 0; border-block: 1px solid var(--line); }
.metric { padding: 0 30px; }
.metric:first-child { padding-left: 0; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-number { color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.65rem); font-weight: 570; line-height: 1.2; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-number small { font-size: .47em; font-weight: 400; letter-spacing: -.015em; color: var(--muted); }
.metric-number .highlight { color: var(--accent); }
.metric-label { max-width: 280px; margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.method-note { margin-top: 15px; color: var(--subtle); font: 10px/1.8 var(--mono); max-width: 880px; }
/* ===== Three value blocks ===== */
.features { border-bottom: 1px solid var(--line-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feature-visual {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 190px;
padding: 25px;
border-bottom: 1px solid var(--line);
background: radial-gradient(ellipse at 50% 70%, var(--accent-soft), transparent 75%), var(--panel-deep);
}
.visual-label { position: absolute; top: 15px; left: 19px; color: var(--subtle); font: 9px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.feature-body { padding: 25px 24px 28px; }
.feature-index { margin-bottom: 12px; color: var(--accent); font: 10px/1.5 var(--mono); }
.feature-body h3 { font-size: 20px; margin-bottom: 14px; }
.feature-body p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.architecture { display: flex; align-items: center; justify-content: center; width: 100%; padding-top: 15px; }
.architecture-node { display: flex; align-items: center; flex-direction: column; gap: 9px; min-width: 92px; color: var(--muted); font: 10px/1.4 var(--mono); }
.node-icon { display: grid; place-items: center; width: 57px; height: 57px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--panel); color: var(--accent); box-shadow: 0 6px 20px rgba(0, 0, 0, .04); }
.node-icon .icon { width: 24px; height: 24px; }
.connection { position: relative; height: 1px; flex: 1; max-width: 75px; min-width: 25px; margin-bottom: 23px; background: var(--accent-line); }
.connection::after { position: absolute; content: ""; top: -3px; left: calc(50% - 3px); width: 7px; height: 7px; background: var(--accent); border: 2px solid var(--panel-deep); border-radius: 50%; }
.recovery { width: 100%; max-width: 260px; padding-top: 18px; }
.recovery-top { display: flex; align-items: center; gap: 13px; }
.queue-stack { display: flex; gap: 5px; padding: 10px; border: 1px solid var(--accent-line); border-radius: 7px; background: var(--panel); }
.task-tile { width: 15px; height: 23px; border: 1px solid var(--accent-line); border-radius: 3px; background: var(--accent-soft); }
.task-tile:first-child { background: var(--accent); }
.recovery-arrow { color: var(--subtle); flex: 1; }
.stopped-worker { padding: 12px 10px; border: 1px dashed var(--subtle); border-radius: 6px; color: var(--muted); font: 10px/1.6 var(--mono); white-space: nowrap; }
.stopped-worker span { color: var(--warm); }
.return-path { position: relative; height: 26px; margin: 6px 39px 0; border: 1px solid var(--accent-line); border-top: 0; border-radius: 0 0 8px 8px; }
.return-path::before { content: ""; position: absolute; top: -1px; left: -4px; width: 7px; height: 7px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); transform: rotate(45deg); }
.return-label { width: max-content; margin: -8px auto 0; padding: 0 8px; position: relative; background: var(--panel-deep); color: var(--accent); font: 9px/1.5 var(--mono); }
.atomic-diagram { width: 100%; max-width: 255px; padding-top: 18px; }
.atomic-diagram .db-row { padding: 8px 10px; font-size: 10px; }
.atomic-diagram .db-row .row-data { color: var(--accent); font-size: 9px; }
.atomic-diagram .transaction-caption { text-align: center; color: var(--accent); font-size: 9px; margin-top: 10px; }
/* ===== Comparison and benchmark ===== */
.evidence { border-bottom: 1px solid var(--line-soft); }
.evidence-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 22px; align-items: stretch; }
.data-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.panel-heading { padding: 26px 26px 22px; }
.panel-heading h3 { font-size: 19px; }
.panel-heading p { margin-top: 7px; color: var(--subtle); font-size: 12px; }
.comparison-scroll { overflow-x: auto; }
.comparison { width: calc(100% - 36px); margin: 0 18px; border-collapse: collapse; font-size: 12px; }
.comparison th, .comparison td { padding: 19px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.comparison thead th { padding-top: 15px; padding-bottom: 16px; color: var(--muted); font: 10px/1.6 var(--mono); vertical-align: bottom; }
.comparison th:first-child { text-align: left; padding-left: 8px; width: 45%; }
.comparison tbody th { font-weight: 450; color: var(--muted); line-height: 1.6; }
.comparison .our-column { background: var(--accent-soft); }
.comparison thead .our-column { border-top: 1px solid var(--accent-line); color: var(--accent); }
.comparison th .table-subtitle { display: block; font-size: 9px; margin-top: 2px; color: var(--subtle); }
.comparison .status { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; }
.status.yes { border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.status.no { color: var(--subtle); }
.status .icon { width: 14px; height: 14px; }
.comparison tbody tr:last-child th, .comparison tbody tr:last-child td { border-bottom: none; }
.panel-note { margin: 0; padding: 19px 26px 23px; border-top: 1px solid var(--line); color: var(--subtle); font: 10px/1.7 var(--mono); }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 26px 24px; color: var(--muted); font: 10px/1.5 var(--mono); }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.legend-swatch.baseline { background: var(--subtle); opacity: .65; }
.chart { padding: 0 26px 26px; }
.bar-group + .bar-group { margin-top: 21px; }
.bar-group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; color: var(--muted); font: 10px/1.5 var(--mono); }
.bar-group-heading strong { font-weight: 400; color: var(--ink); }
h4.bar-group-heading { margin-top: 0; }
.bar-pair { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 11px; }
.bar-track { height: 10px; border-radius: 2px; background: var(--line-soft); }
.bar { height: 100%; border-radius: 2px; background: var(--accent); }
.bar.baseline { background: var(--subtle); opacity: .55; }
.bar-value { text-align: right; color: var(--accent); font: 10px/1 var(--mono); font-variant-numeric: tabular-nums; }
.bar-row.baseline .bar-value { color: var(--muted); }
.w-237 { width: 23.70%; }
.w-208 { width: 20.78%; }
.w-853 { width: 85.26%; }
.w-774 { width: 77.42%; }
.w-230 { width: 23.04%; }
.w-195 { width: 19.48%; }
.w-924 { width: 92.36%; }
.w-803 { width: 80.32%; }
.chart-scale { display: flex; justify-content: space-between; margin: 17px 53px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--subtle); font: 9px/1.5 var(--mono); }
.evidence-footnote { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 22px; }
.evidence-footnote p { max-width: 670px; color: var(--subtle); font-size: 11px; }
.evidence-footnote a { flex: 0 0 auto; }
/* ===== Pricing ===== */
.pricing-heading { text-align: center; margin-bottom: 44px; }
.pricing-heading .eyebrow { justify-content: center; }
.pricing-heading p { margin: 19px auto 0; max-width: 480px; color: var(--muted); font-size: 15px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pricing-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pricing-card.pro { border-color: var(--accent-line); background: linear-gradient(135deg, var(--accent-soft), transparent 65%), var(--panel); }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.plan-topline h3 { font-size: 20px; }
.license-tag { color: var(--subtle); font: 10px/1.5 var(--mono); }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 26px; }
.price-amount { font-size: 48px; line-height: 1.1; letter-spacing: -.055em; font-weight: 580; }
.price-term { color: var(--muted); font-size: 13px; }
.plan-description { margin-top: 12px; min-height: 20px; color: var(--muted); font-size: 13px; }
.plan-features { display: grid; align-content: start; gap: 12px; list-style: none; padding: 24px 0 0; margin: 24px 0 27px; border-top: 1px solid var(--line); }
.plan-features li { display: flex; align-items: center; gap: 11px; min-height: 22px; color: var(--muted); font-size: 13px; }
.plan-features .icon { flex: none; width: 16px; height: 16px; color: var(--accent); margin-top: 0; }
.plan-bottom { margin-top: auto; }
.plan-bottom .button { width: 100%; }
.plan-requirement { margin-top: 12px; min-height: 15px; color: var(--subtle); text-align: center; font: 10px/1.5 var(--mono); }
/* ===== Order form ===== */
.order-panel {
display: grid;
grid-template-columns: .78fr 1.22fr;
gap: 64px;
margin-top: 24px;
padding: 40px;
border: 1px solid var(--line);
border-radius: var(--radius);
background: var(--panel-deep);
scroll-margin-top: 100px;
}
.order-panel[hidden] { display: none; }
.order-intro h3 { font-size: 28px; letter-spacing: -.035em; }
.order-intro > p { margin-top: 15px; color: var(--muted); font-size: 14px; max-width: 290px; }
.order-steps { display: grid; gap: 20px; list-style: none; margin: 29px 0; padding: 0; }
.order-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 12px; color: var(--muted); }
.step-number { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font: 10px/1 var(--mono); }
.order-steps strong { color: var(--ink); font-weight: 500; display: block; }
.order-steps small { color: var(--subtle); font-size: 11px; }
.install-command { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; padding: 11px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.install-command span { color: var(--accent); font: 12px/1.5 var(--mono); }
.order-intro > p + .install-command { margin-top: 29px; }
.install-command code { font-size: 11px; overflow-wrap: anywhere; }
.order-support { display: inline-block; margin-top: 24px; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.order-support:hover { color: var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 500; }
.optional { color: var(--subtle); font-size: 11px; font-weight: 400; }
input, textarea {
display: block;
width: 100%;
min-height: 44px;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--bg);
color: var(--ink);
font-size: 16px;
line-height: 1.5;
transition: border-color .18s ease, box-shadow .18s ease;
}
input:hover, textarea:hover { border-color: var(--subtle); }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 91px; resize: vertical; }
.field-hint { margin-top: 6px; color: var(--subtle); font-size: 11px; }
.form-submit { width: 100%; margin-top: 23px; }
button:disabled { opacity: .6; cursor: wait; transform: none; }
#form-error { margin-top: 16px; border: 1px solid var(--warm); border-radius: 6px; padding: 12px; color: var(--warm); font-size: 13px; }
#form-error[hidden] { display: none; }
.invoice-note { margin-top: 15px; color: var(--subtle); font-size: 11px; line-height: 1.85; }
/* ===== FAQ ===== */
.faq-section { padding-top: 6px; padding-bottom: 104px; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 88px; padding-top: 74px; border-top: 1px solid var(--line); }
.faq-heading h2 { font-size: clamp(2rem, 3vw, 2.6rem); }
.faq-heading > p { max-width: 260px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.faq-heading .text-link { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 21px 36px 21px 0; font-size: 14px; font-weight: 500; line-height: 1.55; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 5px; top: 31px; width: 11px; height: 1px; background: var(--subtle); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details[open] summary { color: var(--accent); }
summary:hover { color: var(--accent); }
details p { max-width: 540px; padding: 0 30px 22px 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); padding: 37px 0 28px; background: var(--panel-deep); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.footer-top .wordmark { font-size: 21px; }
.footer-top .brand-icon { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 27px; margin-top: 27px; border-top: 1px solid var(--line); color: var(--subtle); font: 10px/1.7 var(--mono); }
.footer-privacy { display: flex; align-items: center; gap: 8px; }
.footer-privacy .icon { width: 12px; height: 12px; color: var(--accent); }
/* ===== Responsive behavior ===== */
@media (min-width: 1280px) {
.hero-grid { gap: 62px; }
.code-card pre { font-size: 12.5px; }
}
@media (max-width: 1050px) {
.hero-grid { gap: 30px; }
h1 { font-size: clamp(3.2rem, 6vw, 4.3rem); }
.code-card pre { font-size: 11px; padding-inline: 15px; }
.feature-body { padding-inline: 20px; }
.feature-body h3 { font-size: 18px; }
.feature-visual { padding-inline: 18px; }
.architecture-node { min-width: 76px; font-size: 9px; }
.order-panel { gap: 35px; }
.faq-layout { gap: 50px; }
}
@media (max-width: 850px) {
.hero { padding-top: 64px; padding-bottom: 55px; }
.hero-grid { grid-template-columns: 1fr; gap: 28px; }
.hero-copy { max-width: 620px; }
h1 { font-size: clamp(3.7rem, 9vw, 5.4rem); max-width: 680px; }
.hero-description { max-width: 500px; }
.code-stage { width: 100%; max-width: 620px; padding-top: 10px; }
.code-card pre { font-size: 13px; padding: 24px; }
.section { padding-block: 76px; }
.section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
.section-heading > p { max-width: 490px; }
.feature-grid { grid-template-columns: 1fr; }
.feature-card { display: grid; grid-template-columns: .8fr 1.2fr; }
.feature-visual { height: 100%; min-height: 215px; border-bottom: none; border-right: 1px solid var(--line); }
.feature-body { padding: 25px; }
.feature-body h3 { font-size: 20px; }
.evidence-grid { grid-template-columns: 1fr; }
.comparison th:first-child { width: 50%; }
.chart { padding-bottom: 25px; }
.bar-group + .bar-group { margin-top: 24px; }
.evidence-footnote { flex-direction: column; gap: 14px; }
.pricing-card { padding: 26px; }
.price { align-items: flex-start; flex-direction: column; gap: 5px; }
.plan-topline { align-items: flex-start; flex-direction: column; gap: 10px; }
.order-panel { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
.order-intro > p { max-width: 440px; }
.order-steps { grid-template-columns: repeat(3, 1fr); gap: 15px; }
.install-command { display: none; }
.order-support { margin-top: 0; }
.order-intro > p ~ .order-support { margin-top: 18px; }
.faq-layout { grid-template-columns: 1fr; gap: 35px; }
.faq-heading > p { max-width: none; }
.footer-top { align-items: flex-start; }
.footer-links { justify-content: flex-end; }
}
@media (max-width: 600px) {
html { scroll-padding-top: 84px; }
.container { width: calc(100% - 40px); }
.nav { min-height: 66px; gap: 17px; }
.wordmark { font-size: 22px; gap: 8px; }
.brand-icon { width: 29px; height: 29px; }
.nav-links { gap: 0; }
.nav-links .nav-section-link { display: none; }
.nav-links > a { font-size: 12px; }
.nav-cta { min-height: 36px; font-size: 11px; padding: 8px 10px; }
.nav-cta .icon { width: 13px; height: 13px; }
.hero { padding-top: 43px; }
.release { margin-bottom: 25px; font-size: 9px; }
h1 { font-size: clamp(3.3rem, 13.3vw, 4.6rem); }
.hero-description { font-size: 16px; margin-top: 21px; }
.hero-actions { margin-top: 25px; gap: 9px; }
.hero-actions .button { padding-inline: 14px; font-size: 13px; }
.hero-footnote { font-size: 10px; gap: 8px; }
.code-card pre { padding: 20px 14px; font-size: 10.5px; line-height: 2.1; }
.code-toolbar { padding-inline: 14px; }
.transaction-preview { padding: 16px 13px; }
.db-row { font-size: 10px; padding: 9px; }
.db-row .row-data { font-size: 9px; }
.transaction-caption { font-size: 9px; }
.proof { padding-bottom: 0; }
.proof-topline { align-items: flex-start; }
.proof-topline .eyebrow { max-width: 180px; font-size: 9px; }
.proof-topline .text-link { font-size: 11px; white-space: nowrap; }
.proof-topline .text-link .icon { width: 14px; height: 14px; }
.proof-grid { grid-template-columns: 1fr; padding: 0; }
.metric, .metric:first-child { padding: 23px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.metric + .metric { border-left: none; border-top: 1px solid var(--line); }
.metric-number { font-size: 26px; }
.metric-number small { font-size: .43em; }
.metric-label { margin: 0; font-size: 11px; }
.method-note { font-size: 9px; }
.section { padding-block: 65px; }
.eyebrow { font-size: 10px; margin-bottom: 15px; }
.section-heading { margin-bottom: 30px; }
h2 { font-size: 33px; }
.feature-card { display: block; }
.feature-visual { min-height: 0; height: 177px; border-right: none; border-bottom: 1px solid var(--line); }
.architecture { max-width: 275px; }
.architecture-node { min-width: 92px; font-size: 10px; }
.feature-body { padding: 23px; }
.feature-body h3 { font-size: 21px; }
.panel-heading { padding: 23px 20px 20px; }
.comparison { width: calc(100% - 20px); margin-inline: 10px; font-size: 11px; }
.comparison th, .comparison td { padding-inline: 6px; }
.comparison th:first-child { width: 43%; }
.comparison thead th { font-size: 9px; }
.panel-note { padding-inline: 20px; font-size: 9px; }
.chart-legend { margin-inline: 20px; font-size: 9px; gap: 12px; }
.chart { padding-inline: 20px; }
.bar-group-heading { font-size: 9px; }
.pricing-heading { text-align: left; margin-bottom: 30px; }
.pricing-heading .eyebrow { justify-content: flex-start; }
.pricing-heading p { margin-left: 0; font-size: 14px; }
.pricing-grid { grid-template-columns: 1fr; gap: 18px; }
.pricing-card { padding: 25px; }
.plan-topline { align-items: center; flex-direction: row; }
.price { align-items: baseline; flex-direction: row; gap: 12px; }
.order-panel { padding: 24px 20px; scroll-margin-top: 85px; }
.order-intro h3 { font-size: 25px; }
.order-intro > p { font-size: 13px; }
.order-steps { grid-template-columns: 1fr; gap: 16px; margin-block: 24px; }
.order-steps strong { display: inline; }
.order-steps small { display: block; }
.form-grid { grid-template-columns: 1fr; gap: 17px; }
.faq-section { padding-top: 0; padding-bottom: 65px; }
.faq-layout { padding-top: 55px; }
.footer-top { flex-direction: column; gap: 25px; }
.footer-links { justify-content: flex-start; gap: 14px 22px; }
.footer-bottom { flex-direction: column; gap: 12px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
*, *::before, *::after { animation: none !important; transition: none !important; }
.button-primary:hover { transform: none; }
}
.ext { display: inline-block; margin-left: 0.25em; vertical-align: -1px; opacity: 0.7; }
</style>
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<!-- INLINE SVG LIBRARY -->
<svg class="svg-library" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">
<defs>
<symbol id="ox-mark" viewBox="0 0 32 32">
<path d="M10 10C6 10 3.5 7.5 3 3.5C.8 9.5 3.7 14 9 14.5L10.6 23.4L16 28L21.4 23.4L23 14.5C28.3 14 31.2 9.5 29 3.5C28.5 7.5 26 10 22 10L19.5 8H12.5Z" fill="currentColor"/>
<path d="M10.5 15L14 17M21.5 15L18 17M13 22H19" fill="none" stroke="var(--bg)" stroke-width="1.8" stroke-linecap="round"/>
</symbol>
<symbol id="arrow-right" viewBox="0 0 24 24">
<path d="M5 12H19M13 6L19 12L13 18" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol id="arrow-up-right" viewBox="0 0 24 24">
<path d="M6 18L18 6M6 6H18V18" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol id="check" viewBox="0 0 24 24">
<path d="M5 12L10 17L19 7" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol id="cross" viewBox="0 0 24 24">
<path d="M7 7L17 17M17 7L7 17" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/>
</symbol>
<symbol id="database" viewBox="0 0 24 24">
<ellipse cx="12" cy="5.5" rx="8" ry="3.5" fill="none" stroke="currentColor" stroke-width="1.5"/>
<path d="M4 5.5V18.5C4 20.4 7.6 22 12 22S20 20.4 20 18.5V5.5M4 12C4 13.9 7.6 15.5 12 15.5S20 13.9 20 12" fill="none" stroke="currentColor" stroke-width="1.5"/>
</symbol>
<symbol id="worker" viewBox="0 0 24 24">
<rect x="4" y="4" width="16" height="16" rx="3" fill="none" stroke="currentColor" stroke-width="1.5"/>
<path d="M8 9L11 12L8 15M14 15H17" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol id="file-code" viewBox="0 0 24 24">
<path d="M14 3H6A2 2 0 0 0 4 5V19A2 2 0 0 0 6 21H18A2 2 0 0 0 20 19V9ZM14 3V9H20M9 12L7 14L9 16M15 12L17 14L15 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
<symbol id="row" viewBox="0 0 24 24">
<rect x="3" y="5" width="18" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="1.5"/>
<path d="M3 10H21M9 10V19" fill="none" stroke="currentColor" stroke-width="1.5"/>
</symbol>
<symbol id="shield" viewBox="0 0 24 24">
<path d="M12 3L20 6V11C20 16 16.7 19.1 12 22C7.3 19.1 4 16 4 11V6Z" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linejoin="round"/>
<path d="M8 12L11 15L16 9" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</symbol>
</defs>
</svg>
<!-- BLOCK: STICKY NAVIGATION -->
<header class="site-header">
<nav class="container nav" aria-label="Main navigation">
<a class="wordmark" href="#" aria-label="Oxpull home">
<svg class="brand-icon" aria-hidden="true"><use href="#ox-mark"/></svg>
<span>Oxpull</span>
</a>
<div class="nav-links">
<a class="nav-section-link" href="#features">Why django-ox</a>
<a class="nav-section-link" href="#benchmarks">Benchmarks</a>
<a class="nav-section-link" href="#pricing">Pricing</a>
<a target="_blank" rel="noopener" href="https://oxpull.com/django-ox/background-tasks/">Docs <svg class="ext" aria-hidden="true" viewBox="0 0 12 12" width="11" height="11"><path d="M4.5 2H2v8h8V7.5M7 2h3v3M10 2 5.5 6.5" fill="none" stroke="currentColor" stroke-width="1.3" stroke-linecap="round" stroke-linejoin="round"/></svg></a>
</div>
<a class="button button-secondary nav-cta" href="#order">
Get Pro
<svg class="icon" aria-hidden="true"><use href="#arrow-up-right"/></svg>
</a>
</nav>
</header>
<main id="main">
<!-- BLOCK: HERO -->
<section class="hero" aria-labelledby="hero-title">
<div class="container hero-grid">
<div class="hero-copy">
<h1 id="hero-title">Django tasks in your <span>database</span></h1>
<p class="hero-description">Stop running Redis to send an email. Queue work in your existing database, where a dead worker doesn't mean lost tasks.</p>
<div class="hero-actions">
<a class="button button-primary" href="https://oxpull.com/django-ox/background-tasks/">
Get started
<svg class="icon" aria-hidden="true"><use href="#arrow-right"/></svg>
</a>
<a class="button button-secondary" href="https://oxpull.com/django-ox/benchmarks/">
See the benchmarks
<svg class="icon" aria-hidden="true"><use href="#arrow-up-right"/></svg>
</a>
</div>
<p class="hero-footnote">
<span>Open source</span>
<span class="separator" aria-hidden="true"></span>
<span>BSD 3-Clause</span>
<span class="separator" aria-hidden="true"></span>
<span><code>pip install django-ox</code></span>
</p>
</div>
<div class="code-stage">
<div class="code-card">
<div class="code-toolbar">
<span class="file-label">
<svg class="icon" aria-hidden="true"><use href="#file-code"/></svg>
orders/tasks.py
</span>
<span class="file-type">Python</span>
</div>
<pre aria-label="Enqueue a task in the same transaction as an order" tabindex="0"><code><span class="syntax-keyword">with</span> transaction.<span class="syntax-function">atomic</span>():
order = <span class="syntax-type">Order</span>.objects.<span class="syntax-function">create</span>(...)
send_confirmation.<span class="syntax-function">enqueue</span>(order.pk)</code></pre>
<div class="transaction-preview" role="img" aria-label="One database transaction commits both the order row and the background task row.">
<div class="preview-heading">
<span class="preview-label">One transaction</span>
<span class="pill"><span class="dot"></span>COMMIT</span>
</div>
<div class="db-rows">
<div class="db-row">
<svg class="icon" aria-hidden="true"><use href="#row"/></svg>
<span>orders_order</span>
<span class="row-data">id: 1042</span>
<span class="row-check"><svg class="icon" aria-hidden="true"><use href="#check"/></svg></span>
</div>
<div class="db-row">
<svg class="icon" aria-hidden="true"><use href="#row"/></svg>
<span>send_confirmation</span>
<span class="row-data">[1042]</span>
<span class="row-check"><svg class="icon" aria-hidden="true"><use href="#check"/></svg></span>
</div>
</div>
<p class="transaction-caption">Both rows commit, or neither does.</p>
</div>
</div>
</div>
</div>
</section>
<!-- BLOCK: PROOF STRIP -->
<section class="proof container">
<div class="proof-grid">
<div class="metric">
<p class="metric-number">2,000 <small>of</small> <span class="highlight">2,000</span></p>
<p class="metric-label">Tasks finished after 20 worker kills per trial</p>
</div>
<div class="metric">
<p class="metric-number"><small>up to</small> <span class="highlight">20%</span> <small>faster</small></p>
<p class="metric-label">Queue drain than django-tasks-db</p>
</div>
<div class="metric">
<p class="metric-number"><span class="highlight">0.71</span> s</p>
<p class="metric-label">To enqueue 10,000 tasks</p>
</div>
</div>
</section>
<!-- BLOCK: VALUE SECTIONS -->
<section class="section features" id="features" aria-labelledby="features-title">
<div class="container">
<div class="section-heading">
<div>
<h2 id="features-title">Run fewer services</h2>
</div>
</div>
<div class="feature-grid">
<!-- VALUE 01: ONE FEWER SERVICE -->
<article class="feature-card">
<div class="feature-visual" role="img" aria-label="A worker connects directly to your database. No separate message broker sits between them.">
<div class="architecture">
<div class="architecture-node">
<div class="node-icon"><svg class="icon" aria-hidden="true"><use href="#database"/></svg></div>
<span>Your database</span>
</div>
<div class="connection"></div>
<div class="architecture-node">
<div class="node-icon"><svg class="icon" aria-hidden="true"><use href="#worker"/></svg></div>
<span>Worker</span>
</div>
</div>
</div>
<div class="feature-body">
<h3>Keep the queue in your database</h3>
<p>Tasks are rows you can inspect in Django admin. Run a dedicated worker without adding Redis or RabbitMQ.</p>
</div>
</article>
<!-- VALUE 02: WORKER RECOVERY -->
<article class="feature-card">
<div class="feature-visual" role="img" aria-label="When a worker stops, its unfinished task returns to the queue to be picked up again.">
<div class="recovery">
<div class="recovery-top">
<div class="queue-stack">
<span class="task-tile"></span>
<span class="task-tile"></span>
<span class="task-tile"></span>
</div>
<svg class="icon recovery-arrow" aria-hidden="true"><use href="#arrow-right"/></svg>
<div class="stopped-worker">Worker stopped</div>
</div>
<div class="return-path"></div>
<p class="return-label">Back to the queue</p>
</div>
</div>
<div class="feature-body">
<h3>Recover a stopped worker’s tasks</h3>
<p>Unfinished tasks return to the queue when a worker dies. You don’t need a separate recovery script.</p>
</div>
</article>
<!-- VALUE 03: ATOMIC TRANSACTIONS -->
<article class="feature-card">
<div class="feature-visual" role="img" aria-label="A transaction bracket encloses an order row and a task row. Both are committed together.">
<div class="atomic-diagram">
<div class="db-rows">
<div class="db-row">
<svg class="icon" aria-hidden="true"><use href="#row"/></svg>
<span>order row</span>
<span class="row-data">INSERT</span>
</div>
<div class="db-row">
<svg class="icon" aria-hidden="true"><use href="#row"/></svg>
<span>task row</span>
<span class="row-data">INSERT</span>
</div>
</div>
<p class="transaction-caption">one COMMIT</p>
</div>
</div>
<div class="feature-body">
<h3>Commit tasks with your data</h3>
<p>Create an order and enqueue its confirmation inside <code>transaction.atomic()</code>. A rollback leaves neither row behind.</p>
</div>
</article>
</div>
</div>
</section>
<!-- BLOCK: COMPARISON AND DRAIN BENCHMARK -->
<section class="section evidence" id="benchmarks" aria-labelledby="evidence-title">
<div class="container">
<div class="section-heading">
<div>
<h2 id="evidence-title">Compare the workers</h2>
</div>
</div>
<div class="evidence-grid">
<!-- COMPARISON COMPONENT -->
<article class="data-panel" aria-labelledby="comparison-title">
<div class="panel-heading">
<h3 id="comparison-title">Free package features</h3>
</div>
<div class="comparison-scroll">
<table class="comparison">
<caption class="sr-only">django-ox 1.3.0 and django-tasks-db 0.13.0</caption>
<thead>
<tr>
<th scope="col">Capability</th>
<th scope="col" class="our-column">django-ox<span class="table-subtitle">1.3.0</span></th>
<th scope="col">django-tasks-db<span class="table-subtitle">0.13.0</span></th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">Retries</th>
<td class="our-column"><span class="status yes"><svg class="icon" aria-hidden="true"><use href="#check"/></svg><span class="sr-only">Included</span></span></td>
<td><span class="status no"><svg class="icon" aria-hidden="true"><use href="#cross"/></svg><span class="sr-only">Not included</span></span></td>
</tr>
<tr>
<th scope="row">Dead worker’s task returns</th>
<td class="our-column"><span class="status yes"><svg class="icon" aria-hidden="true"><use href="#check"/></svg><span class="sr-only">Included</span></span></td>
<td><span class="status no"><svg class="icon" aria-hidden="true"><use href="#cross"/></svg><span class="sr-only">Not included</span></span></td>
</tr>
<tr>
<th scope="row">Recurring schedules</th>
<td class="our-column"><span class="status yes"><svg class="icon" aria-hidden="true"><use href="#check"/></svg><span class="sr-only">Included</span></span></td>
<td><span class="status no"><svg class="icon" aria-hidden="true"><use href="#cross"/></svg><span class="sr-only">Not included</span></span></td>
</tr>
<tr>
<th scope="row">Health command</th>
<td class="our-column"><span class="status yes"><svg class="icon" aria-hidden="true"><use href="#check"/></svg><span class="sr-only">Included</span></span></td>
<td><span class="status no"><svg class="icon" aria-hidden="true"><use href="#cross"/></svg><span class="sr-only">Not included</span></span></td>
</tr>
<tr>
<th scope="row">Bulk enqueue</th>
<td class="our-column"><span class="status yes"><svg class="icon" aria-hidden="true"><use href="#check"/></svg><span class="sr-only">Included</span></span></td>
<td><span class="status no"><svg class="icon" aria-hidden="true"><use href="#cross"/></svg><span class="sr-only">Not included</span></span></td>
</tr>
</tbody>
</table>
</div>
</article>
<!-- DRAIN BENCHMARK COMPONENT -->
<article class="data-panel" aria-labelledby="drain-title">
<div class="panel-heading">
<h3 id="drain-title">Up to 20% faster queue drain than django-tasks-db</h3>
<p>Tasks per second. Higher is better.</p>
</div>
<div class="chart-legend" aria-hidden="true">
<span class="legend-item"><span class="legend-swatch"></span>django-ox</span>
<span class="legend-item"><span class="legend-swatch baseline"></span>django-tasks-db</span>
</div>
<div class="chart">
<div class="bar-group">
<h4 class="bar-group-heading"><strong>2,000 tasks, 1 worker</strong></h4>
<div class="bar-pair">
<div class="bar-row">
<span class="sr-only">django-ox: </span>
<div class="bar-track" aria-hidden="true"><div class="bar w-237"></div></div>
<span class="bar-value">118.5<span class="sr-only"> tasks per second</span></span>
</div>
<div class="bar-row baseline">
<span class="sr-only">django-tasks-db: </span>
<div class="bar-track" aria-hidden="true"><div class="bar baseline w-208"></div></div>
<span class="bar-value">103.9<span class="sr-only"> tasks per second</span></span>
</div>
</div>
</div>
<div class="bar-group">
<h4 class="bar-group-heading"><strong>2,000 tasks, 4 workers</strong></h4>
<div class="bar-pair">
<div class="bar-row">
<span class="sr-only">django-ox: </span>
<div class="bar-track" aria-hidden="true"><div class="bar w-853"></div></div>
<span class="bar-value">426.3<span class="sr-only"> tasks per second</span></span>
</div>
<div class="bar-row baseline">
<span class="sr-only">django-tasks-db: </span>
<div class="bar-track" aria-hidden="true"><div class="bar baseline w-774"></div></div>
<span class="bar-value">387.1<span class="sr-only"> tasks per second</span></span>
</div>
</div>
</div>
<div class="bar-group">
<h4 class="bar-group-heading"><strong>20,000 tasks, 1 worker</strong></h4>
<div class="bar-pair">
<div class="bar-row">
<span class="sr-only">django-ox: </span>
<div class="bar-track" aria-hidden="true"><div class="bar w-230"></div></div>
<span class="bar-value">115.2<span class="sr-only"> tasks per second</span></span>
</div>
<div class="bar-row baseline">
<span class="sr-only">django-tasks-db: </span>
<div class="bar-track" aria-hidden="true"><div class="bar baseline w-195"></div></div>
<span class="bar-value">97.4<span class="sr-only"> tasks per second</span></span>
</div>
</div>
</div>