Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @radovanjorgic @patricijabrecko @gasperzgonec @devrev/airdrop
* @gasperzgonec @radovanjorgic @devrev/airdrop
9 changes: 3 additions & 6 deletions docs/attachments-extraction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Attachments Extraction Worker
# Attachments Streaming Worker

## Overview
This worker handles the extraction of attachments from an external system and streams them to the Airdrop platform. It's designed to work with the `@devrev/ts-adaas` library and follows the Airdrop platform's event-driven architecture.
This worker handles the streaming of attachments to the Airdrop platform. It's designed to work with the `@devrev/ts-adaas` library and follows the Airdrop platform's event-driven architecture.

## Dependencies
```typescript
Expand Down Expand Up @@ -106,9 +106,7 @@ processTask({
}
},
onTimeout: async ({ adapter }) => {
await adapter.emit(ExtractorEventType.ExtractionAttachmentsProgress, {
progress: 50,
});
await adapter.emit(ExtractorEventType.ExtractionAttachmentsProgress);
},
});
```
Expand All @@ -127,7 +125,6 @@ processTask({

### Timeout Handling
- On timeout, the current state is posted to the platform
- A progress event is emitted with 50% completion
- This allows the platform to resume processing from the last known state

## Usage
Expand Down