Skip to content

fix travis issue#1

Open
tracyloisel wants to merge 13 commits intotracyloisel:masterfrom
akm:master
Open

fix travis issue#1
tracyloisel wants to merge 13 commits intotracyloisel:masterfrom
akm:master

Conversation

@tracyloisel
Copy link
Owner

No description provided.

akm added 13 commits January 6, 2019 09:31
Because `INFO` depends on language of the environment.
For example, `情報` is used in Japanese language environment.
…o avoid the following error:

ERROR: (gcloud.beta.emulators.pubsub.env-init) You cannot perform this action because this Cloud SDK installation is managed by an external package manager.
Please consider using a separate installation of the Cloud SDK created through the default mechanism described at: https://cloud.google.com/sdk/
Dir.exist? sometime takes enough long time to timeout.
… is less than 3

Because if the number is less than 3, worker reschedule the message
after 10 seconds like this:

Message(3) was rescheduled after 10 seconds because the thread pool is full.
Because initializing adapter is called on executing task which load jobs
like `rake db:migrate`/
But Google::Cloud::Pubsub requires GCP project ID as environment variable,
so it raises an ArgumentError on rake db:migrate like this:

```
Error occurred while loading application project_id is missing (ArgumentError)
    app/jobs/application_job.rb:3:in `<main>'
    app/jobs/async_task_job.rb:1:in `<main>'
    lib/tasks/erd.rake:3:in `block in <main>'
```
Lazy initialization of pubsub
Add on_error option to reject on error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants