MCPcopy Create free account

hub / github.com/celery/celery / functions

Functions9,499 in github.com/celery/celery

↓ 26 callersMethodas_task_v2
(self, task_id, name, args=None, kwargs=None, countdown=None, eta=None, group_id=None, grou
celery/app/amqp.py:370
↓ 26 callersFunctionsaferepr
Safe version of :func:`repr`. Warning: Make sure you set the maxlen argument, or it will be very slow for recursive objects. Wit
celery/utils/saferepr.py:66
↓ 26 callersMethodsetdefault
(self, key, default=None)
celery/utils/collections.py:294
↓ 25 callersMethod_get_result_meta
(self, result, state, traceback, request, format_date=True,
celery/backends/base.py:770
↓ 25 callersFunctionawait_redis_count
Helper to wait for a specified or well-known redis key to count to a value.
t/integration/test_canvas.py:86
↓ 25 callersMethodbroadcast
Broadcast a control command to the celery workers. Arguments: command (str): Name of command to send. arguments (Dict
celery/app/control.py:755
↓ 25 callersMethodkill_worker
Kill a Celery worker. Args: worker (CeleryTestWorker): Worker to kill. method (WorkerKill.Method): The method to kill
t/smoke/operations/worker_kill.py:19
↓ 25 callersMethodready
(self)
t/unit/tasks/test_chord.py:36
↓ 24 callersMethod_get_task_meta
(self)
celery/result.py:472
↓ 24 callersMethodassert_broadcast_called
(self, command, destination=None, callback=Non
t/unit/app/test_control.py:73
↓ 24 callersMethodclone
(self, *args, **kwargs)
t/unit/tasks/test_canvas.py:1288
↓ 24 callersMethodfail
(*args, **kwargs)
t/unit/app/test_beat.py:1913
↓ 24 callersFunctionfun
(obj)
t/unit/utils/test_utils.py:18
↓ 24 callersMethodinspect
Create new :class:`Inspect` instance.
celery/app/control.py:458
↓ 24 callersMethodmark_as_failure
Mark task as executed with failure.
celery/backends/base.py:298
↓ 24 callersFunctionmaybe_list
(l, sep=',')
celery/bin/graph.py:40
↓ 24 callersFunctionmaybe_signature
Ensure obj is a signature, or None. Arguments: d (Optional[Union[abstract.CallableSignature, Mapping]]): Signature or dict-se
celery/canvas.py:2883
↓ 24 callersMethodnow
Return the current time and date as a datetime.
celery/app/base.py:1382
↓ 23 callersFunction_amqp_connection
()
t/unit/worker/test_consumer.py:1909
↓ 23 callersMethoddrain_events
(timeout)
t/unit/worker/test_loops.py:782
↓ 23 callersMethodecho
(self, message=None, **kwargs)
celery/bin/base.py:69
↓ 23 callersMethodis_set
(self)
celery/backends/asynchronous.py:56
↓ 23 callersMethodmock_pymemcache
Mock pymemcache modules.
t/unit/backends/test_cache.py:259
↓ 23 callersFunctionopen
Patch builtins.open so that it returns StringIO object. :param side_effect: Additional side effect for when the open context is entered.
t/unit/conftest.py:739
↓ 23 callersMethodrevoke
Send revoke signal to all workers for all tasks in the set. Arguments: terminate (bool): Also terminate the process currently wor
celery/result.py:717
↓ 23 callersMethodsignature
Create signature. Returns: :class:`~celery.signature`: object for this task, wrapping arguments and execution op
celery/app/task.py:1059
↓ 22 callersFunctionEvent
Create an event. Notes: An event is simply a dictionary: the only required field is ``type``. A ``timestamp`` field will be set t
celery/events/event.py:18
↓ 22 callersMethodconsume_from
(self)
celery/app/amqp.py:253
↓ 22 callersMethodfrom_dict
Create a group signature from a dictionary that represents a group. Example: >>> group_dict = { "task": "celery.g
celery/canvas.py:1808
↓ 22 callersMethodsuccessful
Return true if all tasks successful. Returns: bool: true if all of the tasks finished successfully (i.e. didn't r
celery/result.py:661
↓ 21 callersFunctionContextMock
Mock that mocks :keyword:`with` statement contexts.
celery/contrib/testing/mocks.py:128
↓ 21 callersMethodEvent
(self, id='id', clock=312, hostname='foo@example.com', pid=4312, topic='topic', ac
t/unit/worker/test_consumer.py:2095
↓ 21 callersMethod_context
(self, sig, rate_limits=True, events=True, utc=True, limit=None)
t/unit/worker/test_strategy.py:129
↓ 21 callersMethod_set_with_state
(self, key, value, state)
t/unit/backends/test_base.py:487
↓ 21 callersFunctionassert_container_exited
It might take a few moments for the container to exit after the worker is killed.
t/smoke/tests/test_worker.py:21
↓ 21 callersMethodclone
(self, *args, **kwargs)
celery/canvas.py:1178
↓ 21 callersMethodnode
(self, s: tuple[object, ...], op: str)
celery/utils/term.py:94
↓ 21 callersMethodtick
(self)
t/unit/app/test_beat.py:898
↓ 20 callersMethodConsumer
(self, hostname='foo@x.com', pid=4312)
t/unit/worker/test_consumer.py:2125
↓ 20 callersMethodapply_chord
(self, header_result_args, body, **kwargs)
celery/backends/base.py:1069
↓ 20 callersMethodcreate_state
(self, **kwargs)
t/unit/worker/test_control.py:187
↓ 20 callersFunctiontrace
( app, task, args=(), kwargs={}, propagate=False, eager=True, request=None, task_id='id-1', **opts )
t/unit/tasks/test_trace.py:24
↓ 20 callersMethodwrite
(self, data)
t/unit/conftest.py:55
↓ 19 callersMethodNoopConsumer
(self, *args, **kwargs)
t/unit/worker/test_worker.py:128
↓ 19 callersMethodResultSession
(self, session_manager=None)
celery/backends/database/__init__.py:138
↓ 19 callersMethodadd
(a, b)
t/unit/app/test_beat.py:55
↓ 19 callersMethodas_tuple
(self)
celery/result.py:123
↓ 19 callersFunctioncgroup_cpu_quota
Return the CFS CPU quota (in CPUs) that applies to this process. Walks from the process's own cgroup (``/proc/self/cgroup``, or the mount roo
celery/utils/sysinfo.py:149
↓ 19 callersMethodcrontab
(self, *args, **kwargs)
t/unit/app/test_schedules.py:1079
↓ 19 callersMethoddiscard
(self, item)
celery/utils/collections.py:622
↓ 19 callersMethodget
(self, key, default=None)
celery/utils/collections.py:270
↓ 19 callersMethodis_alive
(self)
t/unit/worker/test_autoscale.py:164
↓ 19 callersMethodjoin
Gather the results of all tasks as a list in order. Note: This can be an expensive operation for result store backend
celery/result.py:759
↓ 19 callersMethodpop_request
(self)
celery/app/task.py:1337
↓ 18 callersMethodget
(self, key)
celery/backends/base.py:1225
↓ 18 callersFunctioninfo
Log 'fmt % context' with severity 'INFO'. 'context' is also passed in extra with key 'data' for custom handlers.
celery/app/trace.py:124
↓ 18 callersMethodkill
(self)
celery/apps/multi.py:460
↓ 18 callersMethodlrange
(self, key, start, stop)
t/unit/backends/test_redis.py:154
↓ 18 callersFunctionregen
Convert iterator to an object that can be consumed multiple times. ``Regen`` takes any iterable, and if the object is an generator it will ca
celery/utils/functional.py:184
↓ 18 callersMethodschedules_equal
(self, old_schedules, new_schedules)
celery/beat.py:401
↓ 18 callersMethodupdate
Extend from iterable of results.
celery/result.py:653
↓ 17 callersFunction_fake_fs
Patch ``_read_text`` to serve ``files`` ({path: content}).
t/unit/utils/test_sysinfo.py:60
↓ 17 callersMethod_request
(self, command, **kwargs)
celery/app/control.py:107
↓ 17 callersMethodcancel_for
(self, task_id)
celery/backends/rpc.py:142
↓ 17 callersFunctiondebug
(ctx, files)
celery/bin/logtool.py:156
↓ 17 callersMethodformat
(self, record)
celery/utils/log.py:145
↓ 17 callersMethodget
(self, key)
celery/backends/s3.py:57
↓ 17 callersMethodnote
(self, msg, newline=True)
celery/bin/multi.py:208
↓ 17 callersMethodrestart
(self, *args, **kwargs)
t/unit/concurrency/test_prefork.py:305
↓ 17 callersFunctionsynloop
Fallback blocking event loop for transports that doesn't support AIO.
celery/worker/loops.py:161
↓ 17 callersMethodupdate
(self, max=None, min=None)
celery/worker/autoscale.py:111
↓ 16 callersMethodReceiver
(self, *args, **kwargs)
t/unit/events/test_snapshot.py:101
↓ 16 callersMethod_testIsClean
Assert that everything has been cleaned up automatically
t/unit/utils/test_dispatcher.py:49
↓ 16 callersMethodclose_then_error
(self, mock=None, mod=0, exc=None)
t/unit/worker/test_loops.py:108
↓ 16 callersMethodcreate_schedule_entry
(self, schedule=None, args=(), kwargs={}, options={}, task=None)
t/unit/app/test_beat.py:732
↓ 16 callersFunctionfg
(s: int)
celery/utils/term.py:32
↓ 16 callersMethodhostname
(self)
celery/worker/request.py:257
↓ 16 callersMethodping
Ping all (or specific) workers. >>> app.control.inspect().ping() {'celery@node1': {'ok': 'pong'}, 'celery@node2': {'ok': 'pong'}}
celery/app/control.py:276
↓ 16 callersMethods
(n, fail_flag=False)
t/unit/tasks/test_stamping.py:1278
↓ 15 callersMethod_when
Return a utc timestamp, make sure heapq in correct order.
celery/beat.py:314
↓ 15 callersMethoddrain_events_until
(self, p, timeout=None, interval=1, on_interval=None, wait=None)
celery/backends/asynchronous.py:90
↓ 15 callersMethodexception_to_python
Convert serialized exception to Python exception.
celery/backends/base.py:616
↓ 15 callersMethodfileno
(self)
t/unit/concurrency/test_prefork.py:77
↓ 15 callersMethodfinalize
(*args)
t/unit/tasks/test_canvas.py:3382
↓ 15 callersFunctionok
(value)
celery/worker/control.py:32
↓ 15 callersMethodparse
(self, p)
celery/apps/multi.py:317
↓ 15 callersMethodpartition
(self, sep)
t/unit/app/test_utils.py:418
↓ 15 callersMethodplay
(self)
t/unit/events/test_state.py:49
↓ 15 callersMethodremaining_estimate
Return estimate of next time to run. Returns: ~datetime.timedelta: when the periodic task should run next, or if
celery/schedules.py:895
↓ 15 callersMethodremove
Remove result from the set; it must be a member. Raises: KeyError: if the result isn't a member.
celery/result.py:630
↓ 15 callersMethodrevoke_by_stamped_headers
Send revoke signal to all workers only for tasks with matching headers values. Any worker receiving the task, or having reserved the
celery/result.py:167
↓ 15 callersMethodrevoked
Return list of revoked tasks. >>> app.control.inspect().revoked() {'celery@node1': ['16f527de-1c72-47a6-b477-c472b92fef7a']}
celery/app/control.py:247
↓ 15 callersMethodselect
Select a subset of currently defined queues to consume from. Arguments: include (Sequence[str], str): Names of queues to consume
celery/app/amqp.py:205
↓ 15 callersMethodstart
Start task consumer.
celery/worker/consumer/tasks.py:29
↓ 15 callersMethodterminate
(self)
t/unit/concurrency/test_prefork.py:299
↓ 14 callersMethodResultSet
(self)
celery/app/base.py:1663
↓ 14 callersMethod_body_to_run
Apply the chord ``x`` and return the body it was going to run.
t/unit/tasks/test_canvas.py:3088
↓ 14 callersFunction_callback_message
(app)
t/unit/app/test_amqp_callback_publish.py:10
↓ 14 callersFunction_producer
(side_effect=None)
t/unit/app/test_amqp_callback_publish.py:14
↓ 14 callersMethodacquire
Acquire lock.
celery/platforms.py:152
← previousnext →101–200 of 9,499, ranked by callers