import Ganeti.JSON
import Ganeti.OpParams (pTagsObject)
import Ganeti.OpCodes
-import Ganeti.Runtime
import qualified Ganeti.Query.Language as Qlang
+import Ganeti.Runtime (GanetiDaemon(..), MiscGroup(..), GanetiGroup(..))
import Ganeti.THH
import Ganeti.Types
import Ganeti.Utils
, (luxiReqSubmitJob,
[ simpleField "job" [t| [MetaOpCode] |] ]
)
+ , (luxiReqSubmitJobToDrainedQueue,
+ [ simpleField "job" [t| [MetaOpCode] |] ]
+ )
, (luxiReqSubmitManyJobs,
[ simpleField "ops" [t| [[MetaOpCode]] |] ]
)
[ops1] <- fromJVal args
ops2 <- mapM (fromJResult (luxiReqToRaw call) . J.readJSON) ops1
return $ SubmitJob ops2
+ ReqSubmitJobToDrainedQueue -> do
+ [ops1] <- fromJVal args
+ ops2 <- mapM (fromJResult (luxiReqToRaw call) . J.readJSON) ops1
+ return $ SubmitJobToDrainedQueue ops2
ReqSubmitManyJobs -> do
[ops1] <- fromJVal args
ops2 <- mapM (fromJResult (luxiReqToRaw call) . J.readJSON) ops1