Melaporkan kegagalan tugas tertentu.
Deskripsi operasi
Deskripsi operasi
Di Serverless Workflow lama, gunakan operasi ini untuk melakukan callback pada langkah tugas dengan pattern: waitForCallback untuk menunjukkan bahwa eksekusi tugas saat ini telah gagal.
Di Alur Kerja Cloud, gunakan operasi ini untuk melakukan callback pada langkah tugas dengan TaskMode: WaitForCustomCallback untuk menunjukkan bahwa eksekusi tugas saat ini telah gagal.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
fnf:ReportTaskFailed |
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 MSMQ atau Function Compute (FC). Untuk MNS, Anda dapat memperolehnya dari paket yang diterima. Untuk FC, Anda dapat memperolehnya dari event. Untuk detail, lihat Mode integrasi layanan. |
djEjYSNkZTdkYWZjMi0zMGRlLTRlMDMtOTA2OC0yMTMxYmM5NGJlZTIjNSMvV1ZHYks3RTc0WUsra25nQTNYSmtFa0t6**** |
| Error |
string |
Yes |
Kode kesalahan untuk kegagalan. Nilai harus memiliki panjang 1 hingga 128 karakter. |
InvalidArgument |
| Cause |
string |
No |
Penyebab kegagalan. Nilai harus memiliki panjang 1 hingga 4,096 karakter. |
emptyString |
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.