Possible rework for object storage in addtional stores

So I’m noticing that there are lots of null entries in the addtional_store database of the JOB_STORE.

Having looked at it super carefully, but it looks like its triggering a db write here regardless of the presence of actual data to write:

Since the data_store in atomate2 only serializes python objects, we should:

  1. Check if there is an object
  2. Store the class (??headers??, the @ClassName stuff) in the index store while we are at it. NVM just realized it’s already doing that.

Let me know what you think.