Skip to content

Commit 5847f5a

Browse files
stop with auth token fix (#1029)
* Use latest barge * stop with auth token fix * fix ci * ci fix * Revert "ci fix" This reverts commit 4da70f6. --------- Co-authored-by: Alex Coseru <[email protected]>
1 parent a8b4d37 commit 5847f5a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@ jobs:
125125
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
126126
- name: Run Barge
127127
working-directory: ${{ github.workspace }}/barge
128-
env:
129-
CONTRACTS_VERSION: escrow
130128
run: |
131-
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
129+
bash -x start_ocean.sh --no-node --with-typesense 2>&1 > start_ocean.log &
132130
- run: npm ci
133131
- run: npm run build
134132
- run: docker image ls
@@ -199,7 +197,6 @@ jobs:
199197
with:
200198
repository: 'oceanprotocol/barge'
201199
path: 'barge'
202-
203200
- name: Login to Docker Hub
204201
if: ${{ env.DOCKERHUB_PASSWORD && env.DOCKERHUB_USERNAME }}
205202
run: |
@@ -212,9 +209,7 @@ jobs:
212209
- name: Run Barge
213210
working-directory: ${{ github.workspace }}/barge
214211
run: |
215-
bash -x start_ocean.sh --no-aquarius --no-provider --no-dashboard --with-typesense 2>&1 > start_ocean.log &
216-
env:
217-
CONTRACTS_VERSION: escrow
212+
bash -x start_ocean.sh --no-node --with-typesense 2>&1 > start_ocean.log &
218213
- run: npm ci
219214
- run: npm run build
220215
- run: docker image ls

src/components/httpRoutes/compute.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ computeRoutes.put(`${SERVICES_API_BASE_PATH}/compute`, async (req, res) => {
164164
signature: (req.query.signature as string) || null,
165165
nonce: (req.query.nonce as string) || null,
166166
jobId: (req.query.jobId as string) || null,
167-
agreementId: (req.query.agreementId as string) || null
167+
agreementId: (req.query.agreementId as string) || null,
168+
authorization: req.headers?.authorization || null
168169
}
169170
const response = await new ComputeStopHandler(req.oceanNode).handle(stopComputeTask)
170171
const jobs = await streamToObject(response.stream as Readable)

0 commit comments

Comments
 (0)