Melaporkan keberhasilan eksekusi tugas tertentu.
Deskripsi operasi
Deskripsi operasi
Pada Serverless Workflow versi lama, gunakan operasi ini untuk melakukan callback pada langkah tugas dengan pattern yang diatur ke waitForCallback untuk menunjukkan bahwa tugas saat ini telah berhasil dieksekusi.
Pada Alur Kerja Cloud versi baru, gunakan operasi ini untuk melakukan callback pada langkah tugas dengan TaskMode yang diatur ke WaitForCustomCallback untuk menunjukkan bahwa tugas saat ini telah berhasil dieksekusi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fnf:ReportTaskSucceeded |
get |
*Semua resource.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskToken |
string |
Yes |
Token yang ditentukan untuk node. TaskToken diteruskan ke layanan yang dipanggil, seperti Antrian Pesan MNS atau Function Compute (FC). Untuk MNS, Anda dapat memperolehnya dari Paket yang diterima. Untuk FC, Anda dapat memperolehnya dari event. Untuk detailnya, lihat Mode integrasi layanan. |
djEjYSNkZTdkYWZjMi0zMGRlLTRlMDMtOTA2OC0yMTMxYmM5NGJlZTIjNSMvV1ZHYks3RTc0WUsra25nQTNYSmtFa0t6U**** |
| Output |
string |
Yes |
Informasi output yang ditentukan untuk laporan tugas. |
{"key":"value"} |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data tanggapan. |
||
| EventId |
integer |
ID event. |
1 |
| RequestId |
string |
ID permintaan. |
testRequestId |
Contoh
Respons sukses
JSONformat
{
"EventId": 1,
"RequestId": "testRequestId"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ActionNotSupported | The requested API operation '%s' is incorrect. Please check. | |
| 400 | APIVersionNotSupported | The requested API version '%s' is not supported yet. Please check. | |
| 400 | EntityTooLarge | The payload size exceeds maximum allowed size (%s bytes). | |
| 400 | InvalidArgument | Parameter error. | |
| 400 | MissingRequiredHeader | The HTTP header '%s' must be specified. | |
| 400 | MissingRequiredParams | The HTTP query '%s' must be specified. | |
| 400 | TaskAlreadyCompleted | Task %s has already completed. | |
| 500 | InternalServerError | An internal error has occurred. Please retry. | |
| 403 | AccessDenied | The resources doesn't belong to you. | |
| 403 | InvalidAccessKeyID | The AccessKey ID %s is invalid. | |
| 403 | RequestTimeTooSkewed | The difference between the request time %s and the current time %s is too large. | |
| 403 | SignatureNotMatch | The request signature we calculated does not match the signature you provided. Check your access key and signing method. | |
| 415 | UnsupportedMediaType | The content type must be "application/json". | |
| 429 | ResourceThrottled | The request is throttled. Please try again later. | |
| 409 | TaskInvalidState | Task is in an invalid state, please retry. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.