Skip to content

Instantly share code, notes, and snippets.

View Umut-Deniz1's full-sized avatar
🏠
Working from home

umut deniz Umut-Deniz1

🏠
Working from home
View GitHub Profile
@VKen
VKen / docker-start-celery-multi-worker-entrypoint
Created September 19, 2019 03:57
Running celery multi in docker container with running logs, signal trap, and graceful shutdown & restart
#!/bin/sh
# safety switch, exit script if there's error. Full command of shortcut `set -e`
set -o errexit
# safety switch, uninitialized variables will stop script. Full command of shortcut `set -u`
set -o nounset
# tear down function
teardown()
{