---
title: "execute in queue · RUAL Documentation"
description: "Executes the given function on a given time using the queue and doesn't wait for it to be executed."
canonical: https://docs.rual.nl/block-types/function%20execution/function_custom_execute_from_queue
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# execute in queue

This block is part of the [`function execution`](https://docs.rual.nl/block-types/function%20execution) group and was last modified in core [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

## Function Selection Required

This block requires you to choose a custom function to execute when triggered. You must manually select the function you want to use using the function selector modal. To access the modal, click the white button on the block.

Executes the given function on a given time using the queue and doesn't wait for it to be executed.

- flow `flow`

- unique ID `value` A unique ID will make sure it doesn't make a new one if a queue item already exists with this ID.

- Execute at `date` The time this function should run (rounded to the nearest 10 sec).

Default `now`

- Debounce `condition` This allows for a `debounce` (remove old, create new one) effect on this function, requires a `unique id` to work.

Default `false`

- flow `flow`

- queue `object` The queue document

Fire-and-forget in production: enqueues the selected function to run in the background at the timestamp pin (defaults to now) and continues immediately : the Go executor never populates the queue_doc output. In simulation, debug, or staging it runs the function INLINE and waits, mapping return values back like custom execute. A unique_id deduplicates pending queue items (stored as "bp:{unique_id}"); debounce=true replaces the pending item with the same unique id instead of skipping.

| `custom function from queue` |
| --- |

A typical wiring for [execute in queue](https://docs.rual.nl/block-types/function%2520execution/function_custom_execute_from_queue): [reply in JSON](https://docs.rual.nl/block-types/json/httpconnection_set_json) feeds the `flow` pin; [create document](https://docs.rual.nl/block-types/storage/function_create_document_from_mutations) feeds the `unique_id` pin; [update document](https://docs.rual.nl/block-types/storage/function_update_document_mutations) feeds the `debounce` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%2520ui/state_debug).

[![Studio canvas example for the execute in queue block: typical wiring for execute in queue.](https://docs.rual.nl/canvas-examples/function_custom_execute_from_queue.png)](https://docs.rual.nl/canvas-examples/function_custom_execute_from_queue.png?v=3)

## Commonly used with

In production blueprints, this block is most often wired together with:

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [reply in JSON](https://docs.rual.nl/block-types/json/httpconnection_set_json): feeds into this block. Reply to any httpconnection as JSON body.

- [branch](https://docs.rual.nl/block-types/flow/branch): feeds into this block.

- [create document](https://docs.rual.nl/block-types/storage/function_create_document_from_mutations): feeds into this block. Creates a document in the given storage.

- [update document](https://docs.rual.nl/block-types/storage/function_update_document_mutations): feeds into this block. Update document in the given storage and creates a revision for it.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

## Used in these guides

These documentation pages use or explain this block:

- [Building a Reporting API](https://docs.rual.nl/tutorials/reporting-api)

- [Building AI Endpoints](https://docs.rual.nl/tutorials/ai-endpoints)

- [Building an API with Locking](https://docs.rual.nl/tutorials/api-locking)

- [Email System Setup](https://docs.rual.nl/tutorials/email-system)

- [File Upload & Processing](https://docs.rual.nl/tutorials/file-upload-processing)

- [Handling City Filter Uploads](https://docs.rual.nl/tutorials/city-filter-uploads)

- [Block Execution](https://docs.rual.nl/blueprints/block-execution)

- [Common Blueprint Patterns](https://docs.rual.nl/blueprints/common-patterns)

## Version history

Introduced in [`v10.4.28`](https://docs.rual.nl/core-versions/100428).

- [Back to `function execution`](https://docs.rual.nl/block-types/function%20execution): Return to the main group to view all sub-groups

- [Back to `function`](https://docs.rual.nl/block-types/function%20execution?group=function): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
