# SGTK/Tank core - thread safe?

**URL:** <https://community.shotgridsoftware.com/t/sgtk-tank-core-thread-safe/10130>\
**Category:** Pipeline Integrations\
**Created:** [September 21, 2020, 3:00pm UTC](https://community.shotgridsoftware.com/t/sgtk-tank-core-thread-safe/10130 "2020-09-21T15:00:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk421storm](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@tk421storm](https://community.shotgridsoftware.com/u/tk421storm)\
**Post date:** [September 21, 2020, 3:00pm UTC](https://community.shotgridsoftware.com/t/sgtk-tank-core-thread-safe/10130/1 "2020-09-21T15:00:42Z")

</div>

This is an easy question that I couldn’t find the answer to in the docs. Is the Tank core object created through sgtk\_from\_path() or sgtk\_from\_entity() thread-safe, or do we have to handle thread safety in our code? I noticed that the sgtk.shotgun object is listed as wrapped to be thread-safe, so I’m assuming that means the tank is as well.

Thanks!

---

<div class="post-metadata">

**Author:** ![brandon.foster](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/brandon.foster/32/91_2.png) [@brandon.foster](https://community.shotgridsoftware.com/u/brandon.foster)\
**Post date:** [September 21, 2020, 5:56pm UTC](https://community.shotgridsoftware.com/t/sgtk-tank-core-thread-safe/10130/2 "2020-09-21T17:56:28Z")

</div>

Good question, not sure! Going to check with the Toolkit team and find out.

---

<div class="post-metadata">

**Author:** ![tannaz](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/tannaz/32/32_2.png) [@tannaz](https://community.shotgridsoftware.com/u/tannaz)\
**Post date:** [October 1, 2020, 1:12am UTC](https://community.shotgridsoftware.com/t/sgtk-tank-core-thread-safe/10130/5 "2020-10-01T01:12:47Z")

</div>

Hi (again!) @tk421storm –

There is no guarantee of thread-safety with the Toolkit API outside of the `shotgun` object.

The vast majority of the time, people are calling Toolkit code from the UI, so it hasn’t proven necessary, but if you do want to do some parallel work, you may want to leverage [the background task manager](https://developer.shotgunsoftware.com/tk-framework-shotgunutils/task_manager.html).

Hope that helps! Let us know if you have any other questions.

---

<div class="post-metadata">

**Author:** ![tk421storm](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@tk421storm](https://community.shotgridsoftware.com/u/tk421storm)\
**Post date:** [October 1, 2020, 2:46pm UTC](https://community.shotgridsoftware.com/t/sgtk-tank-core-thread-safe/10130/6 "2020-10-01T14:46:31Z")

</div>

Thank you Tannaz! That makes sense to me.
