Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MarkRushB opened this issue Apr 29, 2024 · 1 comment
Open

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

MarkRushB opened this issue Apr 29, 2024 · 1 comment
Labels
question Further information is requested

Comments

@MarkRushB
Copy link

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

@MarkRushB MarkRushB added the question Further information is requested label Apr 29, 2024
@XiaobinZhao
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants