conductor.native.lib.data_block module¶
This module’s purpose is to make API requests once only.
There are currently 3 pieces of data we get from api calls. 1. Projects. 2. Packages. 3. Instance types.
Instance types doesn’t yet come from an api call but maybe it will in future.
Set the env var CONDUCTOR_MOCK_API_CLIENT in iorder to avoid hitting the DB while developing
-
class
conductor.native.lib.data_block.
ConductorDataBlock
(**kw)¶ Singleton to keep some common data accessible.
We store the list of instance types, projects, and the package tree here. This data is fetched once and then all the job & submitter nodes have access to it. User can force an update, which might be handy if they started working when offline, and then need to get real before submitting.
-
classmethod
clear
()¶
-
instance
= None¶
-
classmethod
-
conductor.native.lib.data_block.
for_houdini
(force=False)¶ Factory to create or get data required by Houdini.
By specifying the product, we filter the list of packages that are stored. This factory means the code base does not need to be littered with calls that specify the product keyword.