adap / flower

Flower: A Friendly Federated AI Framework
https://flower.ai
Apache License 2.0
5.06k stars 866 forks source link

how to show the full args in task page? #3362

Open MarkRushB opened 6 months ago

MarkRushB commented 6 months ago

What is your question?

for my tasks, I have a large dict as payload, it is truncated by default, I just want to show it completely.

From document, I see we have a method called: format_task, I tried this method but looks like the args has already been truncated before passing into this method. So I cannot make anything here.

Any idea on this? Thanks folks

XiaobinZhao commented 5 months ago

format_task just for template, the args of task already be truncated. You can set argsrepr_maxsize kwargsrepr_maxsize with the Celery instance, for example:

app = Celery(main=...,   backend=...,  result_backend=...)

app.amqp.argsrepr_maxsize = 102400
app.amqp.kwargsrepr_maxsize = 102400