Skip to content

Instantly share code, notes, and snippets.

@altipard
altipard / docker-compose.yml
Created August 8, 2019 16:23 — forked from igorkamyshev/docker-compose.yml
docker-gen + letsencrypt-nginx-proxy-companion
version: '3'
services:
nginx-web:
image: nginx
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
container_name: ${NGINX_WEB:-nginx-web}
restart: always
ports:
- "${IP:-0.0.0.0}:80:80"
@altipard
altipard / celery_tasks_error_handling.py
Created December 21, 2015 21:33 — forked from darklow/celery_tasks_error_handling.py
Celery tasks error handling example
from celery.task import task
from my_app.models import FailedTask
from django.db import models
@task(base=LogErrorsTask)
def some task():
return result
class LogErrorsTask(Task):
def on_failure(self, exc, task_id, args, kwargs, einfo):