Get a flow user state
Get an OIDC jwt token for auth to external services (e.g: Vault, AWS) (ee only)
Get a resource value by path
Get URLs needed for resuming a flow after this step
Get the true root job id
Get the state shared across executions
Get a variable by path
Load the content of a file stored in S3. If the s3ResourcePath is undefined, it will default to the workspace S3 resource.
Load the content of a file stored in S3 as a stream. If the s3ResourcePath is undefined, it will default to the workspace S3 resource.
filter on type of operation
filter on created after (exclusive) timestamp
filter on jobs containing those args as a json subset (@> in postgres)
filter on started before (inclusive) timestamp
Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
filter on created after (exclusive) timestamp
filter on created before (inclusive) timestamp
mask to filter exact matching user creator
filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
List of headers's keys (separated with ',') whove value are added to the args Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by,
mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels')
The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request)
filter on exact or prefix name of operation
order by desc order (default true)
which page to return (start at 1, default 1)
The parent job that is at the origin and responsible for the execution of this script if any
The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
encodeURIComponent(btoa(JSON.stringify({a: 2})))
number of items to return for a given page (default 30, max 100)
The maximum size of the queue for which the request would get rejected if that job would push it above that limit
filter on exact or prefix name of resource
filter on jobs containing those result as a json subset (@> in postgres)
filter on running jobs
filter on jobs scheduled_for before now (hence waitinf for a worker)
mask to filter by schedule path
mask to filter exact matching path
mask to filter exact matching path
mask to filter matching starting path
filter on started after (exclusive) timestamp
filter on started before (inclusive) timestamp
filter on successful jobs
filter on suspended jobs
filter on jobs with a given tag/worker group
filter on exact username of user
Override the tag to use
Set a flow user state
Set a resource value by path
Set the state
Set a variable by path, create if not exist
Get email from workspace username This method is particularly useful for apps that require the email address of the viewer. Indeed, in the viewer context, WM_USERNAME is set to the username of the viewer but WM_EMAIL is set to the email of the creator of the app.
Persist a file to the S3 bucket. If the s3ResourcePath is undefined, it will default to the workspace S3 resource.