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
@@ -580,7 +580,7 @@ Start the actor and immediately return the Run object.
580
580
e.g. when the actor finished or failed.
581
581
If you already have a webhook set up for the actor or task, you do not have to add it again here.
582
582
Each webhook is represented by a dictionary containing these items:
583
-
*`event_types`: list of `WebhookEventType` values which trigger the webhook
583
+
*`event_types`: list of [`WebhookEventType`](#webhookeventtype) values which trigger the webhook
584
584
*`request_url`: URL to which to send the webhook HTTP request
585
585
*`payload_template` (optional): Optional template for the request payload
586
586
@@ -694,7 +694,7 @@ Last run is retrieved based on the start time of the runs.
694
694
695
695
***Parameters**
696
696
697
-
***status** (`str`, *optional*) – Consider only runs with this status.
697
+
***status** ([`ActorJobStatus`](#actorjobstatus), *optional*) – Consider only runs with this status.
698
698
699
699
***Returns**
700
700
@@ -871,25 +871,26 @@ Update the actor version with specified fields.
871
871
***apply_env_vars_to_build** (`bool`, *optional*) – Whether the environment variables specified for the actor run
872
872
will also be set to the actor build process.
873
873
874
-
***source_type** (`str`, *optional*) – What source type is the actor version using. Can be one of
875
-
SOURCE_CODE, SOURCE_FILES, GIT_REPO, TARBALL and GITHUB_GIST.
874
+
***source_type** ([`ActorSourceType`](#actorsourcetype), *optional*) – What source type is the actor version using.
876
875
877
-
***source_code** (`str`, *optional*) – Source code as a single JavaScript/Node.js file, using the base Docker image specified in baseDockerImage.
878
-
Required when source_type is SOURCE_CODE.
876
+
***source_code** (`str`, *optional*) – Source code as a single JavaScript/Node.js file,
877
+
using the base Docker image specified in `baseDockerImage`.
878
+
Required when `source_type` is [`ActorSourceType.SOURCE_CODE`](#actorsourcetype-source_code).
879
879
880
-
***base_docker_image** (`str`, *optional*) – The base Docker image to use for single-file actors. Required when source_type is SOURCE_CODE.
880
+
***base_docker_image** (`str`, *optional*) – The base Docker image to use for single-file actors.
881
+
Required when `source_type` is [`ActorSourceType.SOURCE_CODE`](#actorsourcetype-source_code).
881
882
882
883
***source_files** (`list of dict`, *optional*) – Source code comprised of multiple files, each an item of the array.
883
-
Required when source_type is SOURCE_FILES. See the API docs for the exact structure.
884
+
Required when `source_type` is [`ActorSourceType.SOURCE_FILES`](#actorsourcetype-source_files). See the API docs for the exact structure.
884
885
885
886
***git_repo_url** (`str`, *optional*) – The URL of a Git repository from which the source code will be cloned.
886
-
Required when source_type is GIT_REPO.
887
+
Required when `source_type` is [`ActorSourceType.GIT_REPO`](#actorsourcetype-git_repo).
887
888
888
889
***tarball_url** (`str`, *optional*) – The URL of a tarball or a zip archive from which the source code will be downloaded.
889
-
Required when source_type is TARBALL.
890
+
Required when `source_type` is [`ActorSourceType.TARBALL`](#actorsourcetype-tarball).
890
891
891
892
***github_gist_url** (`str`, *optional*) – The URL of a GitHub Gist from which the source will be downloaded.
892
-
Required when source_type is GITHUB_GIST.
893
+
Required when `source_type` is [`ActorSourceType.GITHUB_GIST`](#actorsourcetype-github_gist).
893
894
894
895
***Returns**
895
896
@@ -946,7 +947,7 @@ Create a new actor version.
946
947
947
948
***Parameters**
948
949
949
-
***version_number** (`str`) – Major and minor version of the actor (e.g. 1.0)
950
+
***version_number** (`str`) – Major and minor version of the actor (e.g. `1.0`)
950
951
951
952
***build_tag** (`str`, *optional*) – Tag that is automatically set to the latest successful build of the current version.
952
953
@@ -956,25 +957,26 @@ Create a new actor version.
956
957
***apply_env_vars_to_build** (`bool`, *optional*) – Whether the environment variables specified for the actor run
957
958
will also be set to the actor build process.
958
959
959
-
***source_type** (`str`) – What source type is the actor version using. Can be one of
960
-
SOURCE_CODE, SOURCE_FILES, GIT_REPO, TARBALL and GITHUB_GIST.
960
+
***source_type** ([`ActorSourceType`](#actorsourcetype)) – What source type is the actor version using.
961
961
962
-
***source_code** (`str`, *optional*) – Source code as a single JavaScript/Node.js file, using the base Docker image specified in baseDockerImage.
963
-
Required when source_type is SOURCE_CODE.
962
+
***source_code** (`str`, *optional*) – Source code as a single JavaScript/Node.js file,
963
+
using the base Docker image specified in `baseDockerImage`.
964
+
Required when `source_type` is [`ActorSourceType.SOURCE_CODE`](#actorsourcetype-source_code).
964
965
965
-
***base_docker_image** (`str`, *optional*) – The base Docker image to use for single-file actors. Required when source_type is SOURCE_CODE.
966
+
***base_docker_image** (`str`, *optional*) – The base Docker image to use for single-file actors.
967
+
Required when `source_type` is [`ActorSourceType.SOURCE_CODE`](#actorsourcetype-source_code).
966
968
967
969
***source_files** (`list of dict`, *optional*) – Source code comprised of multiple files, each an item of the array.
968
-
Required when source_type is SOURCE_FILES. See the API docs for the exact structure.
970
+
Required when `source_type` is [`ActorSourceType.SOURCE_FILES`](#actorsourcetype-source_files). See the API docs for the exact structure.
969
971
970
972
***git_repo_url** (`str`, *optional*) – The URL of a Git repository from which the source code will be cloned.
971
-
Required when source_type is GIT_REPO.
973
+
Required when `source_type` is [`ActorSourceType.GIT_REPO`](#actorsourcetype-git_repo).
972
974
973
975
***tarball_url** (`str`, *optional*) – The URL of a tarball or a zip archive from which the source code will be downloaded.
974
-
Required when source_type is TARBALL.
976
+
Required when `source_type` is [`ActorSourceType.TARBALL`](#actorsourcetype-tarball).
975
977
976
978
***github_gist_url** (`str`, *optional*) – The URL of a GitHub Gist from which the source will be downloaded.
977
-
Required when source_type is GITHUB_GIST.
979
+
Required when `source_type` is [`ActorSourceType.GITHUB_GIST`](#actorsourcetype-github_gist).
978
980
979
981
***Returns**
980
982
@@ -1187,7 +1189,7 @@ List all actor runs (either of a single actor, or all user’s actors, depending
1187
1189
1188
1190
***desc** (`bool`, *optional*) – Whether to sort the runs in descending order based on their start date
1189
1191
1190
-
***status** (`str`, *optional*) – Retrieve only runs with the provided status
1192
+
***status** ([`ActorJobStatus`](#actorjobstatus), *optional*) – Retrieve only runs with the provided status
1191
1193
1192
1194
***Returns**
1193
1195
@@ -2141,8 +2143,7 @@ Update the webhook.
2141
2143
2142
2144
***Parameters**
2143
2145
2144
-
***event_types** (`list`, *optional*) – List of event types that should trigger the webhook.
2145
-
Present in the client constants as WebhookEventType. At least one is required.
2146
+
***event_types** ([`list of WebhookEventType`](#webhookeventtype), *optional*) – List of event types that should trigger the webhook. At least one is required.
2146
2147
2147
2148
***request_url** (`str`, *optional*) – URL that will be invoked once the webhook is triggered.
2148
2149
@@ -2243,8 +2244,7 @@ You have to specify exactly one out of actor_id, actor_task_id or actor_run_id.
2243
2244
2244
2245
***Parameters**
2245
2246
2246
-
***event_types** (`list`) – List of event types that should trigger the webhook.
2247
-
Present in the client constants as WebhookEventType. At least one is required.
2247
+
***event_types** ([`list of WebhookEventType`](#webhookeventtype)) – List of event types that should trigger the webhook. At least one is required.
2248
2248
2249
2249
***request_url** (`str`) – URL that will be invoked once the webhook is triggered.
2250
2250
@@ -2434,7 +2434,7 @@ Start the task and immediately return the Run object.
2434
2434
e.g. when the actor finished or failed.
2435
2435
If you already have a webhook set up for the actor or task, you do not have to add it again here.
2436
2436
Each webhook is represented by a dictionary containing these items:
2437
-
*`event_types`: list of `WebhookEventType` values which trigger the webhook
2437
+
*`event_types`: list of [`WebhookEventType`](#webhookeventtype) values which trigger the webhook
2438
2438
*`request_url`: URL to which to send the webhook HTTP request
2439
2439
*`payload_template` (optional): Optional template for the request payload
2440
2440
@@ -2534,7 +2534,7 @@ Last run is retrieved based on the start time of the runs.
2534
2534
2535
2535
***Parameters**
2536
2536
2537
-
***status** (`str`, *optional*) – Consider only runs with this status.
2537
+
***status** ([`ActorJobStatus`](#actorjobstatus), *optional*) – Consider only runs with this status.
2538
2538
2539
2539
***Returns**
2540
2540
@@ -2815,3 +2815,155 @@ Name | Type | Description
2815
2815
`total` | `int` | Total number of objects matching the API call criteria
2816
2816
2817
2817
***
2818
+
2819
+
### [](#actorjobstatus) ActorJobStatus
2820
+
2821
+
Available statuses for actor jobs (runs or builds).
0 commit comments