Skip to main content

Function: userActivityQueues()

userActivityQueues(files, modules, functions): object

The default task queue of every user activity the sources declare, per tier-2 function, and the declarations and calls that put a user activity on managed (CX17, spec 02 §4).

A call's queue comes from its options, else from the declaration, else from the calling function's own queue. lower() cannot tell which function calls which activity, so each function gets every declaration in the bundle: activityQueues[name] is the queue the declaration names, else the function's queue. A declaration that resolves to managed for some function is reported (a declaration without a queue in a project with a function on managed included: give it a self-hosted queue), and so is a call whose options name managed literally. Declarations whose queue is not a literal are left out; the service still refuses SCHEDULE_ACTIVITY on managed at run time.

Parameters​

files​

ReadonlyMap<string, string>

modules​

Iterable<string>

functions​

Readonly<Record<string, { taskQueue: string; }>>

Returns​

object

issues​

issues: LowerIssue[]

queues​

queues: Record<string, Record<string, string>>