Slackbot
11/20/2023, 6:20 PMEric Haag
11/20/2023, 6:49 PM@Internal is simply ignored.
@LocalState is ignored for task inputs, but also deleted when the task is loaded from the cache (as explained in the Javadoc). It is useful for tasks that need some "local state" on disk, not part of the outputs, but reused across task executions, and that need to be cleaned up if the task outputs are restored from the cache. An example of this could be incremental compilation state.
I hope that helps.Ryan Schmitt
11/20/2023, 7:44 PMEric Haag
11/20/2023, 7:49 PM@Internal nor @LocalState marked properties will be stored in the build cache. The difference is in the behavior for when the state should be cleaned up.