Hi All,
I have defined a custom firetask that inherits from FiretaskBase and I have added the FW to the LaunchPad and it was launched by a host successfully. As part of the Firetask code, there is a need to log metadata to a MongoDB database. Right now, one of the specs for the FW is a unique task_name that gets used to query from the collection in MongoDB. However, if later one I decide to rerun the same FW (with the rerun_fws lpad command), because it is using the same task_name field value, there is no way for me to easily parse the metadata of one launch from the other. So, in order to make the metadata unique across launches, I was thinking of logging the launch_id to the collection in MongoDB on top of the task_name. I was wondering whether it would be possible for me to access this as part of the Firetask itself.
Thanks.