You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want an independent environment for executing workers. I currently treat workers as a lightweight container and hope that each worker has their own directory to handle certain tasks in conjunction with Deno's permission management.
In short, can the program customize the context of the worker.
The text was updated successfully, but these errors were encountered:
Deno.cwd() returns the current working directory of the process. Workers run in threads within that process, so no.
You'd have to create another api for the workers to use that could have its own local state for the cwd, or you'd need to or change the Deno global in the worker.
I want an independent environment for executing workers. I currently treat workers as a lightweight container and hope that each worker has their own directory to handle certain tasks in conjunction with Deno's permission management.
In short, can the program customize the context of the worker.
The text was updated successfully, but these errors were encountered: