0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Code → Task Status

AI-generated

Overview

The node "0CodeKit" provides a versatile toolbox of no-code utilities grouped by different resource types, including code execution and related utilities. Specifically, the "Code" resource with the "Task Status" operation allows users to check the status of an asynchronous task by providing its Task ID. This is useful in scenarios where tasks are executed asynchronously (e.g., code execution, processing jobs) and you want to poll or verify their completion status.

Practical examples:

  • Checking if a submitted code snippet has finished executing.
  • Polling the status of a background job or process initiated earlier.
  • Integrating with workflows that depend on the completion of external asynchronous tasks.

Properties

Name Meaning
Task ID The unique identifier of the task whose status you want to check.

Output

The node outputs JSON data representing the status of the specified task. The exact structure depends on the API response from the /code/taskstatus endpoint but typically includes fields indicating whether the task is pending, completed, failed, or other relevant status information.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authentication with the 0CodeKit service.
  • The node makes a POST request to the /code/taskstatus endpoint of the 0CodeKit API base URL (https://prod.0codekit.com).
  • Proper configuration of the API key credential in n8n is necessary for successful requests.

Troubleshooting

  • Common issues:

    • Invalid or missing Task ID will likely cause errors or empty responses.
    • Expired or incorrect API credentials will result in authentication failures.
    • Network connectivity issues can prevent reaching the 0CodeKit API endpoint.
  • Error messages:

    • Authentication errors: Verify that the API key credential is correctly set up and valid.
    • Task not found or invalid Task ID: Confirm the Task ID is correct and corresponds to an existing task.
    • Timeout or network errors: Check internet connection and API availability.

Links and References

  • 0CodeKit Official Website (for general info about the service)
  • No direct public API documentation link provided in the source; consult your 0CodeKit account or support for detailed API docs.

Discussion