-
Notifications
You must be signed in to change notification settings - Fork 13
/
6_temp_coop_fetch.yml
51 lines (39 loc) · 1.63 KB
/
6_temp_coop_fetch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
target_default: 6_temp_coop_fetch
include:
packages:
- scipiper
- dplyr
- googledrive
sources:
- 6_temp_coop_fetch/src/filter_files.R
- 6_temp_coop_fetch/src/task_fxns.R
- 6_temp_coop_fetch/src/list_gd_files.R
targets:
6_temp_coop_fetch:
depends:
- 6_temp_coop_fetch/log/6_temp_coop_fetch_tasks.ind
# -- download LTER files and push to GD -- #
coop_file_upload_location:
command: as_id(I('1dutCiFEOoRObXLn6n3BRKhZDDAijK65Q'))
# -- create makefile with targets for each file listed in gd -- #
# for these two targets, trigger_file is used to keep this _always stale_, so it always gets rebuilt.
# We're tacking the time onto the hash that represents a local-only file. the ".tind" file gets checked in,
# the local file does not
6_temp_coop_fetch/out/coop_all_files.rds.tind:
command: files_in_drive(out_tind = target_name,
gd_path = coop_file_upload_location,
trigger_file = '1_crosswalk_fetch/out/always_stale_time.txt',
trigger_wait = 120)
coop_wants:
command: filter_coop_all('6_temp_coop_fetch/out/coop_all_files.rds.tind',
trigger_file = '1_crosswalk_fetch/out/always_stale_time.txt')
coop_wants_fetch_plan:
command: create_coop_taskplan(coop_wants)
6_temp_coop_fetch_tasks.yml:
command: create_coop_fetch_makefile(target_name,
coop_wants_fetch_plan,
I('6_temp_coop_fetch/log/6_temp_coop_fetch_tasks.ind'))
# do we trigger a rebuild if the file contents changes? not just the names?
6_temp_coop_fetch/log/6_temp_coop_fetch_tasks.ind:
command: loop_tasks(task_plan = coop_wants_fetch_plan,
task_makefile = '6_temp_coop_fetch_tasks.yml')