golemcloud / golem

Golem is an open source durable computing platform that makes it easy to build and deploy highly reliable distributed systems.
https://learn.golem.cloud/
Apache License 2.0
530 stars 59 forks source link

Include Resource Type in Worker Metadata #1046

Open nicoburniske opened 3 weeks ago

nicoburniske commented 3 weeks ago

Right now, there's no way to distinguish the type of a given resource. We should include the type or function name of the constructor that was used for each of the items in ownedResources

{
   "accountId":"4ddb8290-833b-4b28-a282-57a3a8b682e8",
   "args":[

   ],
   "componentSize":89735,
   "componentVersion":2,
   "createdAt":"2024-10-08T19:32:41.016Z",
   "env":{

   },
   "lastError":null,
   "ownedResources":{
      "0":{
         "createdAt":"2024-10-29T11:46:26.773Z",
         "indexed":null
      },
      "1":{
         "createdAt":"2024-10-29T13:27:00.973Z",
         "indexed":null
      },
      "2":{
         "createdAt":"2024-10-29T13:51:28.294Z",
         "indexed":null
      },
      "3":{
         "createdAt":"2024-10-30T12:57:52.166Z",
         "indexed":null
      }
   },
   "pendingInvocationCount":0,
   "retryCount":0,
   "status":"Idle",
   "totalLinearMemorySize":1114112,
   "updates":[

   ],
   "workerId":{
      "componentId":"bc796179-09e7-4df7-ae67-055b551d0199",
      "workerName":"a837eec0-612b-493e-b291-0abf22ba5507"
   }
}