Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
cf8c2a6
start work on docker c2d
alexcos20 Oct 1, 2024
e201a62
more on db
alexcos20 Oct 1, 2024
829362a
fix c2d database
alexcos20 Oct 2, 2024
f151b01
generic c2d schema
alexcos20 Oct 2, 2024
a4a3902
BREAKING: refactor ComputeAsset and ComputeStartCommand interfaces
alexcos20 Oct 5, 2024
8c7f7af
add freeCompute handler
alexcos20 Oct 5, 2024
3060f38
working POC of Docker compute
alexcos20 Oct 6, 2024
b37b669
small fixes
alexcos20 Oct 6, 2024
15ba3b3
update deps
alexcos20 Oct 6, 2024
690a935
update ignores
alexcos20 Oct 6, 2024
332d770
fix getComputeJobResult and getComputeJobStatus
alexcos20 Oct 7, 2024
29ec4db
wip: add sql lite db
paulo-ocean Oct 21, 2024
915286b
more changes + refactor internal blob/body
paulo-ocean Oct 22, 2024
1d79279
add get running jobs
paulo-ocean Oct 22, 2024
cdaa92c
wip: adding cron to delete expired storage and expired jobs
paulo-ocean Oct 25, 2024
b3e305a
add test for getting expied and clean
paulo-ocean Oct 28, 2024
e15ea83
refactor deletion, add .env properties
paulo-ocean Oct 28, 2024
82c97b2
small refactor
paulo-ocean Oct 28, 2024
5f2c1be
cleanup free job aftre download results
paulo-ocean Oct 29, 2024
615bb22
some logs
paulo-ocean Oct 30, 2024
c4c33f6
more logs + small refactor
paulo-ocean Oct 31, 2024
dc2e645
fix: check for file object
paulo-ocean Nov 5, 2024
de58815
wip: add env vars for docket compute envs
paulo-ocean Nov 5, 2024
4e63448
wip: add env vars for docket compute envs
paulo-ocean Nov 5, 2024
afe0bfa
add config options
paulo-ocean Nov 6, 2024
6afa93e
basic cd2 free compute flow
paulo-ocean Nov 8, 2024
50e25e0
add some comments
paulo-ocean Nov 11, 2024
5b2219e
add optional signature, for template 4 (need to get files object from…
paulo-ocean Nov 11, 2024
cdff8e1
add consume data/signature for start/init c2d job
paulo-ocean Nov 12, 2024
cc28527
add some comments
paulo-ocean Nov 12, 2024
564f5ad
add c2d docker options on quick start script
paulo-ocean Nov 13, 2024
519131c
improve script for envs, improve config function to deal with empty s…
paulo-ocean Nov 13, 2024
d6acf2b
add unit test for free docker env
paulo-ocean Nov 14, 2024
c91c832
forgot to tear down env, + remove not needed rpcs variable
paulo-ocean Nov 14, 2024
f7d3f68
add integration test free docker start compute
paulo-ocean Nov 14, 2024
0581944
try fix test, debug
paulo-ocean Nov 14, 2024
5f7b4e4
refactor get compute envs, check chain filter
paulo-ocean Nov 14, 2024
9e580e7
fix test
paulo-ocean Nov 14, 2024
e527c01
get compute envs firltered, docker payed
paulo-ocean Nov 15, 2024
019deac
enhance types + refactro config... still missing couple basic checks
paulo-ocean Nov 18, 2024
2576118
add some basic checks, log the issues but proceed anyway
paulo-ocean Nov 18, 2024
053aaee
wip. refactor the files object part, in progress
paulo-ocean Nov 19, 2024
366d01d
fix
alexcos20 Nov 19, 2024
8a6dd46
another fix
alexcos20 Nov 19, 2024
edee7ec
add try catch, check container image
paulo-ocean Nov 19, 2024
4743318
delete invalid jobs (invalid image) + orphan ones
paulo-ocean Nov 20, 2024
d4d7eaf
wip: add intergation test with directCommand payload
paulo-ocean Nov 20, 2024
32fa878
cleanup intergation test, debug
paulo-ocean Nov 20, 2024
1d1f74c
add support for env architectures
paulo-ocean Nov 20, 2024
dadce57
increase maxJobDuration
FilipMasar Nov 20, 2024
46bae6f
wait for image to pull
FilipMasar Nov 20, 2024
e04bf5a
fix entrypoint
FilipMasar Nov 20, 2024
8bed131
some fixes on cleanup after download + image pull progress
paulo-ocean Nov 22, 2024
84da452
add missing type declaraion
paulo-ocean Nov 22, 2024
cc6e6d6
fix get manifest for image
paulo-ocean Nov 22, 2024
b0e8d5b
check algo image and manifest
paulo-ocean Nov 25, 2024
33b8bb2
fix imports issues
paulo-ocean Nov 25, 2024
bb30ac6
fix typo in storage tests
paulo-ocean Nov 25, 2024
80d353f
fix image parsing on meta
paulo-ocean Nov 25, 2024
c99ff90
fix test, job should not start with invalid image
paulo-ocean Nov 25, 2024
2744679
display aggregated errors if any
paulo-ocean Nov 26, 2024
cbe36d0
add validation params as output of check image
paulo-ocean Nov 26, 2024
e2c58c7
debug response on test
paulo-ocean Nov 26, 2024
2ec6728
fix promise resolve, use new return type
paulo-ocean Nov 26, 2024
a5500cc
minor tweak, on status progress
paulo-ocean Nov 26, 2024
a02d46a
refactor get status + getJob, need support for agreement id and owner…
paulo-ocean Nov 27, 2024
557a2df
wip: check manifest platform if present
paulo-ocean Dec 2, 2024
344cf15
omit db compute job fields on get status
paulo-ocean Nov 27, 2024
1d8c4e8
omit also db fields on start compute response
paulo-ocean Nov 28, 2024
ffd25f7
complete checkfor platform and arch if present on manifest
paulo-ocean Dec 2, 2024
3dec671
fix imports
paulo-ocean Dec 3, 2024
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
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ node_modules
/dist/*
!/dist/dashboard
logs
c2d_storage
.env.local
.env
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,4 @@ html-report.html
# databases
*.sqlite
databases/*
c2d_storage/*
5 changes: 5 additions & 0 deletions docs/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ Environmental variables are also tracked in `ENVIRONMENT_VARIABLES` within `src/

- `NODE1_PRIVATE_KEY`: Used on test environments, specifically CI, represents the private key for node 1. Example: `"0xfd5c1ccea015b6d663618850824154a3b3fb2882c46cefb05b9a93fea8c3d215"`
- `NODE2_PRIVATE_KEY`: Used on test environments, specifically CI, represents the private key for node 2. Example: `"0x1263dc73bef43a9da06149c7e598f52025bf4027f1d6c13896b71e81bb9233fb"`

## Cron Jobs

- `CRON_DELETE_DB_LOGS`: Delete old logs from database Cron expression. Example: `0 0 * * *` (runs every day at midnight)
- `CRON_CLEANUP_C2D_STORAGE`: Clear c2d expired resources/storage and delete old jobs. Example: `*/5 * * * *` (runs every 5 minutes)
Loading
Loading