Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
TRIGGER_SECRET_KEY=<your secret key>
# Set this is you are not using the hosted trigger.dev
TRIGGER_SERVER_URL=http://localhost:3040/
TRIGGER_NER_SECRET_KEY=<your secret key>
TRIGGER_NER_PROJECT_ID=<your project ref>
# Set this if you are not using the hosted trigger.dev
# TRIGGER_SERVER_URL=http://localhost:3040/
TASK_PAYLOAD_OFFLOAD_THRESHOLD=5242880
CORENLP_URL_EN=http://localhost:9000
CORENLP_URL_DE=http://localhost:9090
36 changes: 7 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,16 @@ CORENLP_URL_DE=<url of CoreNLP German service>

To deploy the required tasks to your Trigger.dev job runner you will need to update your [trigger.config.ts file](./src/trigger.config.ts) located in the `/src` directory.

~~~
import { defineConfig } from '@trigger.dev/sdk/v3';

export default defineConfig({
project: 'proj_fyeypkhgyaejpiweobwq',
runtime: 'node',
logLevel: 'log',
// The max compute seconds a task is allowed to run. If the task run exceeds this duration, it will be stopped.
// You can override this on an individual task.
// See https://trigger.dev/docs/runs/max-duration
maxDuration: 3600,
retries: {
enabledInDev: true,
default: {
maxAttempts: 3,
minTimeoutInMs: 1000,
maxTimeoutInMs: 10000,
factor: 2,
randomize: true,
},
},
dirs: ['./trigger'],
});
~~~

Set the `project` attribute to the `Project ref` which you can find on your trigger project's `Project settings` tab.

![](./doc-assets/trigger-project.png)
In your local `.env` file:

Then set the URL for your Trigger.dev job runner in your local `.env` file:
- Set the `TRIGGER_NER_PROJECT_ID` variable to the `Project ref` that you can find on your trigger project's `Project settings` tab:
![](./doc-assets/trigger-project.png)
- Set the `TRIGGER_NER_SECRET_KEY` variable to the `Secret key` which you can find on your trigger project's `API keys` tab.
- Set `TRIGGER_SERVER_URL` to the URL for your local Trigger.dev job runner, if you are using one.

~~~
TRIGGER_NER_PROJECT_ID=<your trigger.dev project ref>
TRIGGER_NER_SECRET_KEY=<your trigger.dev secret key>
TRIGGER_SERVER_URL=<your trigger.dev url>
~~~

Expand Down
Loading