Schedule a queue triggered azure function in Azure Function 4

Viewed 14

In Azure functions 4 Isolated Process, I'm using queue triggered functions and multi-output bindings in my workflow. Everything works great until I try to figure out how to delay one of the work items via A VisibilityTimeout in the output binding. Anyone know a way to do this?

What I have:

public sealed record UpdateStatusAndDoWork
{
    [QueueOutput(Queues.WorkToDoLater)]
    public WorkData { get; set; }

    [QueueOutput(Queues.UpdateStatusQueueName)]
    public StatusUpdate StatusUpdate { get; set; }
}

What I want:

public sealed record UpdateStatusAndDoWork
{
    [QueueOutput(Queues.WorkToDoLater, TimeSpan.FromHours(1))]
    public WorkData { get; set; }

    [QueueOutput(Queues.UpdateStatusQueueName)]
    public StatusUpdate StatusUpdate { get; set; }
}
0 Answers
Related