Attach a small amount of data to a run and update it as the run progresses.
trigger
function:
metadata.get()
or metadata.current()
(again, only inside a run):
metadata.set()
, metadata.save()
, or metadata.del()
:
metadata.current()
or metadata.get()
outside of the run function will always return
undefined.trigger.config.ts
file.
metadata.get()
or
metadata.current()
, you will get a string back. You will need to deserialize it back to a Date
object if you need to use it as a Date.runs.retrieve()
SDK function to get the metadata for a run:
TASK_RUN_METADATA_MAXIMUM_SIZE
environment variable. For example, to increase the limit to 16KB, you would set TASK_RUN_METADATA_MAXIMUM_SIZE=16384
.