Comments (2)
Hi, I am also not able to monitor my workers (the error above is identical).
In docker container "My Celery Worker" the celery workers are configured to serialize over pickle
.
In another docker container "My Flower Monitoring" the celery flower lives (using the official image).
I am unable to match the config of "My Celery Worker" and "My Flower Monitoring" Celery applications.
What is the accepted solution to configure Flower's Celery instance in the official image?
When Pickle Serializer is used in the worker container (Untrusted Content Error)
When the Pickle Serializer is not used in the worker container (Everything works)
from flower.
so i ran into the same issue with the untrusted content errors today and was able to figure out how to inject the celery config correctly, the --config
arg for the celery CLI is actually expecting a python-import-style module for the config and not a file path.
I have a similar setup as @ntarocco with k8s and what you want to do is mount the config map with your celery configuration at the path of the docker container where celery/flower is being invoked, and then pass just the file name (without the .py
extension) to the --config
arg.
Here's my k8s deployment/configmap specs from my working setup for reference:
apiVersion: v1
kind: ConfigMap
metadata:
name: celery-config
data:
celeryconfig.py: |
accept_content = ['application/x-python-serialize', 'application/json']
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: flower
name: flower
spec:
replicas: 1
selector:
matchLabels:
app: flower
template:
metadata:
labels:
app: flower
spec:
containers:
- name: flower
image: mher/flower:2.0.1
command:
- "celery"
args:
- "--config=celeryconfig"
- "flower"
env:
- name: CELERY_BROKER_URL
value: <your_broker_url>
ports:
- containerPort: 5555
protocol: TCP
volumeMounts:
- mountPath: /data # path where celery/flower is being invoked in the docker container
name: flower-config
volumes:
- configMap:
name: flower-config
name: flower-config
from flower.
Related Issues (20)
- [FEATURE] Option to retry a failed task HOT 1
- Unable to connect to rabbitmq broker that runs with self-signed certificates
- No data available in table HOT 1
- Migration to TailwinCSS HOT 1
- Add support for poetry
- Error 500 on Broker page HOT 4
- Search arg in List tasks API - more than one state
- Task is ignored
- Questions about Copilot + Open Source Software Hierarchy
- celery flower db path from s3 file or external source HOT 1
- number_of_prefetched_tasks not decrementing HOT 4
- Command line starts normally,but unable to access flower ui HOT 1
- amqps:// scheme in Broker URL breaks Broker Tab HOT 5
- Output numbers human-friendly
- InvalidRequirements error
- Broker scheduled tasks metrics
- Getting error `No module named '"flower' when running in Kubernetes HOT 1
- There should be a way to disable /metrics
- max_tasks is not shrinking tasks when threshold is passed
- Dark mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flower.