Skip to content

Instantly share code, notes, and snippets.

@Bahus
Bahus / gunicorn
Created August 26, 2012 21:29 — forked from suda/gunicorn
Gunicorn init.d script (debian/ubuntu)
#!/bin/sh
### BEGIN INIT INFO
# Provides: gunicorn
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the gunicorn server
# Description: starts gunicorn using start-stop-daemon
@Bahus
Bahus / tasks.py
Last active August 1, 2022 15:19 — forked from mihalt/tasks.py
planning of architecture
from decimal import Decimal
import pydantic
@shared_task
def get_provider_api_stocks(api_key, url_constructor, deserialize_constructor):
# api_key в принципе нельзя передавать так
return True