make_message: Make a message object

Description Usage Arguments Details Value

View source: R/messages.R

Description

It creates the lock for the message as well.

Usage

1
make_message(id, title, message, db, queue, lockdir)

Arguments

id

Message id, integer, auto-generated.

title

Title of message.

message

The message itself.

db

Main DB file.

queue

Name of the queue.

lockdir

Directory to create the message lock in.

Details

The message object contains the connection to the message lock. If the worker crashes, then there will be no reference to the connection, and the lock will be released. This is how we detect crashed workers.

Value

message object


r-lib/liteq documentation built on Dec. 18, 2017, 9:12 a.m.