Accessing participant name in the compute worker #1894
-
|
Hello, I was wondering if it is possible to access the participant id for the submission inside the compute worker? I wasn't able to find a specific information regarding this. I suppose it is not accessible by default. But is there a way to work around this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Hi @mansur-csc thank you for reaching out. At the moment accessing the participant/user id in the compute worker is not possible. Do you have a use case where it is needed? Maybe describe it for us and if it is something useful for other users too we may add this option in the future. ~Ihsan, Team Codabench |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mansur-csc Thanks to our team member @ObadaS , it looks like you can actually find the user_id inside the compute worker. Please check this function that passes data to the compute worker. You can find the user_id there. If you check the logs of your compute worker you will find the user id in the logs too. I hope this will solve your problem. |
Beta Was this translation helpful? Give feedback.
-
|
Related to this issue: |
Beta Was this translation helpful? Give feedback.

Hi @mansur-csc
Thanks to our team member @ObadaS , it looks like you can actually find the user_id inside the compute worker. Please check this function that passes data to the compute worker. You can find the user_id there. If you check the logs of your compute worker you will find the user id in the logs too.
https://github.com/codalab/codabench/blob/develop/src/apps/competitions/tasks.py#L126
I hope this will solve your problem.