Action
vds_download_queue(context, query, file, server=None, notifier=None)
¶
Queues a download and returns information about the job and status.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
the CKAN action context |
required | |
query
|
QueryArgs
|
the query as a QueryArgs object |
required |
file
|
DerivativeArgs
|
the file options as a DerivativeArgs object |
required |
server
|
ServerArgs
|
the server options as a ServerArgs object (default is None) |
None
|
notifier
|
NotifierArgs
|
the notifier options as a NotifierArgs object (default is None) |
None
|
Returns:
| Type | Description |
|---|---|
|
a dict of information about the download |
Source code in ckanext/versioned_datastore/logic/download/action.py
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
vds_download_regenerate(context, download_id, server=None, notifier=None)
¶
Regenerates a download.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
context
|
the CKAN action context |
required | |
download_id
|
the download ID |
required | |
server
|
ServerArgs
|
the server options as a ServerArgs object (default is None) |
None
|
notifier
|
NotifierArgs
|
the notifier options as a NotifierArgs object (default is None) |
None
|
Returns:
| Type | Description |
|---|---|
|
a dict of information about the download |
Source code in ckanext/versioned_datastore/logic/download/action.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |