#223·machinery

Retrieve Args from previous signature or Asyncresult

Author: siredwinCreated Jan 18, 2018Updated Feb 23, 2025

For my API, I need the ability to access the entered arguments instead of passing them on URL because they are sensitive.
I have tried the following but i get empty Argument list all the time.

// retrieve signature using just uuid
func getUUIDSignature(id string) (sig *tasks.Signature){
	sig = &tasks.Signature{
		UUID: id,
	}
        //return sig.Name, sig.Args
	return
}

func getUUIDArgs(id string) (string, []tasks.Arg){
	sig := &tasks.Signature{
		UUID: id,
		//Name: "idurl",
	}
	asyncResult := backends.NewAsyncResult(sig, server.GetBackend())
	return asyncResult.Signature.Name, asyncResult.Signature.Args
}

What is the right way to get the arguments back?