Compare commits

...
12 Commits
Author SHA1 Message Date
GDay 01cb652071 Release v1.4.11 2023-01-31 00:24:44 +01:00
Stan Triepels b9bdd64568 Remove custom build (revert to auto create setup file) (#70) 2023-01-31 00:21:37 +01:00
Stan Triepels b2bcffbcab Fix missing setup file for "No matching distribution" error (#69) 2023-01-31 00:09:33 +01:00
GDay 25cd180410 Release v1.4.10 2023-01-27 02:10:20 +01:00
Stan Triepels f9e01699c5 Adding translation mo files automatically on build (#65) 2023-01-26 16:45:44 +01:00
Stan Triepels 2f3b0d0a31 Update all dependencies (#64) 2023-01-26 02:56:20 +01:00
Stan Triepels 264607f59c Bump translations to latest changes (#63) 2023-01-26 02:49:46 +01:00
msabatierandStan Triepels 17c1609f10 Add meaningfull process titles with currently running task name (#57)
* Customize process names (in ps/top) and add task name in logs

* Increase severity of reincarnate log messages and add task name

* Document setproctitle optional dependency

Co-authored-by: Marc Sabatier <37879561+msabatier@users.noreply.github.com>
Co-authored-by: Stan Triepels <1939656+GDay@users.noreply.github.com>
2023-01-26 02:21:56 +01:00
msabatierandMarc Sabatier 650c3b1524 Fix use of database router for write queries and remove Conf.HAS_REPLICA (#61)
Co-authored-by: Marc Sabatier
2023-01-18 02:12:13 +01:00
msabatierandMarc Sabatier a013591de5 Add intended_date_kwarg field to Schedule (#62)
Co-authored-by: Marc Sabatier <marc.sabatier@eco-adapt.com>
2023-01-17 22:52:11 +01:00
msabatier 865b1a5ba8 Change task timeout logic to have now() as execution time (#58) 2023-01-11 01:48:57 +01:00
msabatier 8cd1028391 More explicit log messages in exception handling (#59) 2023-01-11 00:36:35 +01:00
20 changed files with 1503 additions and 1262 deletions
+20
View File
@@ -2,6 +2,26 @@
## [Unreleased](https://github.com/GDay/django-q2/tree/HEAD) ## [Unreleased](https://github.com/GDay/django-q2/tree/HEAD)
## [v1.4.11](https://github.com/GDay/django-q2/tree/v1.4.11) (2023-01-30)
**Merged pull requests:**
- Fix missing setup file for "No matching distribution" error https://github.com/GDay/django-q2/pull/69
- Remove custom build (revert to auto create setup file) https://github.com/GDay/django-q2/pull/70
## [v1.4.10](https://github.com/GDay/django-q2/tree/v1.4.10) (2023-01-26)
**Merged pull requests:**
- Adding translation mo files automatically on build https://github.com/GDay/django-q2/pull/65
- Update all dependencies https://github.com/GDay/django-q2/pull/64
- Bump translations to latest changes https://github.com/GDay/django-q2/pull/63
- Add meaningfull process titles with currently running task name https://github.com/GDay/django-q2/pull/57
- Fix use of database router for write queries and remove Conf.HAS_REPLICA https://github.com/GDay/django-q2/pull/61
- Add intended_date_kwarg field to Schedule https://github.com/GDay/django-q2/pull/62
- Change task timeout logic to have now() as execution time https://github.com/GDay/django-q2/pull/58
- More explicit log messages in exception handling https://github.com/GDay/django-q2/pull/59
## [v1.4.9](https://github.com/GDay/django-q2/tree/v1.4.9) (2022-12-22) ## [v1.4.9](https://github.com/GDay/django-q2/tree/v1.4.9) (2022-12-22)
**Merged pull requests:** **Merged pull requests:**
+9
View File
@@ -0,0 +1,9 @@
import subprocess
def generate_mo_files():
subprocess.run(["django-admin", "compilemessages"])
if __name__ == "__main__":
generate_mo_files()
+1 -1
View File
@@ -1,6 +1,6 @@
import django import django
VERSION = (1, 4, 9) VERSION = (1, 4, 11)
if django.VERSION < (3, 2): if django.VERSION < (3, 2):
default_app_config = "django_q.apps.DjangoQConfig" default_app_config = "django_q.apps.DjangoQConfig"
+6 -6
View File
@@ -11,7 +11,7 @@ from django_q.models import OrmQ
def _timeout(): def _timeout():
return timezone.now() - timedelta(seconds=Conf.RETRY) return timezone.now() + timedelta(seconds=Conf.RETRY)
class ORM(Broker): class ORM(Broker):
@@ -31,13 +31,13 @@ class ORM(Broker):
def queue_size(self) -> int: def queue_size(self) -> int:
return ( return (
self.get_connection() self.get_connection()
.filter(key=self.list_key, lock__lte=_timeout()) .filter(key=self.list_key, lock__lte=timezone.now())
.count() .count()
) )
def lock_size(self) -> int: def lock_size(self) -> int:
return ( return (
self.get_connection().filter(key=self.list_key, lock__gt=_timeout()).count() self.get_connection().filter(key=self.list_key, lock__gt=timezone.now()).count()
) )
def purge_queue(self): def purge_queue(self):
@@ -56,12 +56,12 @@ class ORM(Broker):
def enqueue(self, task): def enqueue(self, task):
package = self.get_connection().create( package = self.get_connection().create(
key=self.list_key, payload=task, lock=_timeout() key=self.list_key, payload=task, lock=timezone.now()
) )
return package.pk return package.pk
def dequeue(self): def dequeue(self):
tasks = self.get_connection().filter(key=self.list_key, lock__lt=_timeout())[ tasks = self.get_connection().filter(key=self.list_key, lock__lt=timezone.now())[
0 : Conf.BULK # noqa: E203 0 : Conf.BULK # noqa: E203
] ]
if tasks: if tasks:
@@ -70,7 +70,7 @@ class ORM(Broker):
if ( if (
self.get_connection() self.get_connection()
.filter(id=task.id, lock=task.lock) .filter(id=task.id, lock=task.lock)
.update(lock=timezone.now()) .update(lock=_timeout())
): ):
task_list.append((task.pk, task.payload)) task_list.append((task.pk, task.payload))
# else don't process, as another cluster has been faster than us on # else don't process, as another cluster has been faster than us on
+76 -41
View File
@@ -20,7 +20,6 @@ except core.exceptions.AppRegistryNotReady:
django.setup() django.setup()
from django.conf import settings
from django.utils import timezone from django.utils import timezone
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
@@ -34,6 +33,7 @@ from django_q.conf import (
get_ppid, get_ppid,
logger, logger,
psutil, psutil,
setproctitle,
resource, resource,
) )
from django_q.humanhash import humanize from django_q.humanhash import humanize
@@ -60,6 +60,8 @@ class Cluster:
signal.signal(signal.SIGINT, self.sig_handler) signal.signal(signal.SIGINT, self.sig_handler)
def start(self) -> int: def start(self) -> int:
if setproctitle:
setproctitle.setproctitle(f"qcluster {current_process().name} {self.name}")
# Start Sentinel # Start Sentinel
self.stop_event = Event() self.stop_event = Event()
self.start_event = Event() self.start_event = Event()
@@ -218,13 +220,13 @@ class Sentinel:
db.connections.close_all() db.connections.close_all()
if process == self.monitor: if process == self.monitor:
self.monitor = self.spawn_monitor() self.monitor = self.spawn_monitor()
logger.error( logger.critical(
_("reincarnated monitor %(name)s after sudden death") _("reincarnated monitor %(name)s after sudden death")
% {"name": process.name} % {"name": process.name}
) )
elif process == self.pusher: elif process == self.pusher:
self.pusher = self.spawn_pusher() self.pusher = self.spawn_pusher()
logger.error( logger.critical(
_("reincarnated pusher %(name)s after sudden death") _("reincarnated pusher %(name)s after sudden death")
% {"name": process.name} % {"name": process.name}
) )
@@ -234,15 +236,30 @@ class Sentinel:
if process.timer.value == 0: if process.timer.value == 0:
# only need to terminate on timeout, otherwise we risk destabilizing # only need to terminate on timeout, otherwise we risk destabilizing
# the queues # the queues
task_name = ""
if psutil:
try:
process_name = psutil.Process(process.pid).name()
name_splits = process_name.split(" ")
task_name = name_splits[3] if len(name_splits) >= 4 and name_splits[2] == "processing" else ""
except psutil.NoSuchProcess:
pass
process.terminate() process.terminate()
logger.warning( if task_name:
_("reincarnated worker %(name)s after timeout") msg = (
% {"name": process.name} _("reincarnated worker %(name)s after timeout while processing task %(task_name)s")
) % {"name": process.name, "task_name": task_name}
)
else:
msg = (
_("reincarnated worker %(name)s after timeout")
% {"name": process.name}
)
logger.critical(msg)
elif int(process.timer.value) == -2: elif int(process.timer.value) == -2:
logger.info(_("recycled worker %(name)s") % {"name": process.name}) logger.info(_("recycled worker %(name)s") % {"name": process.name})
else: else:
logger.error( logger.critical(
_("reincarnated worker %(name)s after death") _("reincarnated worker %(name)s after death")
% {"name": process.name} % {"name": process.name}
) )
@@ -359,14 +376,17 @@ def pusher(task_queue: Queue, event: Event, broker: Broker = None):
""" """
if not broker: if not broker:
broker = get_broker() broker = get_broker()
proc_name = current_process().name
if setproctitle:
setproctitle.setproctitle(f"qcluster {proc_name} pusher")
logger.info( logger.info(
_("%(process_name)s pushing tasks at %(id)s") _("%(name)s pushing tasks at %(id)s")
% {"process_name": current_process().name, "id": current_process().pid} % {"name": proc_name, "id": current_process().pid}
) )
while True: while True:
try: try:
task_set = broker.dequeue() task_set = broker.dequeue()
except Exception as e: except Exception:
logger.exception("Failed to pull task from broker") logger.exception("Failed to pull task from broker")
# broker probably crashed. Let the sentinel handle it. # broker probably crashed. Let the sentinel handle it.
sleep(10) sleep(10)
@@ -377,7 +397,7 @@ def pusher(task_queue: Queue, event: Event, broker: Broker = None):
# unpack the task # unpack the task
try: try:
task = SignedPackage.loads(task[1]) task = SignedPackage.loads(task[1])
except (TypeError, BadSignature) as e: except (TypeError, BadSignature):
logger.exception("Failed to push task to queue") logger.exception("Failed to push task to queue")
broker.fail(ack_id) broker.fail(ack_id)
continue continue
@@ -399,9 +419,11 @@ def monitor(result_queue: Queue, broker: Broker = None):
""" """
if not broker: if not broker:
broker = get_broker() broker = get_broker()
name = current_process().name proc_name = current_process().name
if setproctitle:
setproctitle.setproctitle(f"qcluster {proc_name} monitor")
logger.info( logger.info(
_("%(name)s monitoring at %(id)s") % {"name": name, "id": current_process().pid} _("%(name)s monitoring at %(id)s") % {"name": proc_name, "id": current_process().pid}
) )
for task in iter(result_queue.get, "STOP"): for task in iter(result_queue.get, "STOP"):
# save the result # save the result
@@ -433,7 +455,7 @@ def monitor(result_queue: Queue, broker: Broker = None):
"task_result": task["result"], "task_result": task["result"],
} }
) )
logger.info(_("%(name)s stopped monitoring results") % {"name": name}) logger.info(_("%(name)s stopped monitoring results") % {"name": proc_name})
def worker( def worker(
@@ -452,6 +474,8 @@ def worker(
_("%(proc_name)s ready for work at %(id)s") _("%(proc_name)s ready for work at %(id)s")
% {"proc_name": proc_name, "id": current_process().pid} % {"proc_name": proc_name, "id": current_process().pid}
) )
if setproctitle:
setproctitle.setproctitle(f"qcluster {proc_name} idle")
task_count = 0 task_count = 0
if timeout is None: if timeout is None:
timeout = -1 timeout = -1
@@ -460,20 +484,33 @@ def worker(
result = None result = None
timer.value = -1 # Idle timer.value = -1 # Idle
task_count += 1 task_count += 1
f = task["func"]
# Log task creation and set process name
# Get the function from the task # Get the function from the task
func = task["func"] func_name = get_func_repr(f)
func_name = get_func_repr(func) task_name = task["name"]
logger.info( task_desc = (
_("%(proc_name)s processing '%(func_name)s' (%(task_name)s)") _("%(proc_name)s processing %(task_name)s '%(func_name)s'")
% { % {
"proc_name": proc_name, "proc_name": proc_name,
"func_name": func_name, "func_name": func_name,
"task_name": task["name"], "task_name": task_name,
} }
) )
f = task["func"] if "group" in task:
task_desc += f" [{task['group']}]"
logger.info(task_desc)
if setproctitle:
proc_title = f"qcluster {proc_name} processing {task_name} '{func_name}'"
if "group" in task:
proc_title += f" [{task['group']}]"
setproctitle.setproctitle(proc_title)
# if it's not an instance try to get it from the string # if it's not an instance try to get it from the string
if not callable(task["func"]): if not callable(f):
# locate() returns None if f cannot be loaded
f = pydoc.locate(f) f = pydoc.locate(f)
close_old_django_connections() close_old_django_connections()
timer_value = task.pop("timeout", timeout) timer_value = task.pop("timeout", timeout)
@@ -482,6 +519,9 @@ def worker(
# execute the payload # execute the payload
timer.value = timer_value # Busy timer.value = timer_value # Busy
try: try:
if f is None:
# raise a meaningfull error if task["func"] is not a valid function
raise ValueError(f"Function {task['func']} is not defined")
res = f(*task["args"], **task["kwargs"]) res = f(*task["args"], **task["kwargs"])
result = (res, True) result = (res, True)
except Exception as e: except Exception as e:
@@ -497,6 +537,8 @@ def worker(
task["stopped"] = timezone.now() task["stopped"] = timezone.now()
result_queue.put(task) result_queue.put(task)
timer.value = -1 # Idle timer.value = -1 # Idle
if setproctitle:
setproctitle.setproctitle(f"qcluster {proc_name} idle")
# Recycle # Recycle
if task_count == Conf.RECYCLE or rss_check(): if task_count == Conf.RECYCLE or rss_check():
timer.value = -2 # Recycled timer.value = -2 # Recycled
@@ -537,12 +579,7 @@ def save_task(task, broker: Broker):
value = get_func_repr(value) value = get_func_repr(value)
filters[Conf.SAVE_LIMIT_PER] = value filters[Conf.SAVE_LIMIT_PER] = value
database_to_use = ( with db.transaction.atomic(using=db.router.db_for_write(Success)):
{"using": Conf.ORM if Conf.ORM else Schedule.objects.db}
if not Conf.HAS_REPLICA
else {}
)
with db.transaction.atomic(**database_to_use):
last = Success.objects.filter(**filters).select_for_update().last() last = Success.objects.filter(**filters).select_for_update().last()
if ( if (
task["success"] task["success"]
@@ -584,8 +621,8 @@ def save_task(task, broker: Broker):
success=task["success"], success=task["success"],
attempt_count=1, attempt_count=1,
) )
except Exception as e: except Exception:
logger.error(e) logger.exception("Could not save task result")
def save_cached(task, broker: Broker): def save_cached(task, broker: Broker):
@@ -636,8 +673,8 @@ def save_cached(task, broker: Broker):
) )
# save the task # save the task
broker.cache.set(task_key, SignedPackage.dumps(task), timeout) broker.cache.set(task_key, SignedPackage.dumps(task), timeout)
except Exception as e: except Exception:
logger.error(e) logger.exception("Could not save task result")
def scheduler(broker: Broker = None): def scheduler(broker: Broker = None):
@@ -648,12 +685,7 @@ def scheduler(broker: Broker = None):
broker = get_broker() broker = get_broker()
close_old_django_connections() close_old_django_connections()
try: try:
database_to_use = ( with db.transaction.atomic(using=db.router.db_for_write(Schedule)):
{"using": Conf.ORM if Conf.ORM else Schedule.objects.db}
if not Conf.HAS_REPLICA
else {}
)
with db.transaction.atomic(**database_to_use):
for s in ( for s in (
Schedule.objects.select_for_update() Schedule.objects.select_for_update()
.exclude(repeats=0) .exclude(repeats=0)
@@ -687,6 +719,8 @@ def scheduler(broker: Broker = None):
if type(args) != tuple: if type(args) != tuple:
args = (args,) args = (args,)
q_options = kwargs.get("q_options", {}) q_options = kwargs.get("q_options", {})
if s.intended_date_kwarg:
kwargs[s.intended_date_kwarg] = s.next_run.isoformat()
if s.hook: if s.hook:
q_options["hook"] = s.hook q_options["hook"] = s.hook
# set up the next run time # set up the next run time
@@ -725,11 +759,12 @@ def scheduler(broker: Broker = None):
else: else:
logger.info( logger.info(
_( _(
"%(process_name)s created a task from schedule " "%(process_name)s created task %(task_name)s from schedule "
"[%(schedule)s]" "[%(schedule)s]"
) )
% { % {
"process_name": current_process().name, "process_name": current_process().name,
"task_name": humanize(s.task),
"schedule": s.name or s.id, "schedule": s.name or s.id,
} }
) )
@@ -742,8 +777,8 @@ def scheduler(broker: Broker = None):
s.repeats = 0 s.repeats = 0
# save the schedule # save the schedule
s.save() s.save()
except Exception as e: except Exception:
logger.error(e) logger.exception("Could not create task from schedule")
def close_old_django_connections(): def close_old_django_connections():
+5 -3
View File
@@ -27,6 +27,11 @@ try:
except ModuleNotFoundError: except ModuleNotFoundError:
resource = None resource = None
try:
import setproctitle
except ModuleNotFoundError:
setproctitle = None
class Conf: class Conf:
""" """
@@ -54,9 +59,6 @@ class Conf:
# ORM broker # ORM broker
ORM = conf.get("orm", None) ORM = conf.get("orm", None)
# ORM support for read/write replicas
HAS_REPLICA = conf.get("has_replica", False)
# Custom broker class # Custom broker class
BROKER_CLASS = conf.get("broker_class", None) BROKER_CLASS = conf.get("broker_class", None)
+137 -122
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-12 01:47+0000\n" "POT-Creation-Date: 2023-01-26 01:38+0000\n"
"PO-Revision-Date: 2018-08-05 18:28+0200\n" "PO-Revision-Date: 2018-08-05 18:28+0200\n"
"Last-Translator: Jonas Winkler\n" "Last-Translator: Jonas Winkler\n"
"Language-Team: \n" "Language-Team: \n"
@@ -17,177 +17,176 @@ msgstr ""
"X-Generator: Poedit 2.1.1\n" "X-Generator: Poedit 2.1.1\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: django_q/admin.py:43 #: admin.py:43
msgid "Resubmit selected tasks to queue" msgid "Resubmit selected tasks to queue"
msgstr "Ausgewählte Aufgaben erneut ausführen" msgstr "Ausgewählte Aufgaben erneut ausführen"
#: django_q/admin.py:98 django_q/models.py:228 #: admin.py:107 models.py:293
#, fuzzy #, fuzzy
#| msgid "Success" #| msgid "Success"
msgid "success" msgid "success"
msgstr "erfolg" msgstr "erfolg"
#: django_q/admin.py:109 django_q/models.py:230 #: admin.py:119 models.py:295
msgid "last_run" msgid "last_run"
msgstr "" msgstr ""
#: django_q/cluster.py:77 #: cluster.py:79
#, python-format #, python-format
msgid "Q Cluster %(name)s starting." msgid "Q Cluster %(name)s starting."
msgstr "Q-Cluster %(name)s wird gestartet." msgstr "Q-Cluster %(name)s wird gestartet."
#: django_q/cluster.py:85 #: cluster.py:87
#, fuzzy, python-format #, fuzzy, python-format
#| msgid "Q Cluster-{} stopping." #| msgid "Q Cluster-{} stopping."
msgid "Q Cluster %(name)s stopping." msgid "Q Cluster %(name)s stopping."
msgstr "Q-Cluster {name} wird gestoppt." msgstr "Q-Cluster {name} wird gestoppt."
#: django_q/cluster.py:88 #: cluster.py:90
#, python-format #, python-format
msgid "Q Cluster %(name)s has stopped." msgid "Q Cluster %(name)s has stopped."
msgstr "Q-Cluster %(name)s wurde gestoppt." msgstr "Q-Cluster %(name)s wurde gestoppt."
#: django_q/cluster.py:96 #: cluster.py:97
#, python-format #, python-format
msgid "%(name)s got signal %(signal)s" msgid "%(name)s got signal %(signal)s"
msgstr "%(name)s erhielt das Signal %(signal)s" msgstr "%(name)s erhielt das Signal %(signal)s"
#: django_q/cluster.py:219 #: cluster.py:224
#, python-format #, python-format
msgid "reincarnated monitor %(name)s after sudden death" msgid "reincarnated monitor %(name)s after sudden death"
msgstr "Monitor %(name)s wurde nach unerwartetem Absturz neu gestartet" msgstr "Monitor %(name)s wurde nach unerwartetem Absturz neu gestartet"
#: django_q/cluster.py:222 #: cluster.py:230
#, python-format #, python-format
msgid "reincarnated pusher %(name)s after sudden death" msgid "reincarnated pusher %(name)s after sudden death"
msgstr "Pusher %(name)s wurde nach unerwartetem Absturz neu gestartet" msgstr "Pusher %(name)s wurde nach unerwartetem Absturz neu gestartet"
#: django_q/cluster.py:229 #: cluster.py:250
#, fuzzy, python-format
#| msgid "reincarnated worker %(name)s after timeout"
msgid ""
"reincarnated worker %(name)s after timeout while processing task "
"%(task_name)s"
msgstr "Worker %(name)s wurde nach Zeitüberschreitung neu gestartet"
#: cluster.py:255
#, python-format #, python-format
msgid "reincarnated worker %(name)s after timeout" msgid "reincarnated worker %(name)s after timeout"
msgstr "Worker %(name)s wurde nach Zeitüberschreitung neu gestartet" msgstr "Worker %(name)s wurde nach Zeitüberschreitung neu gestartet"
#: django_q/cluster.py:231 #: cluster.py:260
#, python-format #, python-format
msgid "recycled worker %(name)s" msgid "recycled worker %(name)s"
msgstr "Worker %(name)s wurde wiederverwendet" msgstr "Worker %(name)s wurde wiederverwendet"
#: django_q/cluster.py:233 #: cluster.py:263
#, python-format #, python-format
msgid "reincarnated worker %(name)s after death" msgid "reincarnated worker %(name)s after death"
msgstr "Worker %(name)s wurde nach unerwartetem Absturz neu gestartet" msgstr "Worker %(name)s wurde nach unerwartetem Absturz neu gestartet"
#: django_q/cluster.py:256 #: cluster.py:287
#, python-format #, python-format
msgid "%(name)s guarding cluster %(cluster_name)s" msgid "%(name)s guarding cluster %(cluster_name)s"
msgstr "%(name)s beschützt das Cluster %(cluster_name)s" msgstr "%(name)s beschützt das Cluster %(cluster_name)s"
#: django_q/cluster.py:261 #: cluster.py:296
#, python-format #, python-format
msgid "Q Cluster %(cluster_name)s running." msgid "Q Cluster %(cluster_name)s running."
msgstr "Q-Cluster %(cluster_name)s läuft." msgstr "Q-Cluster %(cluster_name)s läuft."
#: django_q/cluster.py:295 #: cluster.py:332
#, python-format #, python-format
msgid "%(name)s stopping cluster processes" msgid "%(name)s stopping cluster processes"
msgstr "%(name)s hält Cluster-Prozesse an" msgstr "%(name)s hält Cluster-Prozesse an"
#: django_q/cluster.py:320 #: cluster.py:357
#, python-format #, python-format
msgid "%(name)s waiting for the monitor." msgid "%(name)s waiting for the monitor."
msgstr "%(name)s wartet auf den Monitor." msgstr "%(name)s wartet auf den Monitor."
#: django_q/cluster.py:342 #: cluster.py:383
#, python-format #, fuzzy, python-format
msgid "%(process_name)s pushing tasks at %(id)s" #| msgid "%(process_name)s pushing tasks at %(id)s"
msgid "%(name)s pushing tasks at %(id)s"
msgstr "%(process_name)s veröffentlicht Aufagaben auf %(id)s" msgstr "%(process_name)s veröffentlicht Aufagaben auf %(id)s"
#: django_q/cluster.py:363 #: cluster.py:407
#, python-format #, python-format
msgid "queueing from %(list_key)s" msgid "queueing from %(list_key)s"
msgstr "Einreihen von %(list_key)s" msgstr "Einreihen von %(list_key)s"
#: django_q/cluster.py:366 #: cluster.py:411
#, python-format #, python-format
msgid "%(name)s stopped pushing tasks" msgid "%(name)s stopped pushing tasks"
msgstr "%(name)s veröffentlicht keine Aufgaben mehr" msgstr "%(name)s veröffentlicht keine Aufgaben mehr"
#: django_q/cluster.py:378 #: cluster.py:426
#, python-format #, python-format
msgid "%(name)s monitoring at %(id)s" msgid "%(name)s monitoring at %(id)s"
msgstr "%(name)s beobachtet auf %(id)s" msgstr "%(name)s beobachtet auf %(id)s"
#: django_q/cluster.py:395 #: cluster.py:445
#, python-format #, python-format
msgid "Processed '%(info_name)s' (%(task_name)s)" msgid "Processed '%(info_name)s' (%(task_name)s)"
msgstr "[%(task_name)s] - '%(info_name)s' wurde verarbeitet" msgstr "[%(task_name)s] - '%(info_name)s' wurde verarbeitet"
#: django_q/cluster.py:398 #: cluster.py:451
#, python-format #, python-format
msgid "Failed '%(info_name)s' (%(task_name)s) - %(task_result)s" msgid "Failed '%(info_name)s' (%(task_name)s) - %(task_result)s"
msgstr "'%(info_name)s' (%(task_name)s) ist fehlgeschlagen - %(task_result)s" msgstr "'%(info_name)s' (%(task_name)s) ist fehlgeschlagen - %(task_result)s"
#: django_q/cluster.py:399 #: cluster.py:458
#, python-format #, python-format
msgid "%(name)s stopped monitoring results" msgid "%(name)s stopped monitoring results"
msgstr "%(name)s überwacht keine Ergebnisse mehr" msgstr "%(name)s überwacht keine Ergebnisse mehr"
#: django_q/cluster.py:413 #: cluster.py:474
#, python-format #, python-format
msgid "%(proc_name)s ready for work at %(id)s" msgid "%(proc_name)s ready for work at %(id)s"
msgstr "%(proc_name)s ist bereit für Arbeit auf %(id)s" msgstr "%(proc_name)s ist bereit für Arbeit auf %(id)s"
#: django_q/cluster.py:425 #: cluster.py:494
#, python-format #, fuzzy, python-format
msgid "%(proc_name)s processing '%(func_name)s' (%(task_name)s)" #| msgid "%(proc_name)s processing '%(func_name)s' (%(task_name)s)"
msgid "%(proc_name)s processing %(task_name)s '%(func_name)s'"
msgstr "%(proc_name)s verarbeitet '%(func_name)s' (%(task_name)s)" msgstr "%(proc_name)s verarbeitet '%(func_name)s' (%(task_name)s)"
#: django_q/cluster.py:440 #: cluster.py:546
#, python-format
msgid ""
"Could not process '%(func_name)s'. Check the location of the function and "
"the args/kwargs."
msgstr ""
"Konnte '%(func_name)s' nicht verarbeiten. Überprüfen Sie den Ort der "
"Funktion und die args/kwargs."
#: django_q/cluster.py:456
#, python-format #, python-format
msgid "%(proc_name)s stopped doing work" msgid "%(proc_name)s stopped doing work"
msgstr "%(proc_name)s hat die Arbeit beendet" msgstr "%(proc_name)s hat die Arbeit beendet"
#: django_q/cluster.py:649 django_q/models.py:144 #: cluster.py:751
msgid "Please install croniter to enable cron expressions"
msgstr "Bitte installieren Sie croniter, um Cron-Ausdrücke zu aktivieren"
#: django_q/cluster.py:672
#, python-format #, python-format
msgid "%(process_name)s failed to create a task from schedule [%(schedule)s]" msgid "%(process_name)s failed to create a task from schedule [%(schedule)s]"
msgstr "" msgstr ""
"%(process_name)s konnte keine Aufgabe von Zeitplan [%(schedule)s] erstellen" "%(process_name)s konnte keine Aufgabe von Zeitplan [%(schedule)s] erstellen"
#: django_q/cluster.py:678 #: cluster.py:762
#, python-format #, fuzzy, python-format
msgid "%(process_name)s created a task from schedule [%(schedule)s]" #| msgid "%(process_name)s created a task from schedule [%(schedule)s]"
msgid ""
"%(process_name)s created task %(task_name)s from schedule [%(schedule)s]"
msgstr "" msgstr ""
"%(process_name)s hat eine Aufgabe des Zeitplans [%(schedule)s] erstellt" "%(process_name)s hat eine Aufgabe des Zeitplans [%(schedule)s] erstellt"
#: django_q/cluster.py:718 #: cluster.py:808
msgid "Skipping cpu affinity because psutil was not found." msgid "Skipping cpu affinity because psutil was not found."
msgstr "Cpu-Affinität wird übersprungen, da psutil nicht gefunden wurde." msgstr "Cpu-Affinität wird übersprungen, da psutil nicht gefunden wurde."
#: django_q/cluster.py:723 #: cluster.py:813
msgid "Faking cpu affinity because it is not supported on this platform" msgid "Faking cpu affinity because it is not supported on this platform"
msgstr "" msgstr ""
"Vortäuschen von CPU-Affinität, da diese auf dieser Plattform nicht " "Vortäuschen von CPU-Affinität, da diese auf dieser Plattform nicht "
"unterstützt wird" "unterstützt wird"
#: django_q/cluster.py:744 #: cluster.py:835
#, python-format #, python-format
msgid "%(pid)s will use cpu %(affinity)s" msgid "%(pid)s will use cpu %(affinity)s"
msgstr "%(pid)s wird CPU %(affinity)s benutzen" msgstr "%(pid)s wird CPU %(affinity)s benutzen"
#: django_q/conf.py:85 #: conf.py:90
#, python-format #, python-format
msgid "" msgid ""
"SAVE_LIMIT_PER (%(option)s) is not a valid option. Options are: 'group', " "SAVE_LIMIT_PER (%(option)s) is not a valid option. Options are: 'group', "
@@ -197,291 +196,307 @@ msgstr ""
"'group', 'name', 'func' und None. Standard ist None." "'group', 'name', 'func' und None. Standard ist None."
#. Translators: Cluster status descriptions #. Translators: Cluster status descriptions
#: django_q/conf.py:194 #: conf.py:207
msgid "Starting" msgid "Starting"
msgstr "Wird gestartet" msgstr "Wird gestartet"
#: django_q/conf.py:195 #: conf.py:208
msgid "Working" msgid "Working"
msgstr "Arbeitet" msgstr "Arbeitet"
#: django_q/conf.py:196 #: conf.py:209
msgid "Idle" msgid "Idle"
msgstr "Leerlauf" msgstr "Leerlauf"
#: django_q/conf.py:197 #: conf.py:210
msgid "Stopped" msgid "Stopped"
msgstr "Gestoppt" msgstr "Gestoppt"
#: django_q/conf.py:198 #: conf.py:211
msgid "Stopping" msgid "Stopping"
msgstr "Wird gestoppt" msgstr "Wird gestoppt"
#. Translators: help text for qcluster management command #. Translators: help text for qcluster management command
#: django_q/management/commands/qcluster.py:9 #: management/commands/qcluster.py:9
msgid "Starts a Django Q Cluster." msgid "Starts a Django Q Cluster."
msgstr "Startet ein Django-Q-Cluster." msgstr "Startet ein Django-Q-Cluster."
#. Translators: help text for qinfo management command #. Translators: help text for qinfo management command
#: django_q/management/commands/qinfo.py:11 #: management/commands/qinfo.py:11
msgid "General information over all clusters." msgid "General information over all clusters."
msgstr "Allgemeine Informationen über alle Cluster" msgstr "Allgemeine Informationen über alle Cluster"
#. Translators: help text for qmemory management command #. Translators: help text for qmemory management command
#: django_q/management/commands/qmemory.py:9 #: management/commands/qmemory.py:9
msgid "Monitors Q Cluster memory usage" msgid "Monitors Q Cluster memory usage"
msgstr "Überwacht die Speichernutzung von Q Cluster" msgstr "Überwacht die Speichernutzung von Q Cluster"
#. Translators: help text for qmonitor management command #. Translators: help text for qmonitor management command
#: django_q/management/commands/qmonitor.py:9 #: management/commands/qmonitor.py:9
msgid "Monitors Q Cluster activity" msgid "Monitors Q Cluster activity"
msgstr "Q-Cluster aktiv überwachen" msgstr "Q-Cluster aktiv überwachen"
#: django_q/models.py:119 #: models.py:125
msgid "Successful task" msgid "Successful task"
msgstr "Erfolgreiche Aufgabe" msgstr "Erfolgreiche Aufgabe"
#: django_q/models.py:120 #: models.py:126
msgid "Successful tasks" msgid "Successful tasks"
msgstr "Erfolgreiche Aufgaben" msgstr "Erfolgreiche Aufgaben"
#: django_q/models.py:135 #: models.py:141
msgid "Failed task" msgid "Failed task"
msgstr "Fehlgeschlagene Aufgabe" msgstr "Fehlgeschlagene Aufgabe"
#: django_q/models.py:136 #: models.py:142
msgid "Failed tasks" msgid "Failed tasks"
msgstr "Fehlgeschlagene Aufgaben" msgstr "Fehlgeschlagene Aufgaben"
#: django_q/models.py:160 #: models.py:150 models.py:234
msgid "Please install croniter to enable cron expressions"
msgstr "Bitte installieren Sie croniter, um Cron-Ausdrücke zu aktivieren"
#: models.py:170
msgid "e.g. 1, 2, 'John'" msgid "e.g. 1, 2, 'John'"
msgstr "zum Beispiel 1, 2, 'John'" msgstr "zum Beispiel 1, 2, 'John'"
#: django_q/models.py:162 #: models.py:172
msgid "e.g. x=1, y=2, name='John'" msgid "e.g. x=1, y=2, name='John'"
msgstr "zum Beispiel x=1, y=2, name='John'" msgstr "zum Beispiel x=1, y=2, name='John'"
#: django_q/models.py:176 #: models.py:186
msgid "Once" msgid "Once"
msgstr "Einmal" msgstr "Einmal"
#: django_q/models.py:177 #: models.py:187
msgid "Minutes" msgid "Minutes"
msgstr "Minuten" msgstr "Minuten"
#: django_q/models.py:178 #: models.py:188
msgid "Hourly" msgid "Hourly"
msgstr "Stündlich" msgstr "Stündlich"
#: django_q/models.py:179 #: models.py:189
msgid "Daily" msgid "Daily"
msgstr "Täglich" msgstr "Täglich"
#: django_q/models.py:180 #: models.py:190
msgid "Weekly" msgid "Weekly"
msgstr "Wöchentlich" msgstr "Wöchentlich"
#: django_q/models.py:181 #: models.py:191
msgid "Biweekly" msgid "Biweekly"
msgstr "Zweiwöchentlich" msgstr "Zweiwöchentlich"
#: django_q/models.py:182 #: models.py:192
msgid "Monthly" msgid "Monthly"
msgstr "Monatlich" msgstr "Monatlich"
#: django_q/models.py:183 #: models.py:193
msgid "Bimonthly" msgid "Bimonthly"
msgstr "Zweimonatlich" msgstr "Zweimonatlich"
#: django_q/models.py:184 #: models.py:194
msgid "Quarterly" msgid "Quarterly"
msgstr "Vierteljährlich" msgstr "Vierteljährlich"
#: django_q/models.py:185 #: models.py:195
msgid "Yearly" msgid "Yearly"
msgstr "Jährlich" msgstr "Jährlich"
#: django_q/models.py:186 #: models.py:196
msgid "Cron" msgid "Cron"
msgstr "Cron" msgstr "Cron"
#: django_q/models.py:189 #: models.py:199
msgid "Schedule Type" msgid "Schedule Type"
msgstr "Zeitplan-Typ" msgstr "Zeitplan-Typ"
#: django_q/models.py:192 #: models.py:202
msgid "Number of minutes for the Minutes type" msgid "Number of minutes for the Minutes type"
msgstr "Anzahl Minuten für den Typ 'Minuten'" msgstr "Anzahl Minuten für den Typ 'Minuten'"
#: django_q/models.py:195 #: models.py:205
msgid "Repeats" msgid "Repeats"
msgstr "Wiederhohlungen" msgstr "Wiederhohlungen"
#: django_q/models.py:195 #: models.py:205
msgid "n = n times, -1 = forever" msgid "n = n times, -1 = forever"
msgstr "n = n mal, -1 = für immer" msgstr "n = n mal, -1 = für immer"
#: django_q/models.py:198 #: models.py:208
msgid "Next Run" msgid "Next Run"
msgstr "Nächste Ausführung" msgstr "Nächste Ausführung"
#: django_q/models.py:205 #: models.py:215
msgid "Cron expression" msgid "Cron expression"
msgstr "Cron-Ausdruck" msgstr "Cron-Ausdruck"
#: django_q/models.py:235 #: models.py:224
msgid "Name of kwarg to pass intended schedule date"
msgstr "Name des zu passierenden Kwargs vorgesehenes Datum"
#: models.py:299
msgid "Scheduled task" msgid "Scheduled task"
msgstr "Geplante Aufgabe" msgstr "Geplante Aufgabe"
#: django_q/models.py:236 #: models.py:300
msgid "Scheduled tasks" msgid "Scheduled tasks"
msgstr "Geplante Aufgaben" msgstr "Geplante Aufgaben"
#: django_q/models.py:262 #: models.py:326
msgid "Queued task" msgid "Queued task"
msgstr "Eingereihte Aufgabe" msgstr "Eingereihte Aufgabe"
#: django_q/models.py:263 #: models.py:327
msgid "Queued tasks" msgid "Queued tasks"
msgstr "Eingereihte Aufgaben" msgstr "Eingereihte Aufgaben"
#: django_q/monitor.py:62 django_q/monitor.py:339 #: monitor.py:64 monitor.py:348
msgid "Host" msgid "Host"
msgstr "Host" msgstr "Host"
#: django_q/monitor.py:66 django_q/monitor.py:343 django_q/monitor.py:450 #: monitor.py:68 monitor.py:352 monitor.py:459
msgid "Id" msgid "Id"
msgstr "Id" msgstr "Id"
#: django_q/monitor.py:70 #: monitor.py:72
msgid "State" msgid "State"
msgstr "Status" msgstr "Status"
#: django_q/monitor.py:74 #: monitor.py:76
msgid "Pool" msgid "Pool"
msgstr "Pool" msgstr "Pool"
#: django_q/monitor.py:78 #: monitor.py:80
msgid "TQ" msgid "TQ"
msgstr "TQ" msgstr "TQ"
#: django_q/monitor.py:82 #: monitor.py:84
msgid "RQ" msgid "RQ"
msgstr "RQ" msgstr "RQ"
#: django_q/monitor.py:86 #: monitor.py:88
msgid "RC" msgid "RC"
msgstr "RC" msgstr "RC"
#: django_q/monitor.py:90 #: monitor.py:92
msgid "Up" msgid "Up"
msgstr "Up" msgstr "Up"
#: django_q/monitor.py:170 django_q/monitor.py:279 #: monitor.py:172 monitor.py:286
msgid "Queued" msgid "Queued"
msgstr "Eingereiht" msgstr "Eingereiht"
#: django_q/monitor.py:178 #: monitor.py:180
msgid "Success" msgid "Success"
msgstr "Erfolg" msgstr "Erfolg"
#: django_q/monitor.py:188 django_q/monitor.py:287 #: monitor.py:190 monitor.py:294
msgid "Failures" msgid "Failures"
msgstr "Fehlschläge" msgstr "Fehlschläge"
#: django_q/monitor.py:199 django_q/monitor.py:485 #: monitor.py:201 monitor.py:498
msgid "[Press q to quit]" msgid "[Press q to quit]"
msgstr "[Drücken Sie q zum Beenden]" msgstr "[Drücken Sie q zum Beenden]"
#: django_q/monitor.py:223 #: monitor.py:227
msgid "day" msgid "day"
msgstr "Tag" msgstr "Tag"
#: django_q/monitor.py:244 #: monitor.py:248
msgid "second" msgid "second"
msgstr "Sekunde" msgstr "Sekunde"
#: django_q/monitor.py:247 #: monitor.py:251
msgid "minute" msgid "minute"
msgstr "Minute" msgstr "Minute"
#: django_q/monitor.py:250 #: monitor.py:254
msgid "hour" msgid "hour"
msgstr "Stunde" msgstr "Stunde"
#: django_q/monitor.py:260 #: monitor.py:263
#, python-format #, python-format
msgid "-- %(prefix)s %(version)s on %(info)s --" msgid "-- %(prefix)s %(version)s on %(info)s --"
msgstr "-- %(prefix)s %(version)s auf %(info)s --" msgstr "-- %(prefix)s %(version)s auf %(info)s --"
#: django_q/monitor.py:266 #: monitor.py:273
msgid "Clusters" msgid "Clusters"
msgstr "Cluster" msgstr "Cluster"
#: django_q/monitor.py:270 #: monitor.py:277
msgid "Workers" msgid "Workers"
msgstr "Arbeiter" msgstr "Arbeiter"
#: django_q/monitor.py:274 #: monitor.py:281
msgid "Restarts" msgid "Restarts"
msgstr "Neustarts" msgstr "Neustarts"
#: django_q/monitor.py:283 #: monitor.py:290
msgid "Successes" msgid "Successes"
msgstr "Erfolge" msgstr "Erfolge"
#: django_q/monitor.py:292 #: monitor.py:299
msgid "Schedules" msgid "Schedules"
msgstr "Zeitpläne" msgstr "Zeitpläne"
#: django_q/monitor.py:296 #: monitor.py:303
#, python-format #, python-format
msgid "Tasks/%(per)s" msgid "Tasks/%(per)s"
msgstr "Aufgaben/%(per)s" msgstr "Aufgaben/%(per)s"
#: django_q/monitor.py:300 #: monitor.py:307
msgid "Avg time" msgid "Avg time"
msgstr "Durchschnittl. Zeit" msgstr "Durchschnittl. Zeit"
#: django_q/monitor.py:348 #: monitor.py:357
msgid "Available (%)" msgid "Available (%)"
msgstr "Verfügbar (%)" msgstr "Verfügbar (%)"
#: django_q/monitor.py:354 #: monitor.py:363
msgid "Available (MB)" msgid "Available (MB)"
msgstr "Verfügbar (MB)" msgstr "Verfügbar (MB)"
#: django_q/monitor.py:359 #: monitor.py:368
msgid "Total (MB)" msgid "Total (MB)"
msgstr "Insgesamt (MB)" msgstr "Insgesamt (MB)"
#: django_q/monitor.py:364 #: monitor.py:373
msgid "Sentinel (MB)" msgid "Sentinel (MB)"
msgstr "Sentinel (MB)" msgstr "Sentinel (MB)"
#: django_q/monitor.py:370 #: monitor.py:379
msgid "Monitor (MB)" msgid "Monitor (MB)"
msgstr "Monitor (MB)" msgstr "Monitor (MB)"
#: django_q/monitor.py:376 #: monitor.py:385
msgid "Workers (MB)" msgid "Workers (MB)"
msgstr "Arbeiter (MB)" msgstr "Arbeiter (MB)"
#: django_q/monitor.py:478 #: monitor.py:487
#, python-format #, python-format
msgid "Available lowest (): %(memory_percent)s ((at)s)" msgid "Available lowest (): %(memory_percent)s ((at)s)"
msgstr "Niedrigste verfügbar (): %(memory_percent)s ((at)s)" msgstr "Niedrigste verfügbar (): %(memory_percent)s ((at)s)"
#: django_q/monitor.py:496 #: monitor.py:509
msgid "No clusters appear to be running." msgid "No clusters appear to be running."
msgstr "Es scheinen keine Cluster zu laufen." msgstr "Es scheinen keine Cluster zu laufen."
#: django_q/signals.py:22 #: signals.py:22
#, python-format #, python-format
msgid "malformed return hook '%(hook)s' for [%(name)s]" msgid "malformed return hook '%(hook)s' for [%(name)s]"
msgstr "Ungültiger Return-Hook '%(hook)s' für [%(name)s]" msgstr "Ungültiger Return-Hook '%(hook)s' für [%(name)s]"
#: django_q/signals.py:30 #: signals.py:30
#, python-format #, python-format
msgid "return hook %(hook)s failed on [%(name)s] because %(error)s" msgid "return hook %(hook)s failed on [%(name)s] because %(error)s"
msgstr "Return-Hook %(hook)s für [%(name)s] ist gescheitert: %(error)s" msgstr "Return-Hook %(hook)s für [%(name)s] ist gescheitert: %(error)s"
#, python-format
#~ msgid ""
#~ "Could not process '%(func_name)s'. Check the location of the function and "
#~ "the args/kwargs."
#~ msgstr ""
#~ "Konnte '%(func_name)s' nicht verarbeiten. Überprüfen Sie den Ort der "
#~ "Funktion und die args/kwargs."
+155 -140
View File
@@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-12 01:47+0000\n" "POT-Creation-Date: 2023-01-26 01:38+0000\n"
"PO-Revision-Date: 2018-08-05 18:28+0200\n" "PO-Revision-Date: 2018-08-05 18:28+0200\n"
"Last-Translator: Thierry BOULOGNE <contact@tng-concepts.com>\n" "Last-Translator: Thierry BOULOGNE <contact@tng-concepts.com>\n"
"Language-Team: \n" "Language-Team: \n"
@@ -17,176 +17,175 @@ msgstr ""
"X-Generator: Poedit 2.1.1\n" "X-Generator: Poedit 2.1.1\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: django_q/admin.py:43 #: admin.py:43
msgid "Resubmit selected tasks to queue" msgid "Resubmit selected tasks to queue"
msgstr "Resoumettre les tâches sélectionnées à la file d'attente" msgstr "Resoumettre les tâches sélectionnées à la file d'attente"
#: django_q/admin.py:98 django_q/models.py:228 #: admin.py:107 models.py:293
#, fuzzy #, fuzzy
#| msgid "Success" #| msgid "Success"
msgid "success" msgid "success"
msgstr "succès" msgstr "succès"
#: django_q/admin.py:109 django_q/models.py:230 #: admin.py:119 models.py:295
msgid "last_run" msgid "last_run"
msgstr "" msgstr ""
#: django_q/cluster.py:77 #: cluster.py:79
#, python-format #, python-format
msgid "Q Cluster %(name)s starting." msgid "Q Cluster %(name)s starting."
msgstr "Démarrage de Q Cluster-%(name)s." msgstr "Démarrage de Q Cluster-%(name)s."
#: django_q/cluster.py:85 #: cluster.py:87
#, python-format #, python-format
msgid "Q Cluster %(name)s stopping." msgid "Q Cluster %(name)s stopping."
msgstr "Arrêt de Q Cluster-%(name)s." msgstr "Arrêt de Q Cluster-%(name)s."
#: django_q/cluster.py:88 #: cluster.py:90
#, python-format #, python-format
msgid "Q Cluster %(name)s has stopped." msgid "Q Cluster %(name)s has stopped."
msgstr "Q Cluster-%(name)s a été arrêté." msgstr "Q Cluster-%(name)s a été arrêté."
#: django_q/cluster.py:96 #: cluster.py:97
#, python-format #, python-format
msgid "%(name)s got signal %(signal)s" msgid "%(name)s got signal %(signal)s"
msgstr "%(name)s à reçu le signal %(signal)s" msgstr "%(name)s à reçu le signal %(signal)s"
#: django_q/cluster.py:219 #: cluster.py:224
#, python-format #, python-format
msgid "reincarnated monitor %(name)s after sudden death" msgid "reincarnated monitor %(name)s after sudden death"
msgstr "moniteur réintégré %(name)s après un arrêt intempestif" msgstr "surveillant %(name)s réincarné après un arrêt intempestif"
#: django_q/cluster.py:222 #: cluster.py:230
#, python-format #, python-format
msgid "reincarnated pusher %(name)s after sudden death" msgid "reincarnated pusher %(name)s after sudden death"
msgstr "pousseur réintégré %(name)s après un arrêt intempestif" msgstr "répartiteur %(name)s réincarné après un arrêt intempestif"
#: django_q/cluster.py:229 #: cluster.py:250
#, python-format
msgid ""
"reincarnated worker %(name)s after timeout while processing task "
"%(task_name)s"
msgstr ""
"processus %(name)s réincarné, délai de traitement dépassé pour la tâche "
"%(task_name)s"
#: cluster.py:255
#, python-format #, python-format
msgid "reincarnated worker %(name)s after timeout" msgid "reincarnated worker %(name)s after timeout"
msgstr "processus réintégré %(name)s après un arrêt une attente trop longue" msgstr "processus %(name)s réincarné, délai de traitement dépassé"
#: django_q/cluster.py:231 #: cluster.py:260
#, python-format #, python-format
msgid "recycled worker %(name)s" msgid "recycled worker %(name)s"
msgstr "processus recyclé %(name)s" msgstr "processus recyclé %(name)s"
#: django_q/cluster.py:233 #: cluster.py:263
#, python-format #, python-format
msgid "reincarnated worker %(name)s after death" msgid "reincarnated worker %(name)s after death"
msgstr "processus réintégré %(name)s après arrêt" msgstr "processus réintégré %(name)s après arrêt"
#: django_q/cluster.py:256 #: cluster.py:287
#, python-format #, python-format
msgid "%(name)s guarding cluster %(cluster_name)s" msgid "%(name)s guarding cluster %(cluster_name)s"
msgstr "%(name)s surveillance du cluster à %(cluster_name)s" msgstr "%(name)s surveillance du cluster à %(cluster_name)s"
#: django_q/cluster.py:261 #: cluster.py:296
#, python-format #, python-format
msgid "Q Cluster %(cluster_name)s running." msgid "Q Cluster %(cluster_name)s running."
msgstr "Démarrage de Q Cluster-%(cluster_name)s." msgstr "Démarrage de Q Cluster-%(cluster_name)s."
#: django_q/cluster.py:295 #: cluster.py:332
#, python-format #, python-format
msgid "%(name)s stopping cluster processes" msgid "%(name)s stopping cluster processes"
msgstr "%(name)s arrêt des processus de cluster" msgstr "%(name)s arrêt des processus du cluster"
#: django_q/cluster.py:320 #: cluster.py:357
#, python-format #, python-format
msgid "%(name)s waiting for the monitor." msgid "%(name)s waiting for the monitor."
msgstr "%(name)s en attente du moniteur." msgstr "%(name)s en attente du surveillant."
#: django_q/cluster.py:342 #: cluster.py:383
#, python-format #, python-format
msgid "%(process_name)s pushing tasks at %(id)s" msgid "%(name)s pushing tasks at %(id)s"
msgstr "%(process_name)s tâche envoyé à %(id)s" msgstr "%(name)s répartit les tâches %(id)s"
#: django_q/cluster.py:363 #: cluster.py:407
#, python-format #, python-format
msgid "queueing from %(list_key)s" msgid "queueing from %(list_key)s"
msgstr "mise en file d'attente de %(list_key)s" msgstr "mise en file d'attente de %(list_key)s"
#: django_q/cluster.py:366 #: cluster.py:411
#, python-format #, python-format
msgid "%(name)s stopped pushing tasks" msgid "%(name)s stopped pushing tasks"
msgstr "%(name)s a cessé de pousser les tâches" msgstr "%(name)s a cessé de répartir les tâches"
#: django_q/cluster.py:378 #: cluster.py:426
#, python-format #, python-format
msgid "%(name)s monitoring at %(id)s" msgid "%(name)s monitoring at %(id)s"
msgstr "%(name)s Surveillance de %(id)s" msgstr "%(name)s surveille les résultats %(id)s"
#: django_q/cluster.py:395 #: cluster.py:445
#, python-format #, python-format
msgid "Processed '%(info_name)s' (%(task_name)s)" msgid "Processed '%(info_name)s' (%(task_name)s)"
msgstr "traité '%(info_name)s' (%(task_name)s)" msgstr "traité '%(info_name)s' (%(task_name)s)"
#: django_q/cluster.py:398 #: cluster.py:451
#, python-format #, python-format
msgid "Failed '%(info_name)s' (%(task_name)s) - %(task_result)s" msgid "Failed '%(info_name)s' (%(task_name)s) - %(task_result)s"
msgstr "Manqué '%(info_name)s' (%(task_name)s) - %(task_result)s" msgstr "Manqué '%(info_name)s' (%(task_name)s) - %(task_result)s"
#: django_q/cluster.py:399 #: cluster.py:458
#, python-format #, python-format
msgid "%(name)s stopped monitoring results" msgid "%(name)s stopped monitoring results"
msgstr "%(name)s arrêt des résultats de surveillance" msgstr "%(name)s a cessé de de surveiller les résultats"
#: django_q/cluster.py:413 #: cluster.py:474
#, python-format #, python-format
msgid "%(proc_name)s ready for work at %(id)s" msgid "%(proc_name)s ready for work at %(id)s"
msgstr "%(proc_name)s prêt pour le travail à %(id)s" msgstr "%(proc_name)s prêt pour le travail à %(id)s"
#: django_q/cluster.py:425 #: cluster.py:494
#, python-format #, fuzzy, python-format
msgid "%(proc_name)s processing '%(func_name)s' (%(task_name)s)" msgid "%(proc_name)s processing %(task_name)s '%(func_name)s'"
msgstr "%(proc_name)s en traitement '%(func_name)s' (%(task_name)s)" msgstr "%(proc_name)s exécute %(task_name)s '%(func_name)s'"
#: django_q/cluster.py:440 #: cluster.py:546
#, python-format
msgid ""
"Could not process '%(func_name)s'. Check the location of the function and "
"the args/kwargs."
msgstr ""
"Impossible de traiter '%(func_name)s'. Vérifiez l'emplacement de la fonction "
"et les args/kwargs."
#: django_q/cluster.py:456
#, python-format #, python-format
msgid "%(proc_name)s stopped doing work" msgid "%(proc_name)s stopped doing work"
msgstr "%(proc_name)s arrêté de travailler" msgstr "%(proc_name)s a cessé de travailler"
#: django_q/cluster.py:649 django_q/models.py:144 #: cluster.py:751
msgid "Please install croniter to enable cron expressions"
msgstr "Veuillez installer croniter pour activer les expressions croniques."
#: django_q/cluster.py:672
#, python-format #, python-format
msgid "%(process_name)s failed to create a task from schedule [%(schedule)s]" msgid "%(process_name)s failed to create a task from schedule [%(schedule)s]"
msgstr "" msgstr ""
"%(process_name)s Echec de la création d'une tâche à partir de Schedule " "%(process_name)s Echec de la création d'une tâche à partir de Schedule "
"[%(schedule)s]" "[%(schedule)s]"
#: django_q/cluster.py:678 #: cluster.py:762
#, python-format #, python-format
msgid "%(process_name)s created a task from schedule [%(schedule)s]" msgid ""
msgstr "%(process_name)s a créé une tâche à partir de Schedule [%(schedule)s]" "%(process_name)s created task %(task_name)s from schedule [%(schedule)s]"
msgstr ""
"%(process_name)s a créé la tâche %(task_name)s à partir de Schedule "
"[%(schedule)s]"
#: django_q/cluster.py:718 #: cluster.py:808
msgid "Skipping cpu affinity because psutil was not found." msgid "Skipping cpu affinity because psutil was not found."
msgstr "Sauter l'affinité du processeur parce que psutil n'a pas été trouvé." msgstr "L'affinité cpu ne sera pas définie car psutil n'a pas été trouvé."
#: django_q/cluster.py:723 #: cluster.py:813
msgid "Faking cpu affinity because it is not supported on this platform" msgid "Faking cpu affinity because it is not supported on this platform"
msgstr "" msgstr ""
"Simulation de l'affinité du processeur parce qu'elle n'est pas supportée sur " "Simulation de l'affinité cpu parce qu'elle n'est pas supportée sur cette "
"cette plateforme." "plateforme."
#: django_q/cluster.py:744 #: cluster.py:835
#, python-format #, python-format
msgid "%(pid)s will use cpu %(affinity)s" msgid "%(pid)s will use cpu %(affinity)s"
msgstr "%(pid)s utilisera le CPU %(affinity)s" msgstr "%(pid)s utilisera le CPU %(affinity)s"
#: django_q/conf.py:85 #: conf.py:90
#, python-format #, python-format
msgid "" msgid ""
"SAVE_LIMIT_PER (%(option)s) is not a valid option. Options are: 'group', " "SAVE_LIMIT_PER (%(option)s) is not a valid option. Options are: 'group', "
@@ -196,299 +195,315 @@ msgstr ""
"'group', 'name', 'func' et None. La valeur par défaut est None." "'group', 'name', 'func' et None. La valeur par défaut est None."
#. Translators: Cluster status descriptions #. Translators: Cluster status descriptions
#: django_q/conf.py:194 #: conf.py:207
msgid "Starting" msgid "Starting"
msgstr "Démarrage" msgstr "Démarrage"
#: django_q/conf.py:195 #: conf.py:208
msgid "Working" msgid "Working"
msgstr "Actif" msgstr "Actif"
#: django_q/conf.py:196 #: conf.py:209
msgid "Idle" msgid "Idle"
msgstr "En attente" msgstr "En attente"
#: django_q/conf.py:197 #: conf.py:210
msgid "Stopped" msgid "Stopped"
msgstr "Arrêté" msgstr "Arrêté"
#: django_q/conf.py:198 #: conf.py:211
msgid "Stopping" msgid "Stopping"
msgstr "En cours d’arrêt" msgstr "En cours d’arrêt"
#. Translators: help text for qcluster management command #. Translators: help text for qcluster management command
#: django_q/management/commands/qcluster.py:9 #: management/commands/qcluster.py:9
msgid "Starts a Django Q Cluster." msgid "Starts a Django Q Cluster."
msgstr "Démarre un cluster Django Q." msgstr "Démarre un cluster Django Q."
#. Translators: help text for qinfo management command #. Translators: help text for qinfo management command
#: django_q/management/commands/qinfo.py:11 #: management/commands/qinfo.py:11
msgid "General information over all clusters." msgid "General information over all clusters."
msgstr "Informations générales sur tous les clusters." msgstr "Informations générales sur tous les clusters."
#. Translators: help text for qmemory management command #. Translators: help text for qmemory management command
#: django_q/management/commands/qmemory.py:9 #: management/commands/qmemory.py:9
#, fuzzy #, fuzzy
#| msgid "Monitors Q Cluster activity" #| msgid "Monitors Q Cluster activity"
msgid "Monitors Q Cluster memory usage" msgid "Monitors Q Cluster memory usage"
msgstr "Surveille l'utilisation de la mémoire du cluster Q" msgstr "Surveille l'utilisation mémoire du Q cluster"
#. Translators: help text for qmonitor management command #. Translators: help text for qmonitor management command
#: django_q/management/commands/qmonitor.py:9 #: management/commands/qmonitor.py:9
msgid "Monitors Q Cluster activity" msgid "Monitors Q Cluster activity"
msgstr "Activité du cluster Moniteur Q" msgstr "Surveille l'activité de Q cluster"
#: django_q/models.py:119 #: models.py:125
msgid "Successful task" msgid "Successful task"
msgstr "Tâche réussie" msgstr "Tâche réussie"
#: django_q/models.py:120 #: models.py:126
msgid "Successful tasks" msgid "Successful tasks"
msgstr "Tâches réussies" msgstr "Tâches réussies"
#: django_q/models.py:135 #: models.py:141
msgid "Failed task" msgid "Failed task"
msgstr "Tâche échoué" msgstr "Tâche échoué"
#: django_q/models.py:136 #: models.py:142
msgid "Failed tasks" msgid "Failed tasks"
msgstr "Tâches échouées" msgstr "Tâches échouées"
#: django_q/models.py:160 #: models.py:150 models.py:234
msgid "Please install croniter to enable cron expressions"
msgstr "Veuillez installer croniter pour activer les expressions cron."
#: models.py:170
msgid "e.g. 1, 2, 'John'" msgid "e.g. 1, 2, 'John'"
msgstr "ex. 1, 2, ‘Jean’" msgstr "ex. 1, 2, ‘Jean’"
#: django_q/models.py:162 #: models.py:172
msgid "e.g. x=1, y=2, name='John'" msgid "e.g. x=1, y=2, name='John'"
msgstr "p. ex. x = 1, y = 2, Nom = ‘Jean’" msgstr "p. ex. x = 1, y = 2, Nom = ‘Jean’"
#: django_q/models.py:176 #: models.py:186
msgid "Once" msgid "Once"
msgstr "Une fois" msgstr "Une fois"
#: django_q/models.py:177 #: models.py:187
msgid "Minutes" msgid "Minutes"
msgstr "Minutes" msgstr "Minutes"
#: django_q/models.py:178 #: models.py:188
msgid "Hourly" msgid "Hourly"
msgstr "Toutes les heures" msgstr "Toutes les heures"
#: django_q/models.py:179 #: models.py:189
msgid "Daily" msgid "Daily"
msgstr "Quotidien" msgstr "Quotidien"
#: django_q/models.py:180 #: models.py:190
msgid "Weekly" msgid "Weekly"
msgstr "Hebdomadaire" msgstr "Hebdomadaire"
#: django_q/models.py:181 #: models.py:191
#, fuzzy #, fuzzy
#| msgid "Weekly" #| msgid "Weekly"
msgid "Biweekly" msgid "Biweekly"
msgstr "Bihebdomadaire" msgstr "Bihebdomadaire"
#: django_q/models.py:182 #: models.py:192
msgid "Monthly" msgid "Monthly"
msgstr "Mensuel" msgstr "Mensuel"
#: django_q/models.py:183 #: models.py:193
#, fuzzy #, fuzzy
#| msgid "Monthly" #| msgid "Monthly"
msgid "Bimonthly" msgid "Bimonthly"
msgstr "Bimestriel" msgstr "Bimestriel"
#: django_q/models.py:184 #: models.py:194
msgid "Quarterly" msgid "Quarterly"
msgstr "Tous les quart-d’heure" msgstr "Tous les quart-d’heure"
#: django_q/models.py:185 #: models.py:195
msgid "Yearly" msgid "Yearly"
msgstr "Annuel" msgstr "Annuel"
#: django_q/models.py:186 #: models.py:196
msgid "Cron" msgid "Cron"
msgstr "Cron" msgstr "Cron"
#: django_q/models.py:189 #: models.py:199
msgid "Schedule Type" msgid "Schedule Type"
msgstr "Type de plannification" msgstr "Type de plannification"
#: django_q/models.py:192 #: models.py:202
msgid "Number of minutes for the Minutes type" msgid "Number of minutes for the Minutes type"
msgstr "Nombre de minutes pour le type de minutes" msgstr "Nombre de minutes pour le type de minutes"
#: django_q/models.py:195 #: models.py:205
msgid "Repeats" msgid "Repeats"
msgstr "Répéter" msgstr "Répéter"
#: django_q/models.py:195 #: models.py:205
msgid "n = n times, -1 = forever" msgid "n = n times, -1 = forever"
msgstr "n = n fois,-1 = Toujours" msgstr "n = n fois,-1 = Toujours"
#: django_q/models.py:198 #: models.py:208
msgid "Next Run" msgid "Next Run"
msgstr "Prochaine exécution" msgstr "Prochaine exécution"
#: django_q/models.py:205 #: models.py:215
msgid "Cron expression" msgid "Cron expression"
msgstr "Expression du Cron" msgstr "Expression Cron"
#: django_q/models.py:235 #: models.py:224
msgid "Name of kwarg to pass intended schedule date"
msgstr "Nom du kwarg à passer Date prévue de l'horaire"
#: models.py:299
msgid "Scheduled task" msgid "Scheduled task"
msgstr "Tâche planifiée" msgstr "Tâche planifiée"
#: django_q/models.py:236 #: models.py:300
msgid "Scheduled tasks" msgid "Scheduled tasks"
msgstr "Tâches planifiées" msgstr "Tâches planifiées"
#: django_q/models.py:262 #: models.py:326
msgid "Queued task" msgid "Queued task"
msgstr "Tâche en file d'attente" msgstr "Tâche en file d'attente"
#: django_q/models.py:263 #: models.py:327
msgid "Queued tasks" msgid "Queued tasks"
msgstr "Tâches en file d'attente" msgstr "Tâches en file d'attente"
#: django_q/monitor.py:62 django_q/monitor.py:339 #: monitor.py:64 monitor.py:348
msgid "Host" msgid "Host"
msgstr "Hôte" msgstr "Hôte"
#: django_q/monitor.py:66 django_q/monitor.py:343 django_q/monitor.py:450 #: monitor.py:68 monitor.py:352 monitor.py:459
msgid "Id" msgid "Id"
msgstr "Id" msgstr "Id"
#: django_q/monitor.py:70 #: monitor.py:72
msgid "State" msgid "State"
msgstr "Statut" msgstr "Statut"
#: django_q/monitor.py:74 #: monitor.py:76
msgid "Pool" msgid "Pool"
msgstr "Piscine" msgstr "Piscine"
#: django_q/monitor.py:78 #: monitor.py:80
msgid "TQ" msgid "TQ"
msgstr "TQ" msgstr "TQ"
#: django_q/monitor.py:82 #: monitor.py:84
msgid "RQ" msgid "RQ"
msgstr "RQ" msgstr "RQ"
#: django_q/monitor.py:86 #: monitor.py:88
msgid "RC" msgid "RC"
msgstr "RC" msgstr "RC"
#: django_q/monitor.py:90 #: monitor.py:92
msgid "Up" msgid "Up"
msgstr "Haut" msgstr "Haut"
#: django_q/monitor.py:170 django_q/monitor.py:279 #: monitor.py:172 monitor.py:286
msgid "Queued" msgid "Queued"
msgstr "En file d'attente" msgstr "En file d'attente"
#: django_q/monitor.py:178 #: monitor.py:180
msgid "Success" msgid "Success"
msgstr "Succès" msgstr "Succès"
#: django_q/monitor.py:188 django_q/monitor.py:287 #: monitor.py:190 monitor.py:294
msgid "Failures" msgid "Failures"
msgstr "Défaillances" msgstr "Défaillances"
#: django_q/monitor.py:199 django_q/monitor.py:485 #: monitor.py:201 monitor.py:498
msgid "[Press q to quit]" msgid "[Press q to quit]"
msgstr "[appuyez sur q pour quitter]" msgstr "[appuyez sur q pour quitter]"
#: django_q/monitor.py:223 #: monitor.py:227
msgid "day" msgid "day"
msgstr "jour" msgstr "jour"
#: django_q/monitor.py:244 #: monitor.py:248
msgid "second" msgid "second"
msgstr "seconde" msgstr "seconde"
#: django_q/monitor.py:247 #: monitor.py:251
msgid "minute" msgid "minute"
msgstr "minute" msgstr "minute"
#: django_q/monitor.py:250 #: monitor.py:254
msgid "hour" msgid "hour"
msgstr "heure" msgstr "heure"
#: django_q/monitor.py:260 #: monitor.py:263
#, python-format #, python-format
msgid "-- %(prefix)s %(version)s on %(info)s --" msgid "-- %(prefix)s %(version)s on %(info)s --"
msgstr "--%(prefix)s %(version)s sur %(info)s --" msgstr "--%(prefix)s %(version)s sur %(info)s --"
#: django_q/monitor.py:266 #: monitor.py:273
msgid "Clusters" msgid "Clusters"
msgstr "Grappes" msgstr "Grappes"
#: django_q/monitor.py:270 #: monitor.py:277
msgid "Workers" msgid "Workers"
msgstr "Processus" msgstr "Processus"
#: django_q/monitor.py:274 #: monitor.py:281
msgid "Restarts" msgid "Restarts"
msgstr "Redémarrages" msgstr "Redémarrages"
#: django_q/monitor.py:283 #: monitor.py:290
msgid "Successes" msgid "Successes"
msgstr "Succès" msgstr "Succès"
#: django_q/monitor.py:292 #: monitor.py:299
msgid "Schedules" msgid "Schedules"
msgstr "Planifications" msgstr "Planifications"
#: django_q/monitor.py:296 #: monitor.py:303
#, python-format #, python-format
msgid "Tasks/%(per)s" msgid "Tasks/%(per)s"
msgstr "Tâches/%(per)s" msgstr "Tâches/%(per)s"
#: django_q/monitor.py:300 #: monitor.py:307
msgid "Avg time" msgid "Avg time"
msgstr "Temps Moyen" msgstr "Temps Moyen"
#: django_q/monitor.py:348 #: monitor.py:357
msgid "Available (%)" msgid "Available (%)"
msgstr "" msgstr ""
#: django_q/monitor.py:354 #: monitor.py:363
msgid "Available (MB)" msgid "Available (MB)"
msgstr "Disponible sur (MB)" msgstr "Disponible sur (MB)"
#: django_q/monitor.py:359 #: monitor.py:368
msgid "Total (MB)" msgid "Total (MB)"
msgstr "Total (MB)" msgstr "Total (MB)"
#: django_q/monitor.py:364 #: monitor.py:373
msgid "Sentinel (MB)" msgid "Sentinel (MB)"
msgstr "Sentinel (MB)" msgstr "Sentinel (MB)"
#: django_q/monitor.py:370 #: monitor.py:379
msgid "Monitor (MB)" msgid "Monitor (MB)"
msgstr "Monitor (MB)" msgstr "Monitor (MB)"
#: django_q/monitor.py:376 #: monitor.py:385
#, fuzzy #, fuzzy
#| msgid "Workers" #| msgid "Workers"
msgid "Workers (MB)" msgid "Workers (MB)"
msgstr "Processus (MB)" msgstr "Processus (MB)"
#: django_q/monitor.py:478 #: monitor.py:487
#, python-format #, python-format
msgid "Available lowest (): %(memory_percent)s ((at)s)" msgid "Available lowest (): %(memory_percent)s ((at)s)"
msgstr "Disponible le plus bas () : %(memory_percent)s ((at)s)" msgstr "Disponible le plus bas () : %(memory_percent)s ((at)s)"
#: django_q/monitor.py:496 #: monitor.py:509
msgid "No clusters appear to be running." msgid "No clusters appear to be running."
msgstr "Aucun cluster ne semble être en cours d'exécution." msgstr "Aucun cluster ne semble être en cours d'exécution."
#: django_q/signals.py:22 #: signals.py:22
#, python-format #, python-format
msgid "malformed return hook '%(hook)s' for [%(name)s]" msgid "malformed return hook '%(hook)s' for [%(name)s]"
msgstr "hook de retour mal formé' %(hook)s 'pour [%(name)s]" msgstr "hook de retour '%(hook)s' mal formé pour [%(name)s]"
#: django_q/signals.py:30 #: signals.py:30
#, python-format #, python-format
msgid "return hook %(hook)s failed on [%(name)s] because %(error)s" msgid "return hook %(hook)s failed on [%(name)s] because %(error)s"
msgstr "le crochet de retour %(hook)s a échoué sur [%(name)s] parce que %(error)s" msgstr "hook de retour %(hook)s a échoué sur [%(name)s] à cause de %(error)s"
#, python-format
#~ msgid ""
#~ "Could not process '%(func_name)s'. Check the location of the function and "
#~ "the args/kwargs."
#~ msgstr ""
#~ "Impossible de traiter '%(func_name)s'. Vérifiez l'emplacement de la "
#~ "fonction et les args/kwargs."
+137 -122
View File
@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-12 01:47+0000\n" "POT-Creation-Date: 2023-01-26 01:38+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Ethem Güner <ethemguener@gmail.com>\n" "Last-Translator: Ethem Güner <ethemguener@gmail.com>\n"
"Language-Team: \n" "Language-Team: \n"
@@ -18,172 +18,171 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: django_q/admin.py:43 #: admin.py:43
msgid "Resubmit selected tasks to queue" msgid "Resubmit selected tasks to queue"
msgstr "Seçili işleri kuyruğa tekrar gönder" msgstr "Seçili işleri kuyruğa tekrar gönder"
#: django_q/admin.py:98 django_q/models.py:228 #: admin.py:107 models.py:293
#, fuzzy #, fuzzy
#| msgid "Success" #| msgid "Success"
msgid "success" msgid "success"
msgstr "başarılı olanlar" msgstr "başarılı olanlar"
#: django_q/admin.py:109 django_q/models.py:230 #: admin.py:119 models.py:295
msgid "last_run" msgid "last_run"
msgstr "" msgstr ""
#: django_q/cluster.py:77 #: cluster.py:79
#, python-format #, python-format
msgid "Q Cluster %(name)s starting." msgid "Q Cluster %(name)s starting."
msgstr "Q Cluster %(name)s başlatılıyor." msgstr "Q Cluster %(name)s başlatılıyor."
#: django_q/cluster.py:85 #: cluster.py:87
#, python-format #, python-format
msgid "Q Cluster %(name)s stopping." msgid "Q Cluster %(name)s stopping."
msgstr "Q Cluster %(name)s durduruluyor." msgstr "Q Cluster %(name)s durduruluyor."
#: django_q/cluster.py:88 #: cluster.py:90
#, python-format #, python-format
msgid "Q Cluster %(name)s has stopped." msgid "Q Cluster %(name)s has stopped."
msgstr "Q Cluster %(name)s durduruldu." msgstr "Q Cluster %(name)s durduruldu."
#: django_q/cluster.py:96 #: cluster.py:97
#, python-format #, python-format
msgid "%(name)s got signal %(signal)s" msgid "%(name)s got signal %(signal)s"
msgstr "%(name)s, %(signal)s pid'inde izleniyor/monitoring yapılıyor." msgstr "%(name)s, %(signal)s pid'inde izleniyor/monitoring yapılıyor."
#: django_q/cluster.py:219 #: cluster.py:224
#, python-format #, python-format
msgid "reincarnated monitor %(name)s after sudden death" msgid "reincarnated monitor %(name)s after sudden death"
msgstr "Monitor %(name)s ani ölüm sonrası tekrar dirildi" msgstr "Monitor %(name)s ani ölüm sonrası tekrar dirildi"
#: django_q/cluster.py:222 #: cluster.py:230
#, python-format #, python-format
msgid "reincarnated pusher %(name)s after sudden death" msgid "reincarnated pusher %(name)s after sudden death"
msgstr "Pusher %(name)s ani ölüm sonrası tekrar dirildi" msgstr "Pusher %(name)s ani ölüm sonrası tekrar dirildi"
#: django_q/cluster.py:229 #: cluster.py:250
#, fuzzy, python-format
#| msgid "reincarnated worker %(name)s after timeout"
msgid ""
"reincarnated worker %(name)s after timeout while processing task "
"%(task_name)s"
msgstr "Worker %(name)s zaman aşımı sonrası tekrar dirildi"
#: cluster.py:255
#, python-format #, python-format
msgid "reincarnated worker %(name)s after timeout" msgid "reincarnated worker %(name)s after timeout"
msgstr "Worker %(name)s zaman aşımı sonrası tekrar dirildi" msgstr "Worker %(name)s zaman aşımı sonrası tekrar dirildi"
#: django_q/cluster.py:231 #: cluster.py:260
#, python-format #, python-format
msgid "recycled worker %(name)s" msgid "recycled worker %(name)s"
msgstr "Worker %(name)s geri döndürüldü" msgstr "Worker %(name)s geri döndürüldü"
#: django_q/cluster.py:233 #: cluster.py:263
#, python-format #, python-format
msgid "reincarnated worker %(name)s after death" msgid "reincarnated worker %(name)s after death"
msgstr "Worker %(name)s ani ölüm sonrası tekrar dirildi" msgstr "Worker %(name)s ani ölüm sonrası tekrar dirildi"
#: django_q/cluster.py:256 #: cluster.py:287
#, python-format #, python-format
msgid "%(name)s guarding cluster %(cluster_name)s" msgid "%(name)s guarding cluster %(cluster_name)s"
msgstr "%(name)s, %(cluster_name)s cluster'ını koruyor" msgstr "%(name)s, %(cluster_name)s cluster'ını koruyor"
#: django_q/cluster.py:261 #: cluster.py:296
#, python-format #, python-format
msgid "Q Cluster %(cluster_name)s running." msgid "Q Cluster %(cluster_name)s running."
msgstr "Q Cluster %(cluster_name)s başlatılıyor." msgstr "Q Cluster %(cluster_name)s başlatılıyor."
#: django_q/cluster.py:295 #: cluster.py:332
#, python-format #, python-format
msgid "%(name)s stopping cluster processes" msgid "%(name)s stopping cluster processes"
msgstr "Cluster %(name)s işlemleri durduruluyor." msgstr "Cluster %(name)s işlemleri durduruluyor."
#: django_q/cluster.py:320 #: cluster.py:357
#, python-format #, python-format
msgid "%(name)s waiting for the monitor." msgid "%(name)s waiting for the monitor."
msgstr "%(name)s monitor için bekliyor." msgstr "%(name)s monitor için bekliyor."
#: django_q/cluster.py:342 #: cluster.py:383
#, python-format #, fuzzy, python-format
msgid "%(process_name)s pushing tasks at %(id)s" #| msgid "%(process_name)s pushing tasks at %(id)s"
msgid "%(name)s pushing tasks at %(id)s"
msgstr "%(process_name)s, işleri %(id)s pid'ine gönderiyor." msgstr "%(process_name)s, işleri %(id)s pid'ine gönderiyor."
#: django_q/cluster.py:363 #: cluster.py:407
#, python-format #, python-format
msgid "queueing from %(list_key)s" msgid "queueing from %(list_key)s"
msgstr "" msgstr ""
#: django_q/cluster.py:366 #: cluster.py:411
#, python-format #, python-format
msgid "%(name)s stopped pushing tasks" msgid "%(name)s stopped pushing tasks"
msgstr "%(name)s işleri göndermeyi durdurdu" msgstr "%(name)s işleri göndermeyi durdurdu"
#: django_q/cluster.py:378 #: cluster.py:426
#, python-format #, python-format
msgid "%(name)s monitoring at %(id)s" msgid "%(name)s monitoring at %(id)s"
msgstr "%(name)s, %(id)s pid'inde izleniyor/monitoring yapılıyor." msgstr "%(name)s, %(id)s pid'inde izleniyor/monitoring yapılıyor."
#: django_q/cluster.py:395 #: cluster.py:445
#, python-format #, python-format
msgid "Processed '%(info_name)s' (%(task_name)s)" msgid "Processed '%(info_name)s' (%(task_name)s)"
msgstr "[%(task_name)s] - '%(info_name)s işlendi." msgstr "[%(task_name)s] - '%(info_name)s işlendi."
#: django_q/cluster.py:398 #: cluster.py:451
#, python-format #, python-format
msgid "Failed '%(info_name)s' (%(task_name)s) - %(task_result)s" msgid "Failed '%(info_name)s' (%(task_name)s) - %(task_result)s"
msgstr "[%(task_name)s] - '%(info_name)s' - %(task_result)s başarısız oldu" msgstr "[%(task_name)s] - '%(info_name)s' - %(task_result)s başarısız oldu"
#: django_q/cluster.py:399 #: cluster.py:458
#, python-format #, python-format
msgid "%(name)s stopped monitoring results" msgid "%(name)s stopped monitoring results"
msgstr "%(name)s sonuçları göstermeyi bıraktı" msgstr "%(name)s sonuçları göstermeyi bıraktı"
#: django_q/cluster.py:413 #: cluster.py:474
#, python-format #, python-format
msgid "%(proc_name)s ready for work at %(id)s" msgid "%(proc_name)s ready for work at %(id)s"
msgstr "%(proc_name)s, %(id)s pid'inde çalışmaya hazır" msgstr "%(proc_name)s, %(id)s pid'inde çalışmaya hazır"
#: django_q/cluster.py:425 #: cluster.py:494
#, python-format #, fuzzy, python-format
msgid "%(proc_name)s processing '%(func_name)s' (%(task_name)s)" #| msgid "%(proc_name)s processing '%(func_name)s' (%(task_name)s)"
msgid "%(proc_name)s processing %(task_name)s '%(func_name)s'"
msgstr "%(proc_name)s, '%(func_name)s' [%(task_name)s] işlerini işiyor" msgstr "%(proc_name)s, '%(func_name)s' [%(task_name)s] işlerini işiyor"
#: django_q/cluster.py:440 #: cluster.py:546
#, python-format
msgid ""
"Could not process '%(func_name)s'. Check the location of the function and "
"the args/kwargs."
msgstr ""
"%(func_name)s' işlenemedi. İşlevin konumunu ve args/kwargs öğelerini kontrol "
"edin."
#: django_q/cluster.py:456
#, python-format #, python-format
msgid "%(proc_name)s stopped doing work" msgid "%(proc_name)s stopped doing work"
msgstr "%(proc_name)s çalışmayı bıraktı" msgstr "%(proc_name)s çalışmayı bıraktı"
#: django_q/cluster.py:649 django_q/models.py:144 #: cluster.py:751
msgid "Please install croniter to enable cron expressions"
msgstr "Cron expressions'ları açmak için croniter yükleyin"
#: django_q/cluster.py:672
#, python-format #, python-format
msgid "%(process_name)s failed to create a task from schedule [%(schedule)s]" msgid "%(process_name)s failed to create a task from schedule [%(schedule)s]"
msgstr "%(process_name)s programdan bir görev oluşturamadı [%(schedule)s]" msgstr "%(process_name)s programdan bir görev oluşturamadı [%(schedule)s]"
#: django_q/cluster.py:678 #: cluster.py:762
#, python-format #, fuzzy, python-format
msgid "%(process_name)s created a task from schedule [%(schedule)s]" #| msgid "%(process_name)s created a task from schedule [%(schedule)s]"
msgid ""
"%(process_name)s created task %(task_name)s from schedule [%(schedule)s]"
msgstr "%(process_name)s programdan bir görev oluşturamadı [%(schedule)s]" msgstr "%(process_name)s programdan bir görev oluşturamadı [%(schedule)s]"
#: django_q/cluster.py:718 #: cluster.py:808
msgid "Skipping cpu affinity because psutil was not found." msgid "Skipping cpu affinity because psutil was not found."
msgstr "Psutil bulunamadığı için cpu benzeşimi atlanıyor." msgstr "Psutil bulunamadığı için cpu benzeşimi atlanıyor."
#: django_q/cluster.py:723 #: cluster.py:813
msgid "Faking cpu affinity because it is not supported on this platform" msgid "Faking cpu affinity because it is not supported on this platform"
msgstr "Bu platformda desteklenmediği için sahte cpu benzeşimi" msgstr "Bu platformda desteklenmediği için sahte cpu benzeşimi"
#: django_q/cluster.py:744 #: cluster.py:835
#, python-format #, python-format
msgid "%(pid)s will use cpu %(affinity)s" msgid "%(pid)s will use cpu %(affinity)s"
msgstr "%(pid)s cpu %(affinity)s kullanacaktır" msgstr "%(pid)s cpu %(affinity)s kullanacaktır"
#: django_q/conf.py:85 #: conf.py:90
#, python-format #, python-format
msgid "" msgid ""
"SAVE_LIMIT_PER (%(option)s) is not a valid option. Options are: 'group', " "SAVE_LIMIT_PER (%(option)s) is not a valid option. Options are: 'group', "
@@ -193,295 +192,311 @@ msgstr ""
"'group', 'name', 'func' ve None. Varsayılan değer None'dır." "'group', 'name', 'func' ve None. Varsayılan değer None'dır."
#. Translators: Cluster status descriptions #. Translators: Cluster status descriptions
#: django_q/conf.py:194 #: conf.py:207
msgid "Starting" msgid "Starting"
msgstr "Başlıyor" msgstr "Başlıyor"
#: django_q/conf.py:195 #: conf.py:208
msgid "Working" msgid "Working"
msgstr "Çalışıyor" msgstr "Çalışıyor"
#: django_q/conf.py:196 #: conf.py:209
msgid "Idle" msgid "Idle"
msgstr "Boşta" msgstr "Boşta"
#: django_q/conf.py:197 #: conf.py:210
msgid "Stopped" msgid "Stopped"
msgstr "Durdu" msgstr "Durdu"
#: django_q/conf.py:198 #: conf.py:211
msgid "Stopping" msgid "Stopping"
msgstr "Durduruluyor" msgstr "Durduruluyor"
#. Translators: help text for qcluster management command #. Translators: help text for qcluster management command
#: django_q/management/commands/qcluster.py:9 #: management/commands/qcluster.py:9
msgid "Starts a Django Q Cluster." msgid "Starts a Django Q Cluster."
msgstr "Bir Django Q Cluster çalıştırır." msgstr "Bir Django Q Cluster çalıştırır."
#. Translators: help text for qinfo management command #. Translators: help text for qinfo management command
#: django_q/management/commands/qinfo.py:11 #: management/commands/qinfo.py:11
msgid "General information over all clusters." msgid "General information over all clusters."
msgstr "Tüm cluster'lar için genel bilgiler." msgstr "Tüm cluster'lar için genel bilgiler."
#. Translators: help text for qmemory management command #. Translators: help text for qmemory management command
#: django_q/management/commands/qmemory.py:9 #: management/commands/qmemory.py:9
msgid "Monitors Q Cluster memory usage" msgid "Monitors Q Cluster memory usage"
msgstr "Q Cluster'ın bellek kullanımını izler" msgstr "Q Cluster'ın bellek kullanımını izler"
#. Translators: help text for qmonitor management command #. Translators: help text for qmonitor management command
#: django_q/management/commands/qmonitor.py:9 #: management/commands/qmonitor.py:9
msgid "Monitors Q Cluster activity" msgid "Monitors Q Cluster activity"
msgstr "Q Cluster'ın aktivitelerini izler" msgstr "Q Cluster'ın aktivitelerini izler"
#: django_q/models.py:119 #: models.py:125
msgid "Successful task" msgid "Successful task"
msgstr "Başarılı iş" msgstr "Başarılı iş"
#: django_q/models.py:120 #: models.py:126
msgid "Successful tasks" msgid "Successful tasks"
msgstr "Başarılı işler" msgstr "Başarılı işler"
#: django_q/models.py:135 #: models.py:141
msgid "Failed task" msgid "Failed task"
msgstr "Başarısız iş" msgstr "Başarısız iş"
#: django_q/models.py:136 #: models.py:142
msgid "Failed tasks" msgid "Failed tasks"
msgstr "Başarısız işler" msgstr "Başarısız işler"
#: django_q/models.py:160 #: models.py:150 models.py:234
msgid "Please install croniter to enable cron expressions"
msgstr "Cron expressions'ları açmak için croniter yükleyin"
#: models.py:170
msgid "e.g. 1, 2, 'John'" msgid "e.g. 1, 2, 'John'"
msgstr "Örneğin: 1, 2, 'Melih'" msgstr "Örneğin: 1, 2, 'Melih'"
#: django_q/models.py:162 #: models.py:172
msgid "e.g. x=1, y=2, name='John'" msgid "e.g. x=1, y=2, name='John'"
msgstr "Örneğin: x=1, y=2, name='Melih'" msgstr "Örneğin: x=1, y=2, name='Melih'"
#: django_q/models.py:176 #: models.py:186
msgid "Once" msgid "Once"
msgstr "Bir kere" msgstr "Bir kere"
#: django_q/models.py:177 #: models.py:187
msgid "Minutes" msgid "Minutes"
msgstr "Dakika" msgstr "Dakika"
#: django_q/models.py:178 #: models.py:188
msgid "Hourly" msgid "Hourly"
msgstr "Saatlik" msgstr "Saatlik"
#: django_q/models.py:179 #: models.py:189
msgid "Daily" msgid "Daily"
msgstr "Günlük" msgstr "Günlük"
#: django_q/models.py:180 #: models.py:190
msgid "Weekly" msgid "Weekly"
msgstr "Haftalık" msgstr "Haftalık"
#: django_q/models.py:181 #: models.py:191
#, fuzzy #, fuzzy
#| msgid "Weekly" #| msgid "Weekly"
msgid "Biweekly" msgid "Biweekly"
msgstr "İki haftada bir" msgstr "İki haftada bir"
#: django_q/models.py:182 #: models.py:192
msgid "Monthly" msgid "Monthly"
msgstr "Aylık" msgstr "Aylık"
#: django_q/models.py:183 #: models.py:193
#, fuzzy #, fuzzy
#| msgid "Monthly" #| msgid "Monthly"
msgid "Bimonthly" msgid "Bimonthly"
msgstr "İki ayda bir" msgstr "İki ayda bir"
#: django_q/models.py:184 #: models.py:194
msgid "Quarterly" msgid "Quarterly"
msgstr "Bir Çeyrek (3 Ay)" msgstr "Bir Çeyrek (3 Ay)"
#: django_q/models.py:185 #: models.py:195
msgid "Yearly" msgid "Yearly"
msgstr "Yıllık" msgstr "Yıllık"
#: django_q/models.py:186 #: models.py:196
msgid "Cron" msgid "Cron"
msgstr "" msgstr ""
#: django_q/models.py:189 #: models.py:199
msgid "Schedule Type" msgid "Schedule Type"
msgstr "Zamanlama Tipi" msgstr "Zamanlama Tipi"
#: django_q/models.py:192 #: models.py:202
msgid "Number of minutes for the Minutes type" msgid "Number of minutes for the Minutes type"
msgstr "Dakika tipine göre dakika sayısı" msgstr "Dakika tipine göre dakika sayısı"
#: django_q/models.py:195 #: models.py:205
msgid "Repeats" msgid "Repeats"
msgstr "Tekrar eder" msgstr "Tekrar eder"
#: django_q/models.py:195 #: models.py:205
msgid "n = n times, -1 = forever" msgid "n = n times, -1 = forever"
msgstr "n = n kere, -1 = sonsuza kadar" msgstr "n = n kere, -1 = sonsuza kadar"
#: django_q/models.py:198 #: models.py:208
msgid "Next Run" msgid "Next Run"
msgstr "Bir dahaki çalışma tarihi" msgstr "Bir dahaki çalışma tarihi"
#: django_q/models.py:205 #: models.py:215
msgid "Cron expression" msgid "Cron expression"
msgstr "" msgstr ""
#: django_q/models.py:235 #: models.py:224
msgid "Name of kwarg to pass intended schedule date"
msgstr "Geçilecek kwarg'ın adı öngörülen program tarihi"
#: models.py:299
msgid "Scheduled task" msgid "Scheduled task"
msgstr "Zamanlanmış iş" msgstr "Zamanlanmış iş"
#: django_q/models.py:236 #: models.py:300
msgid "Scheduled tasks" msgid "Scheduled tasks"
msgstr "Zamanlanmış işler" msgstr "Zamanlanmış işler"
#: django_q/models.py:262 #: models.py:326
msgid "Queued task" msgid "Queued task"
msgstr "Sıraya alınmış iş" msgstr "Sıraya alınmış iş"
#: django_q/models.py:263 #: models.py:327
msgid "Queued tasks" msgid "Queued tasks"
msgstr "Sıraya alınmış işler" msgstr "Sıraya alınmış işler"
#: django_q/monitor.py:62 django_q/monitor.py:339 #: monitor.py:64 monitor.py:348
msgid "Host" msgid "Host"
msgstr "" msgstr ""
#: django_q/monitor.py:66 django_q/monitor.py:343 django_q/monitor.py:450 #: monitor.py:68 monitor.py:352 monitor.py:459
msgid "Id" msgid "Id"
msgstr "" msgstr ""
#: django_q/monitor.py:70 #: monitor.py:72
msgid "State" msgid "State"
msgstr "Durum" msgstr "Durum"
#: django_q/monitor.py:74 #: monitor.py:76
msgid "Pool" msgid "Pool"
msgstr "Havuz" msgstr "Havuz"
#: django_q/monitor.py:78 #: monitor.py:80
msgid "TQ" msgid "TQ"
msgstr "" msgstr ""
#: django_q/monitor.py:82 #: monitor.py:84
msgid "RQ" msgid "RQ"
msgstr "" msgstr ""
#: django_q/monitor.py:86 #: monitor.py:88
msgid "RC" msgid "RC"
msgstr "" msgstr ""
#: django_q/monitor.py:90 #: monitor.py:92
msgid "Up" msgid "Up"
msgstr "" msgstr ""
#: django_q/monitor.py:170 django_q/monitor.py:279 #: monitor.py:172 monitor.py:286
msgid "Queued" msgid "Queued"
msgstr "Sıraya alınmış" msgstr "Sıraya alınmış"
#: django_q/monitor.py:178 #: monitor.py:180
msgid "Success" msgid "Success"
msgstr "Başarılı olanlar" msgstr "Başarılı olanlar"
#: django_q/monitor.py:188 django_q/monitor.py:287 #: monitor.py:190 monitor.py:294
msgid "Failures" msgid "Failures"
msgstr "Başarısız olanlar" msgstr "Başarısız olanlar"
#: django_q/monitor.py:199 django_q/monitor.py:485 #: monitor.py:201 monitor.py:498
msgid "[Press q to quit]" msgid "[Press q to quit]"
msgstr "[Çıkmak için q'ya basın]" msgstr "[Çıkmak için q'ya basın]"
#: django_q/monitor.py:223 #: monitor.py:227
msgid "day" msgid "day"
msgstr "gün" msgstr "gün"
#: django_q/monitor.py:244 #: monitor.py:248
msgid "second" msgid "second"
msgstr "saniye" msgstr "saniye"
#: django_q/monitor.py:247 #: monitor.py:251
msgid "minute" msgid "minute"
msgstr "dakika" msgstr "dakika"
#: django_q/monitor.py:250 #: monitor.py:254
msgid "hour" msgid "hour"
msgstr "saat" msgstr "saat"
#: django_q/monitor.py:260 #: monitor.py:263
#, python-format #, python-format
msgid "-- %(prefix)s %(version)s on %(info)s --" msgid "-- %(prefix)s %(version)s on %(info)s --"
msgstr "-- %(prefix)s %(version)s üzerinde %(info)s --" msgstr "-- %(prefix)s %(version)s üzerinde %(info)s --"
#: django_q/monitor.py:266 #: monitor.py:273
msgid "Clusters" msgid "Clusters"
msgstr "" msgstr ""
#: django_q/monitor.py:270 #: monitor.py:277
msgid "Workers" msgid "Workers"
msgstr "" msgstr ""
#: django_q/monitor.py:274 #: monitor.py:281
msgid "Restarts" msgid "Restarts"
msgstr "Yeniden çalıştırmalar" msgstr "Yeniden çalıştırmalar"
#: django_q/monitor.py:283 #: monitor.py:290
msgid "Successes" msgid "Successes"
msgstr "Başarılı olanlar" msgstr "Başarılı olanlar"
#: django_q/monitor.py:292 #: monitor.py:299
msgid "Schedules" msgid "Schedules"
msgstr "Zamanlanmışlar" msgstr "Zamanlanmışlar"
#: django_q/monitor.py:296 #: monitor.py:303
#, python-format #, python-format
msgid "Tasks/%(per)s" msgid "Tasks/%(per)s"
msgstr "İş/%(per)s" msgstr "İş/%(per)s"
#: django_q/monitor.py:300 #: monitor.py:307
msgid "Avg time" msgid "Avg time"
msgstr "Ortalama süre" msgstr "Ortalama süre"
#: django_q/monitor.py:348 #: monitor.py:357
msgid "Available (%)" msgid "Available (%)"
msgstr "Müsait (%) " msgstr "Müsait (%) "
#: django_q/monitor.py:354 #: monitor.py:363
msgid "Available (MB)" msgid "Available (MB)"
msgstr "Müsait (MB)" msgstr "Müsait (MB)"
#: django_q/monitor.py:359 #: monitor.py:368
msgid "Total (MB)" msgid "Total (MB)"
msgstr "Toplam (MB)" msgstr "Toplam (MB)"
#: django_q/monitor.py:364 #: monitor.py:373
msgid "Sentinel (MB)" msgid "Sentinel (MB)"
msgstr "" msgstr ""
#: django_q/monitor.py:370 #: monitor.py:379
msgid "Monitor (MB)" msgid "Monitor (MB)"
msgstr "İzleme (MB)" msgstr "İzleme (MB)"
#: django_q/monitor.py:376 #: monitor.py:385
msgid "Workers (MB)" msgid "Workers (MB)"
msgstr "" msgstr ""
#: django_q/monitor.py:478 #: monitor.py:487
#, python-format #, python-format
msgid "Available lowest (): %(memory_percent)s ((at)s)" msgid "Available lowest (): %(memory_percent)s ((at)s)"
msgstr "Mevcut en düşük (): %(memory_percent)s ((at)s)" msgstr "Mevcut en düşük (): %(memory_percent)s ((at)s)"
#: django_q/monitor.py:496 #: monitor.py:509
msgid "No clusters appear to be running." msgid "No clusters appear to be running."
msgstr "Hiçbir küme çalışıyor görünmüyor." msgstr "Hiçbir küme çalışıyor görünmüyor."
#: django_q/signals.py:22 #: signals.py:22
#, python-format #, python-format
msgid "malformed return hook '%(hook)s' for [%(name)s]" msgid "malformed return hook '%(hook)s' for [%(name)s]"
msgstr "" msgstr ""
#: django_q/signals.py:30 #: signals.py:30
#, python-format #, python-format
msgid "return hook %(hook)s failed on [%(name)s] because %(error)s" msgid "return hook %(hook)s failed on [%(name)s] because %(error)s"
msgstr "" msgstr ""
#, python-format
#~ msgid ""
#~ "Could not process '%(func_name)s'. Check the location of the function and "
#~ "the args/kwargs."
#~ msgstr ""
#~ "%(func_name)s' işlenemedi. İşlevin konumunu ve args/kwargs öğelerini "
#~ "kontrol edin."
@@ -0,0 +1,25 @@
# Generated by Django 4.1.2 on 2023-01-15 22:34
from django.db import migrations, models
import django_q.models
class Migration(migrations.Migration):
dependencies = [
("django_q", "0015_alter_schedule_schedule_type"),
]
operations = [
migrations.AddField(
model_name="schedule",
name="intended_date_kwarg",
field=models.CharField(
blank=True,
help_text="Name of kwarg to pass intended schedule date",
max_length=100,
null=True,
validators=[django_q.models.validate_kwarg],
),
),
]
+12
View File
@@ -1,4 +1,5 @@
from datetime import datetime, timedelta from datetime import datetime, timedelta
from keyword import iskeyword
# Django # Django
from django import get_version from django import get_version
@@ -153,6 +154,10 @@ def validate_cron(value):
raise ValidationError(e) raise ValidationError(e)
def validate_kwarg(value):
return value.isidentifier() and not iskeyword(value)
class Schedule(models.Model): class Schedule(models.Model):
name = models.CharField(max_length=100, null=True, blank=True) name = models.CharField(max_length=100, null=True, blank=True)
func = models.CharField(max_length=256, help_text="e.g. module.tasks.function") func = models.CharField(max_length=256, help_text="e.g. module.tasks.function")
@@ -211,6 +216,13 @@ class Schedule(models.Model):
) )
task = models.CharField(max_length=100, null=True, editable=False) task = models.CharField(max_length=100, null=True, editable=False)
cluster = models.CharField(max_length=100, default=None, null=True, blank=True) cluster = models.CharField(max_length=100, default=None, null=True, blank=True)
intended_date_kwarg = models.CharField(
max_length=100,
null=True,
blank=True,
validators=[validate_kwarg],
help_text=_("Name of kwarg to pass intended schedule date"),
)
def calculate_next_run(self, next_run=None): def calculate_next_run(self, next_run=None):
# next run is always in UTC # next run is always in UTC
+3
View File
@@ -90,6 +90,7 @@ def schedule(func, *args, **kwargs):
:type next_run: datetime.datetime :type next_run: datetime.datetime
:param cluster: optional cluster name. :param cluster: optional cluster name.
:param cron: optional cron expression :param cron: optional cron expression
:param intended_date_kwarg: optional identifier to pass intended schedule date.
:param kwargs: function keyword arguments. :param kwargs: function keyword arguments.
:return: the schedule object. :return: the schedule object.
:rtype: Schedule :rtype: Schedule
@@ -102,6 +103,7 @@ def schedule(func, *args, **kwargs):
next_run = kwargs.pop("next_run", timezone.now()) next_run = kwargs.pop("next_run", timezone.now())
cron = kwargs.pop("cron", None) cron = kwargs.pop("cron", None)
cluster = kwargs.pop("cluster", None) cluster = kwargs.pop("cluster", None)
intended_date_kwarg = kwargs.pop("intended_date_kwarg", None)
# check for name duplicates instead of am unique constraint # check for name duplicates instead of am unique constraint
if name and Schedule.objects.filter(name=name).exists(): if name and Schedule.objects.filter(name=name).exists():
@@ -120,6 +122,7 @@ def schedule(func, *args, **kwargs):
next_run=next_run, next_run=next_run,
cron=cron, cron=cron,
cluster=cluster, cluster=cluster,
intended_date_kwarg=intended_date_kwarg,
) )
# make sure we trigger validation # make sure we trigger validation
s.full_clean() s.full_clean()
+42 -48
View File
@@ -50,25 +50,11 @@ def orm_broker(monkeypatch) -> None:
monkeypatch.setattr(Conf, "ORM", "default") monkeypatch.setattr(Conf, "ORM", "default")
@pytest.fixture
def orm_no_replica_broker(orm_broker, monkeypatch) -> Broker:
"""Generates a Broker with a disabled read replica database configuration."""
monkeypatch.setattr(Conf, "HAS_REPLICA", False)
return get_broker(list_key="scheduler_test:q")
@pytest.fixture
def orm_replica_broker(orm_broker, monkeypatch) -> Broker:
"""Generates a Broker with read replica database configuration."""
monkeypatch.setattr(Conf, "HAS_REPLICA", True)
return get_broker(list_key="scheduler_test:q")
REPLICA_DATABASE_ROUTERS = [ REPLICA_DATABASE_ROUTERS = [
f"{TestingReplicaDatabaseRouter.__module__}.{TestingReplicaDatabaseRouter.__name__}" f"{TestingReplicaDatabaseRouter.__module__}.{TestingReplicaDatabaseRouter.__name__}"
] ]
REPLICA_DATABASES = { REPLICA_DATABASES = {
"default": { "writable": {
"ENGINE": "django.db.backends.sqlite3", "ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(BASE_DIR, "db.sqlite3"), "NAME": os.path.join(BASE_DIR, "db.sqlite3"),
}, },
@@ -417,43 +403,54 @@ def test_scheduler(broker, monkeypatch):
assert task_queue.qsize() == 1 assert task_queue.qsize() == 1
@override_settings(
DATABASE_ROUTERS=REPLICA_DATABASE_ROUTERS, DATABASES=REPLICA_DATABASES
)
@pytest.mark.django_db @pytest.mark.django_db
def test_scheduler_atomic_transaction_must_specify_a_database_when_no_replicas_are_used( def test_intended_schedule_kwarg(broker, monkeypatch):
orm_no_replica_broker: Broker, broker.list_key = "scheduler_test:q"
): broker.delete_queue()
""" run_date = timezone.now()-timedelta(hours=1)
GIVEN a environment without a read replica database schedule = create_schedule(
WHEN the scheduler is called "math.copysign",
THEN the transaction atomic must be called using the configured database in the 1,
Conf.ORM settings. -1,
""" name="test math",
broker = orm_no_replica_broker hook="django_q.tests.tasks.result",
with mock.patch("django_q.cluster.db") as mocked_db: schedule_type=Schedule.HOURLY,
scheduler(broker=broker) repeats=1,
# The router should correctly set the database to use! next_run=run_date,
mocked_db.transaction.atomic.assert_called_with(using=broker.connection.db) intended_date_kwarg='intended_date',
)
assert schedule.last_run() is None
assert schedule.intended_date_kwarg == 'intended_date'
# run scheduler
scheduler(broker=broker)
# set up the workflow
task_queue = Queue()
stop_event = Event()
stop_event.set()
# push it
pusher(task_queue, stop_event, broker=broker)
assert task_queue.qsize() == 1
task = task_queue.get()
assert 'intended_date' in task['kwargs']
assert task['kwargs']['intended_date'] == run_date.isoformat()
@override_settings( @override_settings(
DATABASE_ROUTERS=REPLICA_DATABASE_ROUTERS, DATABASES=REPLICA_DATABASES DATABASE_ROUTERS=REPLICA_DATABASE_ROUTERS, DATABASES=REPLICA_DATABASES
) )
@pytest.mark.django_db @pytest.mark.django_db
def test_scheduler_atomic_must_specify_no_db_when_read_write_replicas_are_used( def test_scheduler_atomic_must_specify_the_write_db(
orm_replica_broker: Broker, orm_broker: Broker,
): ):
""" """
GIVEN a environment with a read/write configured replica database GIVEN a environment with a read/write configured replica database
WHEN the scheduler is called WHEN the scheduler is called
THEN the transaction must be called without a specific database, thus letting the THEN the transaction must be called with the write database.
database router pick.
""" """
with mock.patch("django_q.cluster.db") as mocked_db: broker = get_broker(list_key="scheduler_test:q")
scheduler(broker=orm_replica_broker) with mock.patch("django_q.cluster.db.transaction") as mocked_db:
# No specific databases should be set here, this is the job of the router! scheduler(broker=broker)
mocked_db.transaction.atomic.assert_called_with() mocked_db.atomic.assert_called_with(using="writable")
@override_settings( @override_settings(
@@ -461,20 +458,17 @@ def test_scheduler_atomic_must_specify_no_db_when_read_write_replicas_are_used(
) )
@pytest.mark.django_db @pytest.mark.django_db
def test_scheduler_atomic_must_specify_the_database_based_on_router_redirection( def test_scheduler_atomic_must_specify_the_database_based_on_router_redirection(
orm_no_replica_broker: Broker, orm_broker: Broker,
): ):
""" """
GIVEN a environment without a read replica database GIVEN a environment without a read replica database
WHEN the scheduler is called WHEN the scheduler is called
THEN the transaction atomic must be called using the configured database in the THEN the transaction atomic must be called using the default connection.
Conf.ORM settings.
""" """
broker = orm_no_replica_broker broker = get_broker(list_key="scheduler_test:q")
with mock.patch("django_q.cluster.db") as mocked_db: with mock.patch("django_q.cluster.db.transaction") as mocked_db:
scheduler(broker=broker) scheduler(broker=broker)
# The router should correctly set the database to use! mocked_db.atomic.assert_called_with(using="default")
assert broker.connection.db == "default"
mocked_db.transaction.atomic.assert_called_with(using=broker.connection.db)
def test_localtime(): def test_localtime():
@@ -12,9 +12,9 @@ class TestingReplicaDatabaseRouter:
def db_for_write(self, model, **hints): def db_for_write(self, model, **hints):
""" """
Always write to DEFAULT database Always write to WRITABLE database
""" """
return "default" return "writable"
class TestingMultipleAppsDatabaseRouter: class TestingMultipleAppsDatabaseRouter:
+1 -1
View File
@@ -75,7 +75,7 @@ author = "Ilan Steemers, Stan Triepels"
# The short X.Y version. # The short X.Y version.
version = "1.4" version = "1.4"
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = "1.4.9" release = "1.4.11"
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
-10
View File
@@ -317,16 +317,6 @@ Using the Django ORM backend will also enable the Queued Tasks table in the Admi
If you need better performance , you should consider using a different database backend than the main project. If you need better performance , you should consider using a different database backend than the main project.
Set ``orm`` to the name of that database connection and make sure you run migrations on it using the ``--database`` option. Set ``orm`` to the name of that database connection and make sure you run migrations on it using the ``--database`` option.
When using the Django database as a message broker, you can set the ``has_replica`` boolean keyword to ensure Django-Q2 works properly letting a `Database Router <https://docs.djangoproject.com/en/3.2/topics/db/multi-db/>`__. ::
# example ORM broker connection with replica database
Q_CLUSTER = {
...
'orm': 'default',
'has_replica': True
}
.. _mongo_configuration: .. _mongo_configuration:
mongo mongo
+4
View File
@@ -55,6 +55,10 @@ Optional
$ pip install psutil $ pip install psutil
- `setproctitle <https://github.com/dvarrazzo/py-setproctitle>`__ python module to customize the process title by Daniele Varrazzo', is an optional requirement used to set informative process titles::
$ pip install setproctitle
- `Hiredis <https://github.com/redis/hiredis>`__ parser. This C library maintained by the core Redis team is faster than the standard PythonParser during high loads:: - `Hiredis <https://github.com/redis/hiredis>`__ parser. This C library maintained by the core Redis team is faster than the standard PythonParser during high loads::
$ pip install hiredis $ pip install hiredis
+9
View File
@@ -69,6 +69,10 @@ You can change this by setting the :ref:`catch_up` configuration setting to ``Fa
The scheduler will then skip execution of scheduled events in the past. The scheduler will then skip execution of scheduled events in the past.
Instead those tasks will run once when the cluster starts again and the scheduler will find the next available slot in the future according to original schedule parameters. Instead those tasks will run once when the cluster starts again and the scheduler will find the next available slot in the future according to original schedule parameters.
When :ref:`catch_up` is to ``True`` it may be useful for the task to know what was the date and time it was originally intended to run at.
To achieve this, pass an identifier name to parameter `intended_date_kwarg` when creating the schedule. The intended datetime will then be passed - in isoformat string - as
a kwarg with that identifier name to the task that has been created.
Management Commands Management Commands
------------------- -------------------
@@ -123,6 +127,7 @@ Reference
:param int repeats: Number of times to repeat schedule. -1=Always, 0=Never, n =n. :param int repeats: Number of times to repeat schedule. -1=Always, 0=Never, n =n.
:param datetime next_run: Next or first scheduled execution datetime. :param datetime next_run: Next or first scheduled execution datetime.
:param str cluster: optional cluster name. Task will be executed only on a cluster with a matching :ref:`name`. :param str cluster: optional cluster name. Task will be executed only on a cluster with a matching :ref:`name`.
:param str intended_date_kwarg: optional identifier to pass intended schedule date.
:param dict q_options: options passed to async_task for this schedule :param dict q_options: options passed to async_task for this schedule
:param kwargs: optional keyword arguments for the scheduled function. :param kwargs: optional keyword arguments for the scheduled function.
@@ -186,6 +191,10 @@ Reference
Task will be executed only on a cluster with a matching :ref:`name`. Task will be executed only on a cluster with a matching :ref:`name`.
.. py:attribute:: intended_date_kwarg
Name of kwarg to pass intended schedule date.
.. py:attribute:: next_run .. py:attribute:: next_run
Datetime of the next scheduled execution. Datetime of the next scheduled execution.
Generated
+854 -762
View File
File diff suppressed because it is too large Load Diff
+3 -2
View File
@@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "django-q2" name = "django-q2"
version = "1.4.9" version = "1.4.11"
packages = [ packages = [
{ include = "django_q" }, { include = "django_q" },
] ]
@@ -59,6 +59,7 @@ croniter = { version = "^1.3.7", optional = true }
django-q-rollbar = {version = ">=0.1", optional = true} django-q-rollbar = {version = ">=0.1", optional = true}
django-q-sentry = {version = ">=0.1", optional = true} django-q-sentry = {version = ">=0.1", optional = true}
redis = {version = "^4.3.4", optional = true} redis = {version = "^4.3.4", optional = true}
setproctitle = {version = "^1.3.2", optional = true}
[tool.poetry.dev-dependencies] [tool.poetry.dev-dependencies]
@@ -72,7 +73,7 @@ isort = {extras = ["requirements_deprecated_finder"], version = "^5.10.1"}
[tool.poetry.extras] [tool.poetry.extras]
requires = ["poetry_core>=1.0.0"] requires = ["poetry_core>=1.0.0"]
build-backend = ["poetry.core.masonry.api"] build-backend = ["poetry.core.masonry.api"]
testing = ["django-redis", "croniter", "hiredis", "psutil", "iron-mq", "boto3", "pymongo", "blessed", "redis"] testing = ["django-redis", "croniter", "hiredis", "psutil", "iron-mq", "boto3", "pymongo", "blessed", "redis", "setproctitle"]
rollbar = ["django-q-rollbar"] rollbar = ["django-q-rollbar"]
sentry = ["django-q-sentry"] sentry = ["django-q-sentry"]