full-evening-87657
10/04/2023, 7:43 AMdamp-lion-88352
10/04/2023, 9:04 AMfrom flytekit.sensor.file_sensor import FileSensor
from flytekit import task, workflow
sensor = FileSensor(name="test_sensor")
@task()
def t1():
print("flyte")
@workflow
def wf():
sensor(path="/tmp/123") >> t1()
if __name__ == "__main__":
wf()
full-evening-87657
10/04/2023, 11:11 AMdamp-lion-88352
10/04/2023, 11:11 AMdamp-lion-88352
10/04/2023, 11:12 AMfull-evening-87657
10/05/2023, 9:36 AMWorkflow[flytesnacks:development:<http://sensor_task.wf|sensor_task.wf>] failed. RuntimeExecutionError: max number of system retry attempts [11/10] exhausted. Last known status message: failed at Node[n0]. RuntimeExecutionError: failed during plugin execution, caused by: failed to execute handle for plugin [container]: [BadTaskSpecification] invalid TaskSpecification, unable to determine Pod configuration
I catch this error when I run your above file test sensor script on remote. For some results, the sensor on remote can attempts muximum 10 times, not infinity. I am dev on flyte demo sandbox enviroment( flyte demo start). How to fix thisfull-evening-87657
10/05/2023, 9:42 AMdamp-lion-88352
10/05/2023, 12:14 PMglamorous-carpet-83516
10/05/2023, 5:59 PMglamorous-carpet-83516
10/05/2023, 5:59 PM