Comments (3)
This is now implemented as part of the unit test for the serialization method for each of the async trigger.
Refer to a sample implementationn below for the snowflake trigger.
def test_snowflake_trigger_serialization():
"""
Asserts that the SnowflakeTrigger correctly serializes its arguments
and classpath.
"""
trigger = SnowflakeTrigger(
task_id=TASK_ID,
polling_period_seconds=POLLING_PERIOD_SECONDS,
query_ids=[],
snowflake_conn_id="test_conn",
)
classpath, kwargs = trigger.serialize()
assert classpath == "astronomer_operators.snowflake.triggers.snowflake_trigger.SnowflakeTrigger"
assert kwargs == {
"task_id": TASK_ID,
"polling_period_seconds": 1.0,
"query_ids": [],
"snowflake_conn_id": "test_conn",
}
from astronomer-providers.
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/***/utils/module_loading.py", line 35, in import_string
return getattr(module, class_name)
AttributeError: module 'astronomer.providers.microsoft.azure.triggers.data_factory' has no attribute 'WasbToSynpaseTrigger'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/***/jobs/triggerer_job.py", line 406, in update_triggers
trigger_class = self.get_trigger_by_classpath(new_triggers[new_id].classpath)
File "/usr/local/lib/python3.9/site-packages/***/jobs/triggerer_job.py", line 423, in get_trigger_by_classpath
self.trigger_cache[classpath] = import_string(classpath)
File "/usr/local/lib/python3.9/site-packages/***/utils/module_loading.py", line 37, in import_string
raise ImportError(f'Module "{module_path}" does not define a "{class_name}" attribute/class')
ImportError: Module "astronomer.providers.microsoft.azure.triggers.data_factory" does not define a "WasbToSynpaseTrigger" attribute/class
from astronomer-providers.
in airflow trigger now sends the error message with import error mentioned in the above comment,
from astronomer-providers.
Related Issues (20)
- Deprecate dbt async provider HOT 1
- Deprecate snowflake async provider HOT 4
- Deprecate databricks async provider HOT 2
- Drepcreate hive provider HOT 1
- Deprecate kubernetes async provider HOT 5
- Deprecate sftp async provider HOT 1
- Deprecate http async provider HOT 3
- Deprecate livy async provider HOT 1
- Fix broken "Test providers RC releases" action HOT 2
- task "resume_redshift_cluster" in DAG "example_async_redshift_cluster_management" failed HOT 1
- Update public documentation regarding deprecation of operators HOT 2
- Fix example_external_deployment_task_sensor DAG HOT 3
- Release astronomer-providers 1.19.0 HOT 1
- Test unpinning of pendulum to 2.1.2
- Deploy job failing for astronomer-providers
- Invalid dependency graph for tasks HOT 1
- fix unit test and static checks failure on auto-created PRs
- Deploy failed due to the latest wave provider release HOT 3
- Release astronomer-providers 1.19.1
- Unable to use `failure` callable in SnowflakeSensorAsync when deferred
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 astronomer-providers.