Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pterodactyl/src/pterodactyl.js>task

Javascript sdk for Flyte
Go to Latest
function task
import { task } from "https://deno.land/x/pterodactyl@v0.4.0/src/pterodactyl.js";

Annotates a function as a task to be registered when provided to the pterodactyl_register script. If a script is executed normally this will return the provided function back to the caller.

Parameters

func
  • Function to annotate as a task.
optional
options = [UNSUPPORTED]
  • Options to change the behavior of the registerd task.