MCPcopy Create free account

hub / github.com/celery/celery / functions

Functions9,499 in github.com/celery/celery

↓ 6 callersMethodmget
(self, keys)
t/unit/backends/test_redis.py:121
↓ 6 callersFunctionmongo_backend_factory
Return a factory that creates MongoBackend instance with given serializer, including BSON.
t/unit/backends/test_mongodb.py:959
↓ 6 callersFunctionnode_format
Format worker node name (name@host.com).
celery/utils/nodenames.py:89
↓ 6 callersFunctionnok
(value)
celery/worker/control.py:36
↓ 6 callersMethodnow
(self)
celery/schedules.py:90
↓ 6 callersFunctionold_repr
(s)
t/unit/utils/test_saferepr.py:54
↓ 6 callersMethodon_chord_header_start
(self, actual_sig: Signature, **header)
t/unit/tasks/test_stamping.py:143
↓ 6 callersMethodon_error
(*args)
t/unit/tasks/test_canvas.py:1767
↓ 6 callersFunctionon_task
(body, message)
celery/contrib/migrate.py:195
↓ 6 callersMethodopen
(self)
celery/platforms.py:397
↓ 6 callersFunctionproto1_to_proto2
Convert Task message protocol 1 arguments to protocol 2. Returns: Tuple: of ``(body, headers, already_decoded_status, utc)``
celery/worker/strategy.py:66
↓ 6 callersMethodpublish
Publish event using custom :class:`~kombu.Producer`. The supplied producer remains usable after this dispatcher is closed. Arguments
celery/events/dispatcher.py:119
↓ 6 callersMethodpurge
Check oldest items and remove them if needed. Arguments: now (float): Time of purging -- by default right now. Th
celery/utils/collections.py:629
↓ 6 callersMethodquery_task
Return details of tasks currently scheduled, reserved or executed by workers. Arguments: *ids (str): IDs of tasks to be queried.
celery/app/control.py:342
↓ 6 callersMethodregister_task
Utility for registering a task-based class. Note: This is here for compatibility with old Celery 1.0 style task class
celery/app/base.py:777
↓ 6 callersMethodremove
Remove the lock.
celery/platforms.py:187
↓ 6 callersFunctionreraise
Reraise exception.
celery/exceptions.py:108
↓ 6 callersMethodreset
(self, *s: object)
celery/utils/term.py:160
↓ 6 callersMethodrun
(self, x)
t/unit/app/test_app.py:240
↓ 6 callersMethodrun
(self, files)
celery/bin/logtool.py:57
↓ 6 callersMethodsay
(self, m, newline=True, file=None)
celery/bin/multi.py:192
↓ 6 callersMethodschedule_thread
Set up a thread that runs on the event loop.
t/unit/backends/test_asynchronous.py:386
↓ 6 callersMethodserialize
Serialize data structure into string.
celery/security/serialization.py:31
↓ 6 callersFunctionset_queues
(app, **queues)
t/unit/app/test_routes.py:23
↓ 6 callersMethodsetup
(self, loglevel=None, logfile=None, redirect_stdouts=False, redirect_level='WARNING', colorize=N
celery/app/log.py:63
↓ 6 callersMethodshrink
(self, n=1)
celery/concurrency/gevent.py:137
↓ 6 callersFunctionstart_partial_read
Register a ``_recv_message`` generator on ``hub`` for ``r`` that has read the header and the first half of ``message``'s body. Returns the bo
t/unit/concurrency/test_prefork.py:114
↓ 6 callersMethodtask_context
(self, sig, **kwargs)
t/unit/worker/test_loops.py:190
↓ 6 callersMethodteardown_thread
Wait for a thread to stop.
t/unit/backends/test_asynchronous.py:392
↓ 6 callersMethodtick
Run a tick - one iteration of the scheduler. Executes one due task per call. Returns: float: preferred delay in seconds
celery/beat.py:343
↓ 6 callersMethodtimeout_then_error
(self, mock)
t/unit/worker/test_loops.py:101
↓ 6 callersMethodupdate
(self, *args, **kwargs)
celery/utils/collections.py:299
↓ 6 callersMethodupdate
Update this set from other LimitedSet, dict or iterable.
celery/utils/collections.py:580
↓ 6 callersMethodwrite
(self, data: bytes | str)
celery/utils/text.py:206
↓ 5 callersMethodFMT
(self, fmt, *args, **kwargs)
celery/utils/graph.py:295
↓ 5 callersMethod__get__
(self, obj, type=None)
celery/local.py:436
↓ 5 callersMethod__init__
(self, *tasks, **options)
celery/canvas.py:1863
↓ 5 callersMethod__setattr__
(self, name, value)
celery/local.py:152
↓ 5 callersMethod_after_fork
(self)
celery/app/base.py:1468
↓ 5 callersFunction_available
(n)
t/unit/utils/test_sysinfo.py:68
↓ 5 callersMethod_call_task_errbacks
(self, request, exc, traceback)
celery/backends/base.py:391
↓ 5 callersMethod_chord_part_context
(self, b)
t/unit/backends/test_base.py:1932
↓ 5 callersMethod_create_binding
Create new binding for task with id.
celery/backends/rpc.py:223
↓ 5 callersFunction_create_chord_error_with_cause
Create a ChordError preserving the original exception as __cause__. This helper reduces code duplication across the codebase when creating Ch
celery/backends/base.py:138
↓ 5 callersMethod_do_enter
(self, meth: str, *args: Any, **kwargs: Any)
celery/utils/timer2.py:116
↓ 5 callersMethod_ensure_not_shut_down
Currently used to ensure the drainer has not run to completion. Raises if the shutdown event has been signaled (either due to an exception
celery/backends/asynchronous.py:192
↓ 5 callersMethod_evict
(self, limit: int = 100, range=range)
celery/utils/collections.py:740
↓ 5 callersMethod_get_connection
Connect to the CouchDB server.
celery/backends/couchdb.py:57
↓ 5 callersMethod_get_hub
(self)
t/unit/concurrency/test_prefork.py:533
↓ 5 callersMethod_index
(self, id, body, **kwargs)
celery/backends/elasticsearch.py:147
↓ 5 callersMethod_install
(self, worker, sig='SIGTERM', how='Warm', callback=None, exitcode=0)
t/unit/apps/test_worker.py:153
↓ 5 callersMethod_maybe_set_cache
(self, meta)
celery/result.py:463
↓ 5 callersFunction_merge_dictionaries
Merge two dictionaries recursively into the first one. Example: >>> d1 = {'dict': {'a': 1}, 'list': [1, 2], 'tuple': (1, 2)} >>> d2 = {'d
celery/canvas.py:227
↓ 5 callersMethod_mock_s3_resource
(self)
t/unit/backends/test_s3.py:178
↓ 5 callersMethod_process_task
Process task by sending it to the pool of workers.
celery/worker/worker.py:291
↓ 5 callersMethod_query_task
Query task by id, falling back to deferring missing columns from database.
celery/backends/database/__init__.py:146
↓ 5 callersFunction_set_task_join_will_block
(blocks)
celery/_state.py:55
↓ 5 callersMethod_set_with_state
(self, key, value, state)
celery/backends/elasticsearch.py:128
↓ 5 callersMethod_shutdown
(self, warm=True)
celery/worker/worker.py:336
↓ 5 callersMethod_stamp_headers
Collect all stamps from visitor, headers and self, and return an idempotent dictionary of stamps. .. versionadded:: 5.3 Argu
celery/canvas.py:718
↓ 5 callersMethod_store_result
(self, tid, value, status, tb=None, request=None, using=None)
t/unit/backends/test_base.py:563
↓ 5 callersMethod_test_on_failure
(self, exception, **kwargs)
t/unit/worker/test_request.py:2153
↓ 5 callersFunctionabbr
Abbreviate word.
celery/utils/text.py:63
↓ 5 callersMethodactive
Return list of tasks currently executed by workers. Arguments: safe (Boolean): Set to True to disable deserialization. R
celery/app/control.py:138
↓ 5 callersMethodactive_queues
Return information about queues from which worker consumes tasks. Returns: Dict: Dictionary ``{HOSTNAME: [QUEUE_INFO, QUEUE_INFO,
celery/app/control.py:298
↓ 5 callersFunctionanon_nodename
Return the nodename for this process (not a worker). This is used for e.g. the origin task message field.
celery/utils/nodenames.py:61
↓ 5 callersMethodapply
Execute this task locally, by blocking until the task returns. Arguments: args (Tuple): positional arguments passed on to the tas
celery/app/task.py:966
↓ 5 callersMethodas_execution_options
(self)
celery/app/task.py:191
↓ 5 callersFunctionassert_will_not_block
()
celery/result.py:37
↓ 5 callersMethodcall_soon_ack
Execute ack/reject callback immediately, bypassing _pending_operations. In synloop (gevent/eventlet) workers, the standard call_soon defers
celery/worker/consumer/consumer.py:281
↓ 5 callersMethodcan_consume
(self)
celery/worker/consumer/tasks.py:76
↓ 5 callersMethodclose
(self)
t/unit/worker/test_worker.py:637
↓ 5 callersMethodclose
(self)
t/unit/events/test_events.py:25
↓ 5 callersMethodclose_cache
(self)
celery/fixups/django.py:280
↓ 5 callersMethodcloser
(self, mock=None, mod=0)
t/unit/worker/test_loops.py:121
↓ 5 callersMethodcollect
Collect results as they return. Iterator, like :meth:`get` will wait for the task to complete, but will also follow :class:`AsyncResu
celery/result.py:282
↓ 5 callersMethodconnection
(self)
celery/backends/couchdb.py:72
↓ 5 callersMethodconnection_or_acquire
Context used to acquire a connection from the pool. For use within a :keyword:`with` statement to get a connection from the pool if o
celery/app/base.py:1333
↓ 5 callersMethoddecode
(self, payload)
celery/backends/elasticsearch.py:245
↓ 5 callersFunctiondetached
Detach the current process in the background (daemonize). Arguments: logfile (str): Optional log file. The ability to write t
celery/platforms.py:440
↓ 5 callersMethoddraw_node
(self, obj, scheme=None, attrs=None)
celery/utils/graph.py:306
↓ 5 callersMethodenable
(self)
celery/events/dispatcher.py:101
↓ 5 callersMethodevent
(type_, timestamp=None, local_received=None, fields=None, max_drift=HEARTB
celery/events/state.py:190
↓ 5 callersMethodevent
(self, type_, timestamp=None, local_received=None, fields=None, precedence=states.precedence, se
celery/events/state.py:305
↓ 5 callersMethodexception_safe_to_retry
Check if an exception is safe to retry. Backends have to overload this method with correct predicates dealing with their exceptions.
celery/backends/base.py:920
↓ 5 callersMethodexpire
(self, key, expires)
t/unit/backends/test_redis.py:136
↓ 5 callersFunctionfd_by_path
Return a list of file descriptors. This method returns list of file descriptors corresponding to file paths passed in paths variable. Ar
celery/platforms.py:284
↓ 5 callersFunctionfirst
Return the first element in ``it`` that ``predicate`` accepts. If ``predicate`` is None it will return the first item that's not :const:`None
celery/utils/functional.py:76
↓ 5 callersMethodforget
Forget the result of this task and its parents.
celery/result.py:136
↓ 5 callersMethodfrom_kwargs
(cls, name, **kwargs)
celery/apps/multi.py:296
↓ 5 callersMethodfrom_string
Create a Crontab from a cron expression string. For example ``crontab.from_string('* * * * *')``. .. code-block:: text
celery/schedules.py:458
↓ 5 callersMethodget
(self, key)
celery/backends/dynamodb.py:526
↓ 5 callersFunctionget_current_app
Return the current app.
celery/_state.py:108
↓ 5 callersMethodget_management_url
Opening this link during debugging allows you to see the RabbitMQ management UI in your browser. Usage from a test: >>> celer
t/smoke/tests/quorum_queues/conftest.py:18
↓ 5 callersMethodget_request
(self)
t/unit/worker/test_strategy.py:119
↓ 5 callersMethodhas_event
(self, kind)
t/unit/events/test_events.py:28
↓ 5 callersMethodhas_expired
Check if the certificate has expired.
celery/security/certificate.py:44
↓ 5 callersMethodhello
(self, from_node, revoked=None)
celery/app/control.py:390
↓ 5 callersFunctionhost_format
Format host %x abbreviations.
celery/utils/nodenames.py:105
↓ 5 callersMethodimport_from_cwd
(self, module, imp=None, package=None)
celery/loaders/base.py:90
← previousnext →501–600 of 9,499, ranked by callers