Skip to content

Commit 43b9e81

Browse files
authored
feat(consts): add actor permission level env var (#52)
Adds `ACTOR_PERMISSION_LEVEL` environmental variable. _Note: The JS variant was approved and merged already: https://github.com/apify/apify-shared-js/pull/554_
1 parent 71d561d commit 43b9e81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/apify_shared/consts.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ class ActorEnvVars(str, Enum):
133133
MEMORY_MBYTES = 'ACTOR_MEMORY_MBYTES'
134134
"""Amount of memory allocated to the Actor run in megabytes."""
135135

136+
PERMISSION_LEVEL = 'ACTOR_PERMISSION_LEVEL'
137+
"""Permission level of the Actor."""
138+
136139
RUN_ID = 'ACTOR_RUN_ID'
137140
"""Unique identifier of this specific Actor run execution."""
138141

@@ -459,6 +462,7 @@ class ActorPermissionLevel(str, Enum):
459462
ActorEnvVars.FULL_NAME,
460463
ActorEnvVars.ID,
461464
ActorEnvVars.INPUT_KEY,
465+
ActorEnvVars.PERMISSION_LEVEL,
462466
ActorEnvVars.RUN_ID,
463467
ActorEnvVars.STANDBY_URL,
464468
ActorEnvVars.TASK_ID,

0 commit comments

Comments
 (0)