demarches-normaliennes/spec/lib
simon lehericey f0b0e7fd9a Switch to usage of zip unix binary to create archive. Also use a dedicated queue for DelayedJob
use dedicated archives queue

As the used disk space will increase, we want a fined grain control

move zip logic in dedicated method

zip

wip

wip

fix(spec): pass spec in green

tech(improvements): avoid File.delete(folder), favor FileUtils.remove_entry_secure which is safer. Also wrap most of code that open file within blocks so it is cleaned when the block ends. Lastly use  attachement.download to avoid big memory pressure [download in chunk, write in chunk] otherwise big file [124>1GO] are loaded in memory. what if we run multiple jobs/download in parallel ?

fix(spec): try to retry with grace

clean(procedure_archive_service_spec.rb): better retry [avoid to rewrite on open file]

lint(things): everything
2021-12-13 16:37:04 +01:00
..
active_job jobs: extract an RetryOnTranscientErrors concern 2021-04-29 14:08:12 +02:00
active_storage tests 2021-10-05 15:00:21 +02:00
api_address Add api address external data fetch 2021-02-17 19:10:16 +01:00
api_education Fix api education wrong data type 2021-06-08 12:25:24 +02:00
api_entreprise zeitwerk: Api -> API 2021-02-09 13:07:30 +01:00
api_particulier feat (api particulier): add Pole emploi field 2021-12-08 10:36:25 +01:00
asn1 specs: always require rails_helper 2020-03-31 12:48:32 +02:00
database lib: add migration helpers for making a column unique 2021-04-13 18:09:59 +02:00
helpscout feat(helpscout): add a tag to messages submited through contact form 2021-12-09 11:47:13 +01:00
pipedrive specs: always require rails_helper 2020-03-31 12:48:32 +02:00
tasks populate zones 2021-12-02 19:16:11 +01:00
typhoeus/cache specs: always require rails_helper 2020-03-31 12:48:32 +02:00
universign specs: always require rails_helper 2020-03-31 12:48:32 +02:00
utils Switch to usage of zip unix binary to create archive. Also use a dedicated queue for DelayedJob 2021-12-13 16:37:04 +01:00
biz_dev_spec.rb specs: always require rails_helper 2020-03-31 12:48:32 +02:00