Actions2
Update Status
AI-generatedOverview
This node operation updates the status of a job in the Masumi Paywall system. It is useful for workflows that need to track and manage job progress, such as marking jobs as completed, failed, running, or awaiting input. For example, after processing a job, the node can update its status to 'completed' and store the result data, or mark it as 'failed' with an error message if an issue occurred.
Use Case Examples
- Updating a job status to 'completed' with result data after successful processing.
- Marking a job as 'failed' and providing an error message when processing fails.
- Setting a job status to 'awaiting_input' when additional user input is required.
Properties
| Name | Meaning |
|---|---|
| Job ID | ID of the job to update. If empty, uses the last job from this workflow. |
| Status | New status for the job. Must be one of the predefined valid statuses such as completed, failed, running, etc. |
| Result Data | Result data to store with the job. Required when status is 'completed'. |
| Error Message | Error message for failed jobs. Used only when status is 'failed'. |
Output
JSON
success- Indicates if the status update was successfuljob- The updated job object returned from the Masumi Paywall serviceoperation- The operation performed, which is 'updateStatus'
Dependencies
- Masumi Paywall API credentials including paymentServiceUrl, apiKey, agentIdentifier, network, and sellerVkey
Troubleshooting
- Job ID is required; if not provided, the node attempts to use the last accessed job ID in the workflow. If none is available, an error is thrown.
- Status must be one of the valid predefined statuses; otherwise, an error is thrown.
- Result data must be provided when the status is 'completed'; missing result data causes an error.
- Network or API errors during the update will throw detailed errors suggesting to check API credentials and network connection.
- If the job ID does not exist in the Masumi Paywall system, an error indicating 'Job not found' is thrown.