Download apps/orchestrator/src/workflows/missing.post.workflow.ts from Leon4gr45/postio: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/Leon4gr45/postio/resolve/main/apps/orchestrator/src/workflows/missing.post.workflow.ts
- Command line
-
hf download hf://spaces/Leon4gr45/postio/apps/orchestrator/src/workflows/missing.post.workflow.ts
-
curl -L -o missing.post.workflow.ts https://huggingface.co/spaces/Leon4gr45/postio/resolve/main/apps/orchestrator/src/workflows/missing.post.workflow.ts
545 Bytes
| import { proxyActivities, sleep } from '@temporalio/workflow'; | |
| import { PostActivity } from '@gitroom/orchestrator/activities/post.activity'; | |
| const { searchForMissingThreeHoursPosts } = proxyActivities<PostActivity>({ | |
| startToCloseTimeout: '10 minute', | |
| retry: { | |
| maximumAttempts: 3, | |
| backoffCoefficient: 1, | |
| initialInterval: '2 minutes', | |
| }, | |
| }); | |
| export async function missingPostWorkflow() { | |
| await searchForMissingThreeHoursPosts(); | |
| while (true) { | |
| await sleep('1 hour'); | |
| await searchForMissingThreeHoursPosts(); | |
| } | |
| } | |