Comments (1)
https://docs.celeryq.dev/en/stable/userguide/calling.html#linking-callbacks-errbacks
From the doc:
You can also cause a callback to be applied if task raises an exception (errback). The worker wonβt actually call the errback as a task, but will instead call the errback function directly so that the raw request, exception and traceback objects can be passed to it.
This is an example error callback:
@app.task
def error_handler(request, exc, traceback):
print('Task {0} raised exception: {1!r}\n{2!r}'.format(
request.id, exc, traceback))
it can be added to the task using the link_error execution option:
add.apply_async((2, 2), link_error=error_handler.s())
In addition, both the link and link_error options can be expressed as a list:add.apply_async((2, 2), link=[add.s(16), other_task.s()])
The callbacks/errbacks will then be called in order, and all callbacks will be called with the return value of the parent task as a partial argument.
from geonode-importer.
Related Issues (20)
- Disable dynamic models by default
- ogr2ogr ERROR 1: COPY statement failed
- Dataset overwriting HOT 3
- Error during 0006_dataset_migration
- Mark GPKG, KML and GeoJSON as vector formats instead of archive
- GEODATABASE_URL forced to specify the DB port
- Handle "#" and any other special char HOT 1
- [GeoTiff] Upload with auxiliary file fails HOT 2
- Upload GeoTiff Error You can't execute queries until the end of the 'atomic' block HOT 10
- Let geoserver fail if the SRID is not correctly set
- Implement XmlFilehandler HOT 6
- Implement SldFileHandler
- Shapefile handler does not accept `cpg` and `cst` files
- Layer is not updated when using API (Geonode 4.1 Stable branch)
- Geonode-importer test suite
- Upload shapefile with cst file fails
- PG_USE_COPY should be optional
- Pipe the dump of the ogr2ogr command when using PgPool
- Unable to install geonode on python 3.11 due to gdal forced version HOT 4
- Wondering why using get_geoserver_cascading_workspace HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geonode-importer.