Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
import { metadata } from "@trigger.dev/sdk";
import {
parseStatus,
type TDocumentProgressStatus,
} from "@/lib/utils/trigger-status";
/**
* Update the status of the convert document task. Wraps the `metadata.set` method.
*/
export function updateStatus(status: TDocumentProgressStatus) {
// `metadata.set` can be used to update the status of the task
// as long as `updateStatus` is called within the task's `run` function.
metadata.set("status", status);
}
export { parseStatus };