Hynek Schlawack 2/25/2012

Celery and Sybase SQL Anywhere

Read Original

This technical article details a specific integration problem between the Sybase SQL Anywhere database driver (sqlanydb) and the Celery task queue. The author explains that while code works in plain Python, it fails in Celery workers due to the driver being non-fork-safe, not just non-thread-safe. The post provides potential solutions, such as importing the driver inside the task function or using the `on_worker_process_init()` hook.

Celery and Sybase SQL Anywhere

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week