We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4a96fb + 7241165 commit 1604f55Copy full SHA for 1604f55
earthpy/api/appeears.py
@@ -105,6 +105,10 @@ def __init__(
105
if os.path.exists(self.task_id_path):
106
with open(self.task_id_path, 'r') as task_id_file:
107
self._task_id = task_id_file.readline()
108
+ elif 'APPEEARS_TASKID' in os.environ:
109
+ self._task_id = os.environ['APPEEARS_TASKID']
110
+ with open(self.task_id_path, 'w') as task_id_file:
111
+ task_id_file.write(self._task_id)
112
else:
113
self._task_id = None
114
@@ -355,4 +359,4 @@ def download_files(self, cache=True):
355
359
f.write(data)
356
360
357
361
# Remove task id file when download is complete
358
- os.remove(self.task_id_path)
362
+ os.remove(self.task_id_path)
0 commit comments