ganeti

Safe HaskellSafe-Infered

Ganeti.Jobs

Description

Generic code to work with jobs, e.g. submit jobs and check their status.

Synopsis

Documentation

execJobsWaitSource

Arguments

:: [[MetaOpCode]]

The list of jobs

-> ([JobId] -> IO ())

Post-submission callback

-> Client

The Luxi client

-> IO (Result [(JobId, JobStatus)]) 

Executes a set of jobs and waits for their completion, returning their status.

waitForJobs :: [JobId] -> Client -> IO (Result [(JobId, JobStatus)])Source

Polls a set of jobs at a fixed interval until all are finished one way or another.