pub struct TaskOptions {
pub build: Option<String>,
pub timeout_secs: Option<u64>,
pub memory_mbytes: Option<u64>,
pub max_items: Option<u64>,
pub max_total_charge_usd: Option<f64>,
pub restart_on_error: Option<bool>,
}Expand description
Run-time options that can be attached to a Task or overridden per-Run.
These control how the Actor container is provisioned on Apify’s infrastructure.
Fields§
§build: Option<String>Actor build tag or number to run (e.g. latest).
timeout_secs: Option<u64>Maximum run time in seconds before Apify forcibly terminates the container.
memory_mbytes: Option<u64>Memory allocated to the container, in megabytes.
max_items: Option<u64>Stop the Actor after this many result items (pay-per-result Actors).
max_total_charge_usd: Option<f64>Maximum dollar amount you are willing to spend on this run.
restart_on_error: Option<bool>Automatically restart the Actor on a non-zero exit code.
Trait Implementations§
Source§impl Clone for TaskOptions
impl Clone for TaskOptions
Source§impl Debug for TaskOptions
impl Debug for TaskOptions
Source§impl Default for TaskOptions
impl Default for TaskOptions
Source§impl<'de> Deserialize<'de> for TaskOptions
impl<'de> Deserialize<'de> for TaskOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskOptions
impl RefUnwindSafe for TaskOptions
impl Send for TaskOptions
impl Sync for TaskOptions
impl Unpin for TaskOptions
impl UnsafeUnpin for TaskOptions
impl UnwindSafe for TaskOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more