 Celery v4.1.0 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1057 页 | 1.35 MB | 1 年前3 Celery v4.1.0 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1057 页 | 1.35 MB | 1 年前3
 Celery v4.0.1 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1040 页 | 1.37 MB | 1 年前3 Celery v4.0.1 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1040 页 | 1.37 MB | 1 年前3
 Celery v4.0.2 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1042 页 | 1.37 MB | 1 年前3 Celery v4.0.2 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1042 页 | 1.37 MB | 1 年前3
 Celery 4.0 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1042 页 | 1.37 MB | 1 年前3 Celery 4.0 Documentationcelery multi start w1 -A proj -l info -- pidfile=/var/run/celery/%n.pid \ -- logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks0 码力 | 1042 页 | 1.37 MB | 1 年前3
 Celery v4.1.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 714 页 | 2.63 MB | 1 年前3 Celery v4.1.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 714 页 | 2.63 MB | 1 年前3
 Celery 3.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 703 页 | 2.60 MB | 1 年前3 Celery 3.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 703 页 | 2.60 MB | 1 年前3
 Celery v4.0.1 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 705 页 | 2.63 MB | 1 年前3 Celery v4.0.1 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 705 页 | 2.63 MB | 1 年前3
 Celery v4.0.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 701 页 | 2.59 MB | 1 年前3 Celery v4.0.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 701 页 | 2.59 MB | 1 年前3
 Celery 4.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 707 页 | 2.63 MB | 1 年前3 Celery 4.0 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 707 页 | 2.63 MB | 1 年前3
 Celery v4.0.2 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 707 页 | 2.63 MB | 1 年前3 Celery v4.0.2 Documentation/var/log/celery $ celery multi start w1 -A proj -l info --pidfile=/var/run/celery/%n.pid \ --logfile=/var/log/celery/%n%I.log With the multi command you can start multiple workers, and there’s a powerful result = AsyncResult(uuid) exc = result.get(propagate=False) print('Task {0} raised exception: {1!r}\n{2!r}'.format( uuid, exc, result.traceback)) it can be added to the task using the link_error execution log_error(request, exc, traceback): with open(os.path.join('/var/errors', request.id), 'a') as fh: print('--\n\n{0} {1} {2}'.format( task_id, exc, traceback), file=fh) To make it even easier to link tasks together0 码力 | 707 页 | 2.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6














