I think this is achievable using existing telemetry hooks! You could register a telemetry handler on job completion events, and in that handler do a Phoenix pubsub publish. Processes that want to wait for job completion subscribe to a topic based on the job id or arg. Alternatively, you can also just do a phoenix pubsub at the end of the job.
3 Likes






















