Luau Execution Service - Packages sometimes not loaded during execution

Hi,

We use the luau execution service to perform actions on our Roblox games. Sometimes we notice that packages in the data model are not loaded in the luau execution runtime. We confirmed this by printing the content of the data model inside the execution and retrieving the logs using the endpoint provided. The print revealed that the Folder (root) and PackageLink existed but did not contain the contents of the package.

Using opencloud APIs from https://create.roblox.com/docs/cloud/features/luau-execution

See private comment for our applied fix

Expected behavior

Roblox packages should be loaded inside the execution environment

A private message is associated with this bug report

Closing this as per our private conversation. Feel free to reach out if you have any other questions.

For future reference:
One reason I could think of when this might be happening is, when you publish new changes to package, the changes won’t be reflected unless a new version is saved (auto-saved) or published. You can verify what version of place the luau-session-task script is running on from the response body. It should have something like -
"path": "universes/xxxx/places/xxxxx/versions/7/luau-execution-sessions/abcd/tasks/abcd"