Hey guys, is there a way to define a caching function to be based on the state of another task asper it only uses the value stored in its cache if the 1st task aligns with specific conditions e.g if there are 2 tasks: A and B, where task A has inputs and is cached using the task_input_hash but task B doesn’t have any input to its function so i want to cache it based on the state of task A - specifically if task A shows that it used the cache, then task B should equally use its cache but if task A doesn’t use its cache (the inputs are different), then task B should run and not use the previously saved cache
Would appreciate any feedback, and pls let me know if it makes sense