brk-code

celery の API リファレンス

celery (celery/celery) の公開 API 400 件 —— クラス 171、関数 68、メソッド 161。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: celery/celery

種別件数
クラス171
関数68
メソッド161

API 一覧

funccelery.__main__.main() -> None
Entrypoint to the ``celery`` umbrella command.
funccelery._state.disable_trace()
Disable tracing of app instances.
funccelery._state.enable_trace()
Enable tracing of app instances.
funccelery._state.get_current_app()
Return the current app.
funccelery._state.get_current_task()
Currently executing task.
funccelery._state.set_default_app(app)
Set default app.
classcelery.app.amqp.AMQP
App AMQP API: app.amqp.
methodcelery.app.amqp.AMQP.Router(queues=None, create_missing=None)
Return the current task router.
methodcelery.app.amqp.AMQP.queues()
Queue name⇒ declaration mapping.
classcelery.app.amqp.Queues
Queue name⇒ declaration mapping.
methodcelery.app.amqp.Queues.add(queue, **kwargs)
Add new queue.
methodcelery.app.amqp.Queues.format(indent=0, indent_first=True)
Format routing table into string for log dumps.
classcelery.app.annotations.MapAnnotation
Annotation map: task_name => attributes.
funccelery.app.annotations.resolve_all(anno, task)
Resolve all pending annotations.
funccelery.app.backends.by_url(backend=None, loader=None)
Get backend class by URL.
classcelery.app.base.Celery
Celery application.
methodcelery.app.base.Celery.AsyncResult()
Create new result instance.
methodcelery.app.base.Celery.GroupResult()
Create new group result instance.
methodcelery.app.base.Celery.Task()
Base task class for this app.
methodcelery.app.base.Celery.WorkController(**kwargs)
Embeddable worker.
methodcelery.app.base.Celery.Worker()
Worker application.
methodcelery.app.base.Celery.autodiscover_tasks(packages=None, related_name='tasks', force=False)
Auto-discover task modules.
methodcelery.app.base.Celery.backend()
Current backend instance.
methodcelery.app.base.Celery.bugreport()
Return information useful in bug reports.
methodcelery.app.base.Celery.close()
Clean up after the application.
methodcelery.app.base.Celery.conf()
Current configuration.
methodcelery.app.base.Celery.control()
Remote control: :class:`~@control`.
methodcelery.app.base.Celery.create_task_cls()
Create a base task class bound to this app.
methodcelery.app.base.Celery.finalize(auto=False)
Finalize the app.
methodcelery.app.base.Celery.loader()
Current loader instance.
methodcelery.app.base.Celery.log()
Logging: :class:`~@log`.
methodcelery.app.base.Celery.now()
Return the current time and date as a datetime.
methodcelery.app.base.Celery.oid()
Universally unique identifier for this app.
methodcelery.app.base.Celery.on_init()
Optional callback called at init.
methodcelery.app.base.Celery.pool()
Broker connection pool: :class:`~@pool`.
methodcelery.app.base.Celery.select_queues(queues=None)
Select subset of queues.
methodcelery.app.base.Celery.set_current()
Make this the current app for this thread.
methodcelery.app.base.Celery.set_default()
Make this the default app for all threads.
methodcelery.app.base.Celery.start(argv=None)
Run :program:`celery` using `argv`.
methodcelery.app.base.Celery.subclass_with_self(Class, name=None, attribute='app', reverse=None, keep_reduce=False, **kw)
Subclass an app-compatible class.
methodcelery.app.base.Celery.timezone()
Current timezone for this app.
funccelery.app.bugreport(app=None)
Return information useful in bug reports.
classcelery.app.control.Control
Worker remote control client.
methodcelery.app.control.Control.inspect()
Create new :class:`Inspect` instance.
methodcelery.app.control.Control.ping(destination=None, timeout=1.0, **kwargs)
Ping all (or specific) workers.
methodcelery.app.control.Control.purge(connection=None)
Discard all waiting tasks.
methodcelery.app.control.Control.shutdown(destination=None, **kwargs)
Shutdown worker(s).
classcelery.app.control.Inspect
API for inspecting workers.
methodcelery.app.control.Inspect.clock()
Get the Clock value on workers.
methodcelery.app.control.Inspect.conf(with_defaults=False)
Return configuration of each worker.
methodcelery.app.control.Inspect.memsample()
Return sample current RSS memory usage.
methodcelery.app.control.Inspect.ping(destination=None)
Ping all (or specific) workers.
methodcelery.app.control.Inspect.revoked()
Return list of revoked tasks.
methodcelery.app.control.Inspect.stats()
Return statistics of worker.
funccelery.app.control.flatten_reply(reply)
Flatten node replies.
classcelery.app.defaults.Option
Describes a Celery configuration option.
funccelery.app.defaults.find(name, namespace='celery')
Find setting by name.
funccelery.app.defaults.flatten(d, root='', keyfilter=_flatten_keys)
Flatten settings.
classcelery.app.events.Events
Implements app.events.
classcelery.app.log.Logging
Application logging setup (app.log).
classcelery.app.log.TaskFormatter
Formatter for tasks, adding the task name and id.
classcelery.app.registry.TaskRegistry
Map of registered tasks.
methodcelery.app.registry.TaskRegistry.register(task)
Register a task in the task registry.
methodcelery.app.registry.TaskRegistry.unregister(name)
Unregister task by name.
classcelery.app.routes.MapRoute
Creates a router out of a :class:`dict`.
classcelery.app.routes.Router
Route tasks based on the :setting:`task_routes` setting.
funccelery.app.routes.prepare(routes)
Expand the :setting:`task_routes` setting.
funccelery.app.shared_task(*args, **kwargs)
Create shared task (decorator).
classcelery.app.task.Context
Task request variables (Task.request).
classcelery.app.task.Task
Task base class.
methodcelery.app.task.Task.delay(*args, **kwargs)
Star argument version of :meth:`apply_async`.
methodcelery.app.task.Task.on_bound(app)
Called when the task is bound to an app.
methodcelery.app.task.Task.on_failure(exc, task_id, args, kwargs, einfo)
Error handler.
methodcelery.app.task.Task.on_replace(sig)
Handler called when the task is replaced.
methodcelery.app.task.Task.on_retry(exc, task_id, args, kwargs, einfo)
Retry handler.
methodcelery.app.task.Task.on_success(retval, task_id, args, kwargs)
Success handler.
methodcelery.app.task.Task.replace(sig)
Replace this task, with a new task inheriting the task id.
methodcelery.app.task.Task.run(*args, **kwargs)
The body of the task executed by workers.
methodcelery.app.task.Task.s(*args, **kwargs)
Create signature.
methodcelery.app.task.Task.send_event(type_, retry=True, retry_policy=None, **fields)
Send monitoring event message.
methodcelery.app.task.Task.si(*args, **kwargs)
Create immutable signature.
methodcelery.app.task.Task.signature(args=None, *starargs, **starkwargs)
Create signature.
methodcelery.app.task.Task.update_state(task_id=None, state=None, meta=None, **kwargs)
Update task state.
classcelery.app.trace.TraceInfo
Information about task execution.
methodcelery.app.trace.TraceInfo.handle_failure(task, req, store_errors=True, call_errbacks=True)
Handle exception.
methodcelery.app.trace.TraceInfo.handle_retry(task, req, store_errors=True, **kwargs)
Handle retry exception.
funccelery.app.trace.info(fmt, context)
Log 'fmt % context' with severity 'INFO'.
funccelery.app.trace.setup_worker_optimizations(app, hostname=None)
Setup worker related optimizations.
classcelery.app.utils.AppPickler
Old application pickler/unpickler (< 3.1).
classcelery.app.utils.Settings
Celery settings object.
methodcelery.app.utils.Settings.find_option(name, namespace='')
Search for option by name.
funccelery.app.utils.filter_hidden_settings(conf)
Filter sensitive settings.
funccelery.app.utils.find_app(app, symbol_by_name=symbol_by_name, imp=import_from_cwd)
Find app by name.
classcelery.apps.beat.Beat
Beat as a service.
methodcelery.apps.beat.Beat.install_sync_handler(service:beat.Service) -> None
Install a `SIGTERM` + `SIGINT` handler saving the schedule.
classcelery.apps.multi.Cluster
Represent a cluster of workers.
classcelery.apps.multi.Node
Represents a node in a cluster.
classcelery.apps.worker.Worker
Worker as a program.
funccelery.apps.worker.on_cold_shutdown(worker:Worker)
Signal handler for cold shutdown.
funccelery.apps.worker.on_hard_shutdown(worker:Worker)
Signal handler for hard shutdown.
classcelery.backends.arangodb.ArangoDbBackend
ArangoDb backend.
methodcelery.backends.arangodb.ArangoDbBackend.connection()
Connect to the arangodb server.
methodcelery.backends.arangodb.ArangoDbBackend.db()
Database Object to the given database.
classcelery.backends.asynchronous.AsyncBackendMixin
Mixin for backends that enables the async API.
classcelery.backends.asynchronous.BaseResultConsumer
Manager responsible for consuming result messages.
classcelery.backends.asynchronous.Drainer
Result draining service.
classcelery.backends.azureblockblob.AzureBlockBlobBackend
Azure Storage Block Blob backend for Celery.
methodcelery.backends.azureblockblob.AzureBlockBlobBackend.set(key, value)
Store a value for a given key.
methodcelery.backends.base.Backend.cleanup()
Backend cleanup.
methodcelery.backends.base.Backend.get_result(task_id)
Get the result of a task.
methodcelery.backends.base.Backend.get_state(task_id)
Get the state of a task.
methodcelery.backends.base.Backend.get_task_meta(task_id, cache=True)
Get task meta from backend.
methodcelery.backends.base.Backend.get_traceback(task_id)
Get the traceback for a failed task.
methodcelery.backends.base.Backend.mark_as_started(task_id, **meta)
Mark a task as started.
methodcelery.backends.base.Backend.prepare_value(result)
Prepare value for storage.
methodcelery.backends.base.Backend.restore_group(group_id, cache=True)
Get the result for a group.
methodcelery.backends.base.Backend.store_result(task_id, result, state, traceback=None, request=None, **kwargs)
Update task state and result.
classcelery.backends.base.BaseBackend
Base (synchronous) result backend.
classcelery.backends.base.DisabledBackend
Dummy result backend.
classcelery.backends.base.KeyValueStoreBackend
Result backend base class for key/value stores.
funccelery.backends.base.unpickle_backend(cls, args, kwargs)
Return an unpickled backend.
classcelery.backends.cache.CacheBackend
Cache result backend.
methodcelery.backends.cache.CacheBackend.as_uri(*args, **kwargs)
Return the backend as an URI.
classcelery.backends.cassandra.CassandraBackend
Cassandra/AstraDB backend utilizing DataStax driver.
classcelery.backends.consul.ConsulBackend
Consul.io K/V store backend for Celery.
methodcelery.backends.consul.ConsulBackend.set(key, value)
Set a key in Consul.
classcelery.backends.cosmosdbsql.CosmosDBSQLBackend
CosmosDB/SQL backend for Celery.
methodcelery.backends.cosmosdbsql.CosmosDBSQLBackend.delete(key)
Delete the value at a given key.
methodcelery.backends.cosmosdbsql.CosmosDBSQLBackend.set(key, value)
Store a value for a given key.
classcelery.backends.couchbase.CouchbaseBackend
Couchbase backend.
classcelery.backends.couchdb.CouchBackend
CouchDB backend.
classcelery.backends.database.DatabaseBackend
The database result backend.
methodcelery.backends.database.DatabaseBackend.cleanup()
Delete expired meta-data.
classcelery.backends.database.models.Task
Task result/status.
classcelery.backends.database.models.TaskExtended
For the extend result.
classcelery.backends.database.models.TaskSet
TaskSet result.
classcelery.backends.database.session.SessionManager
Manage SQLAlchemy sessions.
classcelery.backends.dynamodb.DynamoDBBackend
AWS DynamoDB result backend.
methodcelery.backends.dynamodb.DynamoDBBackend.incr(key:bytes) -> int
Atomically increase the chord_count and return the new count
classcelery.backends.elasticsearch.ElasticsearchBackend
Elasticsearch Backend.
classcelery.backends.filesystem.FilesystemBackend
File-system result backend.
methodcelery.backends.filesystem.FilesystemBackend.cleanup()
Delete expired meta-data.
classcelery.backends.gcs.GCSBackend
Google Cloud Storage task result backend.
methodcelery.backends.gcs.GCSBackend.firestore_client()
Returns a firestore client.
methodcelery.backends.gcs.GCSBackend.on_chord_part_return(request, state, result, **kwargs)
Chord part return callback.
classcelery.backends.gcs.GCSBackendBase
Google Cloud Storage task result backend.
methodcelery.backends.gcs.GCSBackendBase.client()
Returns a storage client.
classcelery.backends.mongodb.MongoBackend
MongoDB result backend.
methodcelery.backends.mongodb.MongoBackend.as_uri(include_password=False)
Return the backend as an URI.
methodcelery.backends.mongodb.MongoBackend.cleanup()
Delete expired meta-data.
methodcelery.backends.mongodb.MongoBackend.collection()
Get the meta-data task collection.
methodcelery.backends.mongodb.MongoBackend.database()
Get database from MongoDB connection.
methodcelery.backends.mongodb.MongoBackend.group_collection()
Get the meta-data task collection.
classcelery.backends.redis.RedisBackend
Redis task result store.
classcelery.backends.redis.SentinelBackend
Redis sentinel task result store.
classcelery.backends.redis.SentinelManagedSSLConnection
Connect to a Redis server using Sentinel + TLS.
classcelery.backends.rpc.BacklogLimitExceeded
Too much state history to fast-forward.
classcelery.backends.rpc.RPCBackend
Base class for the RPC result backend.
classcelery.backends.rpc.RPCBackend.Consumer
Consumer that requires manual declaration of queues.
classcelery.backends.rpc.RPCBackend.Queue
Queue that never caches declaration.
classcelery.backends.s3.S3Backend
An S3 task result store.
funccelery.beat.EmbeddedService(app, max_interval=None, **kwargs)
Return embedded clock service.
classcelery.beat.PersistentScheduler
Scheduler backed by :mod:`shelve` database.
classcelery.beat.ScheduleEntry
An entry in the scheduler.
methodcelery.beat.ScheduleEntry.update(other)
Update values from another entry.
classcelery.beat.Scheduler
Scheduler for periodic tasks.
classcelery.beat.SchedulingError
An error occurred while scheduling a task.
classcelery.beat.Service
Celery periodic task service.
funccelery.bin.amqp.amqp(ctx)
AMQP Administration Shell.
classcelery.bin.base.CLIContext
Context Object for the CLI.
classcelery.bin.base.CeleryCommand
Customized command for Celery.
classcelery.bin.base.CeleryDaemonCommand
Daemon commands.
classcelery.bin.base.CeleryOption
Customized option for Celery.
classcelery.bin.base.CommaSeparatedList
Comma separated list argument.
classcelery.bin.base.DaemonOption
Common daemonization option
methodcelery.bin.base.DaemonOption.daemon_setting(ctx:Context, opt:CeleryOption, value:Any) -> Any
Try to fetch daemonization option from applications settings.
classcelery.bin.base.ISO8601DateTime
ISO 8601 Date Time argument.
classcelery.bin.base.ISO8601DateTimeOrFloat
ISO 8601 Date Time or float argument.
classcelery.bin.base.JsonArray
JSON formatted array argument.
classcelery.bin.base.JsonObject
JSON formatted object argument.
classcelery.bin.base.LogLevel
Log level option.
funccelery.bin.call.call(ctx, name, args, kwargs, eta, countdown, expires, serializer, queue, exchange, routing_key)
Call a task by name.
funccelery.bin.celery.celery(ctx, app, broker, result_backend, loader, config, workdir, no_color, quiet, version, skip_checks)
Celery command entrypoint.
funccelery.bin.celery.main() -> int
Start celery umbrella command.
funccelery.bin.events.events(ctx, dump, camera, detach, frequency, maxrate, loglevel, **kwargs)
Event-stream utilities.
funccelery.bin.graph.bootsteps(ctx)
Display bootsteps graph.
funccelery.bin.graph.graph(ctx)
The ``celery graph`` command.
funccelery.bin.graph.workers(ctx)
Display workers graph.
funccelery.bin.list.bindings(ctx)
Inspect queue bindings.
funccelery.bin.list.list_(ctx)
Get info from broker.
funccelery.bin.logtool.logtool(ctx)
The ``celery logtool`` command.
classcelery.bin.multi.MultiTool
The ``celery multi`` program.
funccelery.bin.multi.multi(ctx, **kwargs)
Start multiple worker instances.
funccelery.bin.upgrade.upgrade(ctx)
Perform upgrade between versions.
classcelery.bin.worker.Autoscale
Autoscaling parameter.
classcelery.bin.worker.CeleryBeat
Celery Beat flag.
classcelery.bin.worker.Hostname
Hostname option.
classcelery.bin.worker.WorkersPool
Workers pool option.
classcelery.bootsteps.Blueprint
Blueprint containing bootsteps that can be applied to objects.
classcelery.bootsteps.ConsumerStep
Bootstep that starts a message consumer.
classcelery.bootsteps.StartStopStep
Bootstep that must be started and stopped in order.
classcelery.bootsteps.Step
A Bootstep.
methodcelery.bootsteps.Step.create(parent)
Create the step.
methodcelery.bootsteps.Step.include_if(parent)
Return true if bootstep should be included.
classcelery.bootsteps.StepFormatter
Graph formatter for :class:`Blueprint`.
classcelery.bootsteps.StepType
Meta-class for steps.
classcelery.canvas.Signature
Task Signature.
methodcelery.canvas.Signature.apply(args=None, kwargs=None, **options)
Call task locally.
methodcelery.canvas.Signature.clone(args=None, kwargs=None, **opts)
Create a copy of this signature.
methodcelery.canvas.Signature.flatten_links()
Return a recursive list of dependencies.
methodcelery.canvas.Signature.from_dict(d, app=None)
Create a new signature from a dict.
methodcelery.canvas.Signature.register_type(name=None)
Register a new type of signature.
classcelery.canvas.StampingVisitor
Stamping API.
methodcelery.canvas.StampingVisitor.on_callback(callback, **header) -> dict
Method that is called on callback stamping.
methodcelery.canvas.StampingVisitor.on_chain_end(chain, **headers) -> None
Method that is called on chain stamping end.
methodcelery.canvas.StampingVisitor.on_chain_start(chain, **headers) -> dict
Method that is called on chain stamping start.
methodcelery.canvas.StampingVisitor.on_chord_body(sig, **header) -> dict
Method that is called on chord body stamping.
methodcelery.canvas.StampingVisitor.on_chord_header_end(sig, **header) -> None
Method that is called on сhord header stamping end.
methodcelery.canvas.StampingVisitor.on_errback(errback, **header) -> dict
Method that is called on errback stamping.
methodcelery.canvas.StampingVisitor.on_group_end(group, **headers) -> None
Method that is called on group stamping end.
methodcelery.canvas.StampingVisitor.on_group_start(group, **headers) -> dict
Method that is called on group stamping start.
methodcelery.canvas.StampingVisitor.on_signature(sig, **headers) -> dict
Method that is called on signature stamping.
classcelery.canvas.chain
Chain tasks together.
classcelery.canvas.chunks
Partition of tasks into chunks of size n.
classcelery.canvas.group
Creates a group of tasks to be executed in parallel.
funccelery.canvas.maybe_signature(d, app=None, clone=False)
Ensure obj is a signature, or None.
funccelery.canvas.maybe_unroll_group(group)
Unroll group with only one member.
funccelery.canvas.signature(varies, *args, **kwargs)
Create new signature.
classcelery.canvas.xmap
Map operation for tasks.
classcelery.canvas.xstarmap
Map operation for tasks, using star arguments.
classcelery.concurrency.asynpool.AsynPool
AsyncIO Pool (no threads).
methodcelery.concurrency.asynpool.AsynPool.create_process_queues()
Create new in, out, etc.
methodcelery.concurrency.asynpool.AsynPool.get_process_queues()
Get queues for a new process.
methodcelery.concurrency.asynpool.AsynPool.on_grow(n)
Grow the pool by ``n`` processes.
funccelery.concurrency.asynpool.AsynPool.on_process_up(proc)
Called when a process has started.
methodcelery.concurrency.asynpool.AsynPool.on_shrink(n)
Shrink the pool by ``n`` processes.
methodcelery.concurrency.asynpool.AsynPool.process_flush_queues(proc)
Flush all queues.
classcelery.concurrency.asynpool.ResultHandler
Handles messages from the pool processes.
classcelery.concurrency.asynpool.Worker
Pool worker process.
classcelery.concurrency.base.BasePool
Task pool.
classcelery.concurrency.eventlet.TaskPool
Eventlet Task Pool.
classcelery.concurrency.eventlet.Timer
Eventlet Timer.
funccelery.concurrency.get_available_pool_names()
Return all available pool type names.
funccelery.concurrency.get_implementation(cls)
Return pool implementation by name.
classcelery.concurrency.gevent.TaskPool
GEvent Pool.
classcelery.concurrency.prefork.TaskPool
Multiprocessing Pool implementation.
methodcelery.concurrency.prefork.TaskPool.on_stop()
Gracefully stop the pool.
methodcelery.concurrency.prefork.TaskPool.on_terminate()
Force terminate the pool.
funccelery.concurrency.prefork.process_destructor(pid, exitcode)
Pool child process destructor.
funccelery.concurrency.prefork.process_initializer(app, hostname)
Pool child process initializer.
classcelery.concurrency.solo.TaskPool
Solo task pool (blocking, inline, fast).
classcelery.concurrency.thread.TaskPool
Thread Task Pool.
classcelery.contrib.abortable.AbortableAsyncResult
Represents an abortable result.
classcelery.contrib.abortable.AbortableTask
Task that can be aborted.
methodcelery.contrib.abortable.AbortableTask.is_aborted(**kwargs)
Return true if task is aborted.
classcelery.contrib.django.task.DjangoTask
Extend the base :class:`~celery.app.task.Task` for Django.
classcelery.contrib.migrate.State
Migration progress state.
classcelery.contrib.migrate.StopFiltering
Semi-predicate used to signal filter stop.
funccelery.contrib.migrate.migrate_task(producer, body_, message, queues=None)
Migrate single task message.
funccelery.contrib.migrate.republish(producer, message, exchange=None, routing_key=None, remove_props=None)
Republish message.
funccelery.contrib.pytest.depends_on_current_app(celery_app)
Fixture that sets app as current.
classcelery.contrib.rdb.Rdb
Remote debugger.
classcelery.contrib.sphinx.TaskDirective
Sphinx task directive.
classcelery.contrib.sphinx.TaskDocumenter
Document task definitions.
classcelery.events.cursesmon.CursesMonitor
A curses based Celery task monitor.
funccelery.events.cursesmon.evtop(app=None)
Start curses monitor.
classcelery.events.dispatcher.EventDispatcher
Dispatches event messages.
methodcelery.events.dispatcher.EventDispatcher.close()
Close the event dispatcher.
methodcelery.events.dispatcher.EventDispatcher.flush(errors=True, groups=True)
Flush the outbound buffer.
methodcelery.events.dispatcher.EventDispatcher.send(type, blind=False, utcoffset=utcoffset, retry=False, retry_policy=None, Event=Event, **fields)
Send event.
classcelery.events.dumper.Dumper
Monitor events.
funccelery.events.dumper.evdump(app=None, out=sys.stdout)
Start event dump.
funccelery.events.event.Event(type, _fields=None, __dict__=dict, __now__=time.time, **fields)
Create an event.
funccelery.events.event.group_from(type)
Get the group part of an event type name.
classcelery.events.receiver.EventReceiver
Capture events.
classcelery.events.snapshot.Polaroid
Record event snapshots.
classcelery.events.state.State
Records clusters state.
methodcelery.events.state.State.get_or_create_task(uuid)
Get or create task by uuid.
methodcelery.events.state.State.get_or_create_worker(hostname, **kwargs)
Get or create worker by hostname.
methodcelery.events.state.State.task_event(type_, fields)
Deprecated, use :meth:`event`.
methodcelery.events.state.State.task_types()
Return a list of all seen task types.
methodcelery.events.state.State.tasks_by_time(limit=None, reverse:bool=True)
Generator yielding tasks ordered by time.
methodcelery.events.state.State.worker_event(type_, fields)
Deprecated, use :meth:`event`.
classcelery.events.state.Task
Task State.
classcelery.events.state.Worker
Worker State.
classcelery.exceptions.AlreadyRegistered
The task is already registered.
classcelery.exceptions.AlwaysEagerIgnored
send_task ignores :setting:`task_always_eager` option.
classcelery.exceptions.BackendError
An issue writing or reading to/from the backend.
classcelery.exceptions.BackendGetMetaError
An issue reading from the backend.
classcelery.exceptions.BackendStoreError
An issue writing to the backend.
classcelery.exceptions.CDeprecationWarning
Warning of deprecation.
classcelery.exceptions.CPendingDeprecationWarning
Warning of pending deprecation.
classcelery.exceptions.CeleryCommandException
A general command exception which stores an exit code.
classcelery.exceptions.CeleryError
Base class for all Celery errors.
classcelery.exceptions.CeleryWarning
Base class for all Celery warnings.
classcelery.exceptions.ChordError
A task part of the chord raised an exception.
classcelery.exceptions.DuplicateNodenameWarning
Multiple workers are using the same nodename.
classcelery.exceptions.FixupWarning
Fixup related warning.
classcelery.exceptions.Ignore
A task can raise this to ignore doing state updates.
classcelery.exceptions.ImproperlyConfigured
Celery is somehow improperly configured.
classcelery.exceptions.InvalidTaskError
The task has invalid data or ain't properly constructed.
classcelery.exceptions.MaxRetriesExceededError
The tasks max restart limit has been exceeded.
classcelery.exceptions.NotRegistered
The task is not registered.
classcelery.exceptions.QueueNotFound
Task routed to a queue not in ``conf.queues``.
classcelery.exceptions.Reject
A task can raise this if it wants to reject/re-queue the message.
classcelery.exceptions.Retry
The task is to be retried later.
classcelery.exceptions.SecurityError
Security related exception.
classcelery.exceptions.SecurityWarning
Potential security issue found.
classcelery.exceptions.TaskError
Task related errors.
classcelery.exceptions.TaskPredicate
Base class for task-related semi-predicates.
classcelery.exceptions.TaskRevokedError
The task has been revoked, so no result available.
classcelery.exceptions.TimeoutError
The operation timed out.
classcelery.exceptions.WorkerShutdown
Signals that the worker should perform a warm shutdown.
classcelery.exceptions.WorkerTerminate
Signals that the worker should terminate immediately.
funccelery.exceptions.reraise(tp, value, tb=None)
Reraise exception.
classcelery.fixups.django.DjangoFixup
Fixup installed when using Django.
funccelery.fixups.django.fixup(app:'Celery', env:str='DJANGO_SETTINGS_MODULE') -> Optional['DjangoFixup']
Install Django fixup if settings module environment is set.
classcelery.loaders.app.AppLoader
Default loader used when an app is specified.
classcelery.loaders.base.BaseLoader
Base class for loaders.
methodcelery.loaders.base.BaseLoader.conf()
Loader configuration.
methodcelery.loaders.base.BaseLoader.on_process_cleanup()
Called after a task is executed.
methodcelery.loaders.base.BaseLoader.on_task_init(task_id, task)
Called before a task is executed.
methodcelery.loaders.base.BaseLoader.on_worker_process_init()
Called when a child process starts.
funccelery.loaders.base.find_related_module(package, related_name)
Find module in package.
classcelery.loaders.default.Loader
The loader used by the default app.
funccelery.loaders.get_loader_cls(loader)
Get loader class by name/alias.
classcelery.local.PromiseProxy
Proxy that evaluates object once.
classcelery.local.Proxy
Proxy to another object.
funccelery.local.getappattr(path)
Get attribute from current_app recursively.
funccelery.local.try_import(module, default=None)
Try to import and return module.
funccelery.maybe_patch_concurrency(argv=None, short_opts=None, long_opts=None, patches=None)
Apply eventlet/gevent monkeypatches.
classcelery.platforms.DaemonContext
Context manager daemonizing the process.
classcelery.platforms.LockFailed
Raised if a PID lock can't be acquired.
classcelery.platforms.Pidfile
Pidfile.
methodcelery.platforms.Pidfile.acquire()
Acquire lock.
methodcelery.platforms.Pidfile.is_locked()
Return true if the pid lock exists.
methodcelery.platforms.Pidfile.read_pid()
Read and return the current pid.
methodcelery.platforms.Pidfile.release(*args)
Release lock.
methodcelery.platforms.Pidfile.remove()
Remove the lock.
classcelery.platforms.Signals
Convenience interface to :mod:`signals`.
methodcelery.platforms.Signals.ignore(*names)
Ignore signal using :const:`SIG_IGN`.
methodcelery.platforms.Signals.signum(name)
Get signal number by name.
methodcelery.platforms.Signals.update(_d_=None, **sigmap)
Set signal handlers from a mapping.
funccelery.platforms.create_pidlock(pidfile)
Create and verify pidfile.
funccelery.platforms.fd_by_path(paths)
Return a list of file descriptors.
funccelery.platforms.get_errno_name(n)
Get errno for string (e.g., ``ENOENT``).
funccelery.platforms.initgroups(uid, gid)
Init process group permissions.
funccelery.platforms.parse_gid(gid)
Parse group id.
funccelery.platforms.parse_uid(uid)
Parse user id.
funccelery.platforms.set_mp_process_title(*a, **k)
Disabled feature.
funccelery.platforms.setgroups(groups)
Set active groups from a list of group ids.
funccelery.platforms.signal_name(signum)
Return name of signal from signal number.
classcelery.result.AsyncResult
Query task state.
methodcelery.result.AsyncResult.as_list()
Return as a list of task IDs.
methodcelery.result.AsyncResult.collect(intermediate=False, **kwargs)
Collect results as they return.
methodcelery.result.AsyncResult.date_done()
UTC date and time.
methodcelery.result.AsyncResult.failed()
Return :const:`True` if the task failed.
methodcelery.result.AsyncResult.result()
Task return value.
methodcelery.result.AsyncResult.state()
The tasks current state.
methodcelery.result.AsyncResult.task_id()
Compat.
methodcelery.result.AsyncResult.traceback()
Get the traceback of a failed task.
classcelery.result.EagerResult
Result that we know has already been executed.
methodcelery.result.EagerResult.result()
The tasks return value.
methodcelery.result.EagerResult.state()
The tasks state.
methodcelery.result.EagerResult.traceback()
The traceback if the task failed.
classcelery.result.GroupResult
Like :class:`ResultSet`, but with an associated id.
classcelery.result.ResultBase
Base class for results.
classcelery.result.ResultSet
A collection of results.
methodcelery.result.ResultSet.clear()
Remove all results from this set.
methodcelery.result.ResultSet.completed_count()
Task completion count.
methodcelery.result.ResultSet.failed()
Return true if any of the tasks failed.
methodcelery.result.ResultSet.ready()
Did all of the tasks complete?
methodcelery.result.ResultSet.successful()
Return true if all tasks successful.
methodcelery.result.ResultSet.update(results)
Extend from iterable of results.
funccelery.result.result_from_tuple(r, app=None)
Deserialize result from tuple.
classcelery.schedules.crontab
Crontab schedule.
methodcelery.schedules.crontab.from_string(crontab:str) -> crontab
Create a Crontab from a cron expression string.
methodcelery.schedules.crontab.is_due(last_run_at:datetime) -> tuple[bool, datetime]
Return tuple of ``(is_due, next_time_to_run)``.
methodcelery.schedules.crontab.remaining_estimate(last_run_at:datetime, ffwd:type=ffwd) -> timedelta
Estimate of next run time.
classcelery.schedules.crontab_parser
Parser for Crontab expressions.
classcelery.schedules.schedule
Schedule for periodic task.
methodcelery.schedules.schedule.is_due(last_run_at:datetime) -> tuple[bool, datetime]
Return tuple of ``(is_due, next_time_to_check)``.
classcelery.schedules.solar
Solar event.
methodcelery.schedules.solar.is_due(last_run_at:datetime) -> tuple[bool, datetime]
Return tuple of ``(is_due, next_time_to_run)``.
methodcelery.schedules.solar.remaining_estimate(last_run_at:datetime) -> timedelta
Return estimate of next time to run.
classcelery.security.certificate.CertStore
Base class for certificate stores.
methodcelery.security.certificate.CertStore.itercerts() -> Iterator[Certificate]
Return certificate iterator.
classcelery.security.certificate.Certificate
X.509 certificate.
methodcelery.security.certificate.Certificate.get_issuer() -> str
Return issuer (CA) as a string.
methodcelery.security.certificate.Certificate.get_serial_number() -> int
Return the serial number in the certificate.
methodcelery.security.certificate.Certificate.has_expired() -> bool
Check if the certificate has expired.
methodcelery.security.certificate.Certificate.verify(data:bytes, signature:bytes, digest:HashAlgorithm | Prehashed) -> None
Verify signature for string containing data.
classcelery.security.certificate.FSCertStore
File system certificate store.
classcelery.security.key.PrivateKey
Represents a private key.
methodcelery.security.key.PrivateKey.sign(data, digest)
Sign string containing data.
classcelery.security.serialization.SecureSerializer
Signed serializer.
funccelery.states.precedence(state:str) -> int
Get the precedence index for state.
classcelery.states.state
Task state.
classcelery.utils.abstract.CallableSignature
Celery Signature interface.
classcelery.utils.abstract.CallableTask
Task interface.

この情報について

掲載しているシグネチャは celery/celery の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る