Questions tagged [dramatiq]

Dramatiq is a distributed task processing library for Python 3.

34 questions
1
vote
0 answers

Dramatiq ModuleNotFoundError

I have project with next structure: app.py src __ check_health.py __ health_checker.py venv health_checker.py import requests def health_checker(): host = 'http://172.22.19.244:49250/api/v1/health' response = requests.get(host).json() …
1
vote
0 answers

Dramatiq worker and socketio

I have a Flask web service that has to do a long async operation in the background and needs to notify the client when it completes. To do this, I use dramatiq to run the async task and flask_socketio to use websockets to notify the client. My code…
Leo
  • 5,013
  • 1
  • 28
  • 65
1
vote
1 answer

Dramatic worker is shutting down with time limit exceeded error

When I'm running a worker, it is shutting down with an error "Time limit exceeded". How to increase the time limit of worker.
Evil_Sperm
  • 51
  • 9
0
votes
0 answers

vx.from_pandas(df).export_hdf5(path) giving KeyError while writing pandas df to HDF5 file

Software information Vaex version : 4.1.0 Vaex was installed via: pip from source OS: Windows Server 2016 Python Version : Python 3.9.7 Additional information Backend application while trying save the pandas df to HDF5 file using code…
0
votes
0 answers

dramatiq - Can't start using it

need some help Can't start using dramatiq because some errors My structure is projectDirectory/apptest/ __init__.py (Eempty file. Not really empty, all lines commented with #) test.py I'm using Conda environment with dramatiq installed via…
0
votes
0 answers

Kubernetes pod process keeps getting killed by SIGKILL (-9). Can't find logs

I'm running dramatiq (an async job executor) in kubernetes. For some reason this process keeps getting killed a few seconds after starting. I'm fairly new to Kubernetes and can't figure out on how to access system logs or logs other than the logs…
KPNT
  • 453
  • 3
  • 6
  • 20
0
votes
0 answers

ResultMissing when performing a Dramatiq task

For my project (Django-based online shop backend) I implemented a simulated order payment. For practice I decided to use Dramatiq to practice with asynchronous task execution. Here is my code (app_payment/views.py): from rest_framework import…
0
votes
0 answers

do i have to remove the workers in flask-dramatiq?

the docs only shows how to start but it does not say anything about stopping the workers? is it necessary? if so, how? I cant seem to find anything to close it docs: https://flask-dramatiq.readthedocs.io/en/latest/
ZFCrow
  • 11
  • 2
0
votes
0 answers

Dramatiq uses more than a function

Im currently building a internet scanner which scans ip ranges for the port 25565. When it find a ip with this port open it should ping it to get more info about the port. For that i want to use dramatiq to do it asynchrous, but dramatiq just doesnt…
0
votes
0 answers

dramatiq is using parts of code where it shouldnt

Im currently writing a programm which scans the internet for port:25565. When it finds a open port a function as dramatiq acotr is called which check the adress(ip + port) for deatails. But dramatiq uses more than the function. import json import…
0
votes
1 answer

django-dramatiq pipelines only run first stage

I am trying to use django-dramatiq to run a pipeline of several stages, each defined as dramatiq Actors, using the pipeline().run() method but it's only running the first stage/Actor and not attempting the other stages. I've defined some…
astrosnapper
  • 331
  • 1
  • 9
0
votes
1 answer

Daemonize process in makefile

Im struggling to get a process started in a Makefile to be launched in the background and the Makefile target to complete. It's a simple flask and dramatiq application. This is the target: .PHONY: run-daemon …
joidegn
  • 1,078
  • 9
  • 19
0
votes
1 answer

Dramatiq: Getting the worker name within the actor function

Does Dramatiq offer a way to get some sort of a human-readable name of the worker within the @dramatiq.actor function? I would use this to separate log lines from different works. For example, something like…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
0
votes
1 answer

How to run dramatiq tasks run in detach mode?

I'm new with dramatiq and I do not find a way how to start dramatiq in detach mode like Celery? I try to start with flags --d --detach, but nothing works. Please inform me how to start dramatic in detach mode when I start dramatiq app:broker
dmitriy_one
  • 477
  • 1
  • 5
  • 16
0
votes
1 answer

Error when running RabbitMQ in Cloud Run -> Uncaught signal: 10, pid=418, tid=418, fault_addr=0

I am trying to deploy a webserver with dramatiq and RabbitMQ and it seems like RabbitMQ is failing to start in Cloud Run. The error messages I see are: Uncaught signal: 10, pid=418, tid=418, fault_addr=0. and many instances of: Container Sandbox:…