You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very usefullwhile debugging, when using local broker, things are synchronous
the usecase in summary is using the actor asynchronously, then adding an object to a database, this object should be identified with the message id.
While processing the task of the actor, I'd like to change the database object (in my case i'm using sqlalchemy).
The problem is when I'm trying to manipulate my object in my task, the database object isn't yet created (because I need the message id for that)
to sum up:
Generate a message id -> start task with this message id -> add object to database with this unique message id -> manipulating this object in the task previously started
Hello,
Is it nice to have the possibility to specify the message_id while using an actor, is it possible?
@remoulade.actor
def count_words(url):
response = requests.get(url)
count = len(response.text.split(" "))
print(f"There are {count} words at {url!r}.")
remoulade.declare_actors([count_words])
count_words("www.example.com", message_id=my_message_id)
The text was updated successfully, but these errors were encountered: