Optimizing task offloading and resource allocation in edge-cloud networks: a DRL approach | Synapse