Open matter-funds opened 4 years ago
cc @edoakes I think this is another use case for the task context we discussed before.
Hi, @matter-funds I will start working on this (highly likely) from next week. Would you mind having a short conversation in the beginning of next week? If so, can you give me your slack handle for public Ray channel?
This must be somewhat possible now with runtime_context
API. I will document this method in 1.0.1.
@rkooo567 Has this been fixed?
Consider the following situation:
Something (incoming request, function call etc) launches job A, which launches jobs B and C in parallel. Job C also launches job D.
I would be useful for the logging statements emitted by these processes to include the same
request_id
, so one can easily track how a request triggered jobs through the cluster.This can (sort of) be achieved now, if the
request_id
is threaded through all calls, but this is cumbersome to say the least.If I may suggest two options that would probably work for the logging use-case:
request_id
can be part of this context.If logs can be matched to jobids, then this API can be used to trace all the jobs spawned by a particular request.
Feature request opened at @rkooo567 's suggestion