(task: Dict[str, Any])
| 2036 | "fallback_source_scope", |
| 2037 | ): |
| 2038 | if key in result and key not in metadata: |
| 2039 | metadata[key] = result[key] |
| 2040 | push_payload["metadata"] = metadata |
| 2041 | return {"result": result, "push": push_payload} |
| 2042 | |
| 2043 | |
| 2044 | def _task_timestamp() -> str: |
| 2045 | return datetime.now().replace(microsecond=0).isoformat() |
| 2046 | |
| 2047 | |
| 2048 | def _daily_task_payload(task: Dict[str, Any]) -> Dict[str, Any]: |
| 2049 | payload = deepcopy( |
| 2050 | { |
no test coverage detected