great-salesclerk-84349
02/19/2023, 7:55 AM--datastore=s3, it also runs successfully. The execution fails when I have --with batch. The error message is
2023-02-18 23:42:12.237 Workflow starting (run-id 1676792530723739):
2023-02-18 23:42:25.550 [1676792530723739/start/1 (pid 41117)] Task is starting.
2023-02-18 23:42:27.145 [1676792530723739/start/1 (pid 41117)] [79e6b696-1231-4cc8-ac53-e57cd2d752e8] Task is starting (status SUBMITTED)...
2023-02-18 23:42:31.308 [1676792530723739/start/1 (pid 41117)] [79e6b696-1231-4cc8-ac53-e57cd2d752e8] Task is starting (status RUNNABLE)...
2023-02-18 23:42:33.511 [1676792530723739/start/1 (pid 41117)] [79e6b696-1231-4cc8-ac53-e57cd2d752e8] Task is starting (status FAILED)...
2023-02-18 23:42:34.307 [1676792530723739/start/1 (pid 41117)] Data store error:
2023-02-18 23:42:34.307 [1676792530723739/start/1 (pid 41117)] No completed attempts of the task was found for task 'ProcessFlowDemo/1676792530723739/start/1'
2023-02-18 23:42:34.720 [1676792530723739/start/1 (pid 41117)]
2023-02-18 23:42:34.901 [1676792530723739/start/1 (pid 41117)] Task failed.
2023-02-18 23:42:35.057 Workflow failed.
2023-02-18 23:42:35.057 Terminating 0 active tasks...
2023-02-18 23:42:35.058 Flushing logs...
Step failure:
Step start (task-id 1) failed.
Actual code:
from metaflow import FlowSpec, step
import os
global_value = 5
class ProcessFlowDemo(FlowSpec):
@step
def start(self):
global global_value
global_value = 8
print(f"Process id: {global_value}")
print(f"Process id: {os.getpid()}")
self.next(self.end)
@step
def end(self):
print(f"Process id: {global_value}")
print(f"Process id: {os.getpid()}")
if __name__ == '__main__':
ProcessFlowDemo()
As you can there is no permission issue to connect to S3 from Batch. Please LMK if you need additional info to debug this. TIA!victorious-lawyer-58417
02/20/2023, 7:32 AMancient-application-36103
02/20/2023, 6:59 PM79e6b696-1231-4cc8-ac53-e57cd2d752e8 in the AWS Batch console.square-wire-39606
02/22/2023, 4:32 PMgreat-salesclerk-84349
02/22/2023, 7:37 PMgreat-salesclerk-84349
02/23/2023, 3:53 AMECS was unable to assume the role 'arn:aws:iam::003513502334:role/metaflow-tutorial-v1-BatchExecutionRole-1VBU4GBQORXO5' that was provided for this task. Please verify that the role being passed has the proper trust relationship and permissions and that your IAM user has permissions to pass this role.
Current IAM policies that were set from CF template.great-salesclerk-84349
02/23/2023, 3:54 AM