Comments (7)
@andrewgy8 sounds like a good solution to me 👍
from rele.
Hey @Itsindigo ! Is this still an issue if you dont have the key GC_CREDENTIALS_PATH
defined in your config?
from rele.
@andrewgy8 it will run if you delete the key, yes
from rele.
In that case Im not sure its a bug, as it is working as expected. Would clarifying the configuration options in the documentation solve this?
from rele.
Ah, sorry @andrewgy8 -- it is a bug. I forgot to clear out my .env and was still authenticating as a service account.
rele.config.setup({'APP_NAME': 'smart_comms_planner', 'MIDDLEWARE': ['rele.contrib.LoggingMiddleware', 'rele.contrib.FlaskMiddleware']}, flask_app=app)
This will bug with:
Exception has occurred: AttributeError
'Credentials' object has no attribute 'project_id'
Think a fix is needed
from rele.
I'll add some tests shortly.
How do I run the suite? I've sourced a virtualenv and installed the deps, running make test
fails on these:
================================= short test summary info ==================================
FAILED tests/test_client.py::TestSubscriber::test_creates_subscription_with_default_ack_deadline_when_none_provided
FAILED tests/test_client.py::TestSubscriber::test_creates_subscription_with_custom_ack_deadline_when_provided
FAILED tests/test_config.py::TestConfig::test_parses_all_keys - AssertionError: assert No...
FAILED tests/test_config.py::TestConfig::test_inits_service_account_creds_when_credential_path_given
FAILED tests/test_config.py::TestConfig::test_sets_defaults_pulled_from_env - AssertionEr...
FAILED tests/test_worker.py::TestWorker::test_creates_subscription_with_custom_ack_deadline_from_environment
FAILED tests/test_worker.py::TestCreateAndRun::test_waits_forever_when_called_with_config_and_subs
FAILED tests/commands/test_runrele.py::TestRunReleCommand::test_calls_worker_start_and_setup_when_runrele
========================= 8 failed, 56 passed, 4 warnings in 1.46s =========================
make: *** [test] Error 1
from rele.
Was it fixed @Itsindigo ? In order to see why the tests are failing, I would have to see the stack trace or the failing out put of one of the tests.
from rele.
Related Issues (20)
- Ability to retry a message with custom exceptions
- Track failed published messages HOT 1
- Log publishing of a message after publishing
- Global blocking setting for publishing
- Default publishing to blocking
- Log message payload in subscription success
- Custom Project id support HOT 1
- Avro support HOT 3
- Ability to setup the subscriber with dead-lettering and exponential retries
- Use rele without creating a subscription HOT 4
- Add subscription option to disable json parsing HOT 2
- Add native async support for subscriptions HOT 6
- Retry policy is only applied when creating a subscription
- PermissionDeniedException raised when the subscription already exists and the user/service account doesn't have permission to create new ones
- ReadTheDocs integration needs to be updated HOT 1
- Possibility to specify packages for subscriptions discovery
- Consumer stucks after recover of a lose of connectivity network
- Allow custom client options for clients
- Manage all connection exceptions
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 rele.