[][src]Struct golem_rpc_api::comp::GolemComp

pub struct GolemComp<'a, Inner: RpcEndpoint + ?Sized>(_);

Methods

impl<'a, Inner: RpcEndpoint + ?Sized + 'static> GolemComp<'a, Inner>[src]

pub fn create_task_int(
    &self,
    task_spec: Value
) -> impl Future<Output = Result<(Option<String>, Option<Value>), Error>>
[src]

Calls comp.task.create RPC URI.

pub fn create_dry_run_int(
    &self,
    task_spec: Value
) -> impl Future<Output = Result<(Option<TaskInfo>, Option<Value>), Error>>
[src]

Calls comp.task.create.dry_run RPC URI.

pub fn get_task(
    &self,
    task_id: String
) -> impl Future<Output = Result<Option<TaskInfo>, Error>>
[src]

Calls comp.task RPC URI.

pub fn get_tasks<'b>(
    &'b self
) -> impl Future<Output = Result<Vec<TaskInfo>, Error>> + 'static
[src]

Calls comp.tasks RPC URI.

pub fn get_tasks_unsupported(
    &self,
    last_days: i32
) -> impl Future<Output = Result<Vec<UnsupportInfo>, Error>>
[src]

Show statistics for unsupported tasks.

Arguments

  • last_days - Number of last days to compute statistics on.

Returns

Vec of UnsupportInfo. With stats for each reason.

Calls comp.tasks.unsupport RPC URI.

pub fn abort_task(
    &self,
    task_id: String
) -> impl Future<Output = Result<(), Error>>
[src]

Abort task with given id.

Arguments

  • task_id - Task id to abort.

Calls comp.task.abort RPC URI.

pub fn delete_task(
    &self,
    taks_id: String
) -> impl Future<Output = Result<(), Error>>
[src]

Calls comp.task.delete RPC URI.

pub fn restart_subtask(
    &self,
    subtask_id: String
) -> impl Future<Output = Result<(), Error>>
[src]

Calls comp.task.subtask.restart RPC URI.

pub fn get_subtask(
    &self,
    subtask_id: String
) -> impl Future<Output = Result<(Option<SubtaskInfo>, Option<String>), Error>>
[src]

Calls comp.task.subtask RPC URI.

pub fn get_subtasks(
    &self,
    task_id: String
) -> impl Future<Output = Result<Option<Vec<SubtaskInfo>>, Error>>
[src]

Calls comp.task.subtasks RPC URI.

pub fn purge_tasks<'b>(
    &'b self
) -> impl Future<Output = Result<(), Error>> + 'static
[src]

Calls comp.task.purge RPC URI.

pub fn restart_task(
    &self,
    task_id: String
) -> impl Future<Output = Result<(Option<String>, Option<String>), Error>>
[src]

Calls comp.task.restart RPC URI.

pub fn restart_frame_subtasks(
    &self,
    task_id: String,
    frame: u32
) -> impl Future<Output = Result<(), Error>>
[src]

Calls comp.task.subtasks.frame.restart RPC URI.

pub fn restart_subtasks_from_task(
    &self,
    task_id: String,
    subtask_ids: Vec<String>
) -> impl Future<Output = Result<Value, Error>>
[src]

Restarts a set of subtasks from the given task. If the specified task is already finished, all failed subtasks will be restarted along with the set provided as a parameter. Finished subtasks will have their results copied over to the newly created task.

Parameters

  • task_id the ID of the task which contains the given subtasks.
  • subtask_ids the set of subtask IDs which should be restarted. If this is empty and the task is finished, all of the task's subtasks marked as failed will be restarted.
  • ignore_gas_price if True, this will ignore long transaction time errors and proceed with the restart.
  • disable_concent setting this flag to True will result in forcing Concent to be disabled for the task. This only has effect when the task is already finished and needs to be restarted.

##Returns

In case of any errors, returns the representation of the error (either a string or a dict). Otherwise, returns None.

Calls comp.task.subtasks.restart RPC URI.

pub fn run_test_task(
    &self,
    task_spec: Value
) -> impl Future<Output = Result<bool, Error>>
[src]

Calls comp.tasks.check RPC URI.

pub fn check_test_status<'b>(
    &'b self
) -> impl Future<Output = Result<TaskTestResult, Error>> + 'static
[src]

Calls comp.task.test.status RPC URI.

pub fn abort_test_task<'b>(
    &'b self
) -> impl Future<Output = Result<bool, Error>> + 'static
[src]

Returns true if there was task to cancel Calls comp.tasks.check.abort RPC URI.

pub fn get_tasks_stats<'b>(
    &'b self
) -> impl Future<Output = Result<SubtaskStats, Error>> + 'static
[src]

Calls comp.tasks.stats RPC URI.

pub fn get_environments<'b>(
    &'b self
) -> impl Future<Output = Result<Vec<CompEnvStatus>, Error>> + 'static
[src]

Calls comp.environments RPC URI.

pub fn enable_environment(
    &self,
    env_id: String
) -> impl Future<Output = Result<Option<String>, Error>>
[src]

Enables enviroment Returns None or Error message. Calls comp.environment.enable RPC URI.

pub fn disable_environment(
    &self,
    env_id: String
) -> impl Future<Output = Result<Option<String>, Error>>
[src]

Enables enviroment Returns None or Error message. Calls comp.environment.disable RPC URI.

pub fn run_benchmark(
    &self,
    env_id: String
) -> impl Future<Output = Result<Value, Error>>
[src]

Calls comp.environment.benchmark RPC URI.

pub fn perf_mult_set(
    &self,
    multiplier: f64
) -> impl Future<Output = Result<(), Error>>
[src]

Calls performance.multiplier.update RPC URI.

pub fn perf_mult<'b>(
    &'b self
) -> impl Future<Output = Result<f64, Error>> + 'static
[src]

Calls performance.multiplier RPC URI.

impl<'a, Inner: RpcEndpoint + ?Sized + 'static> GolemComp<'a, Inner>[src]

pub fn create_task(
    &self,
    task_spec: Value
) -> impl Future<Output = Result<String, Error>> + 'static
[src]

pub fn create_dry_run(
    &self,
    task_spec: Value
) -> impl Future<Output = Result<TaskInfo, Error>>
[src]

Auto Trait Implementations

impl<'a, Inner: ?Sized> RefUnwindSafe for GolemComp<'a, Inner> where
    Inner: RefUnwindSafe

impl<'a, Inner: ?Sized> Send for GolemComp<'a, Inner> where
    Inner: Sync

impl<'a, Inner: ?Sized> Sync for GolemComp<'a, Inner> where
    Inner: Sync

impl<'a, Inner: ?Sized> Unpin for GolemComp<'a, Inner>

impl<'a, Inner: ?Sized> UnwindSafe for GolemComp<'a, Inner> where
    Inner: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,