# Change to units in Task metadata files

**URL:** <https://www.rubin.community/t/change-to-units-in-task-metadata-files/6350>\
**Category:** DM Notifications\
**Tags:** dm-dev\
**Created:** [February 28, 2022, 6:07pm UTC](https://www.rubin.community/t/change-to-units-in-task-metadata-files/6350 "2022-02-28T18:07:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [February 28, 2022, 6:07pm UTC](https://www.rubin.community/t/change-to-units-in-task-metadata-files/6350/1 "2022-02-28T18:07:32Z")

</div>

I have changed the content of the resource usage in Task metadata to make the units consistent when accessing the `*MaxResidentSetSize` field (see [DM-20970](https://jira.lsstcorp.org/browse/DM-20970)). Previously the value in that field depended on where you ran it. On macOS it was reported in bytes but on Linux it was reported as kibibytes. With the new change the units will always be in bytes.

If you have code that accesses these fields from the Task or quantum metadata you can check for the ` __version__ ` field in the metadata. If that field is present (and nominally has a value `>= 1`) then the units will be in bytes. If there is no ` __version__ ` field then you have platform-specific units and will need to know where you ran the processing.

---

<div class="post-metadata">

**Author:** ![kfindeisen](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/kfindeisen/32/833_2.png) [@kfindeisen](https://www.rubin.community/u/kfindeisen)\
**Post date:** [February 28, 2022, 8:01pm UTC](https://www.rubin.community/t/change-to-units-in-task-metadata-files/6350/2 "2022-02-28T20:01:11Z")

</div>

Note that ` __version__ ` is part of each task’s metadata; thus in `getFullMetadata` you have keys like:

```auto
pipelineTask. __version__
pipelineTask:subtask. __version__

```

---

<div class="post-metadata">

**Author:** ![timj](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/timj/32/10_2.png) [@timj](https://www.rubin.community/u/timj)\
**Post date:** [February 28, 2022, 9:53pm UTC](https://www.rubin.community/t/change-to-units-in-task-metadata-files/6350/3 "2022-02-28T21:53:13Z")

</div>

> [@kfindeisen](#):
>
> task’s metadata

Yes. Metadata is filled up per task and there is no way to know if somewhere else in the hierarchy has already noted the metadata version number.
