403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/s3transfer/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/s3transfer/__pycache__/tasks.cpython-314.pyc
+
[m�h.@����^RIt^RIt^RIHt^RIHt]P!]
4t!RR4t!RR]4t
!R	R
]4t!RR]4tR# ]d
^RIHtLNi;i)
�N)�
get_callbacks)�start_as_current_context)�nullcontextc�~a�]tRt^toRtRRltRt]R4tRt	Rt
RRltR	tR
t
RtRtR
tRtRtVtR#)�Taskz�A task associated to a TransferFuture request

This is a base class for other classes to subclass from. All subclassed
classes must implement the main() method.
Nc��WnW nVPf/VnW0nVf/VnW@nVPf.VnWPnR#)a�
:type transfer_coordinator: s3transfer.futures.TransferCoordinator
:param transfer_coordinator: The context associated to the
    TransferFuture for which this Task is associated with.

:type main_kwargs: dict
:param main_kwargs: The keyword args that can be immediately supplied
    to the _main() method of the task

:type pending_main_kwargs: dict
:param pending_main_kwargs: The keyword args that are depended upon
    by the result from a dependent future(s). The result returned by
    the future(s) will be used as the value for the keyword argument
    when _main() is called. The values for each key can be:
        * a single future - Once completed, its value will be the
          result of that single future
        * a list of futures - Once all of the futures complete, the
          value used will be a list of each completed future result
          value in order of when they were originally supplied.

:type done_callbacks: list of callbacks
:param done_callbacks: A list of callbacks to call once the task is
    done completing. Each callback will be called with no arguments
    and will be called no matter if the task succeeds or an exception
    is raised.

:type is_final: boolean
:param is_final: True, to indicate that this task is the final task
    for the TransferFuture request. By setting this value to True, it
    will set the result of the entire TransferFuture to the result
    returned by this task's main() method.
N)�_transfer_coordinator�_main_kwargs�_pending_main_kwargs�_done_callbacks�	_is_final)�self�transfer_coordinator�main_kwargs�pending_main_kwargs�done_callbacks�is_finals&&&&&&�2/usr/lib/python3/dist-packages/s3transfer/tasks.py�__init__�
Task.__init__"sX��P&:�"�'�����$� "�D��$7�!��&�(*�D�%�-�����'�#%�D� �!��c��.ROpVPVPV4pVPPRVPP
RVR2#)�bucketz
(transfer_id=z, �))r�key�part_number�final_filename�transfer_future�offset�
extra_args)�"_get_kwargs_with_params_to_includer
�	__class__�__name__r	�transfer_id)r�params_to_display�main_kwargs_to_displays&  r�__repr__�
Task.__repr__Zs`��
��"&�!H�!H����0�"
���.�.�)�)�*�-��8R�8R�8^�8^�7_�_a�bx�ay�yz�{�{rc�.�VPP#)z8The id for the transfer request that the task belongs to)r	r$)rs&rr$�Task.transfer_idks���)�)�5�5�5rc�@�/pVFpWA9gKW,W4&K	V#�N�)r�kwargs�include�filtered_kwargs�params&&&  rr!�'Task._get_kwargs_with_params_to_includeps(�����E���)/���&���rc�T�/pVP4FwrEWB9dK
WSV&K	V#r,)�items)rr.�excluder0r1�values&&&   r�"_get_kwargs_with_params_to_exclude�'Task._get_kwargs_with_params_to_excludews2����"�L�L�N�L�E����%*�E�"�+��rc�"�\V4;_uu_4VP4VP4pVPP	4'gbVPV4VPF
pV!4K	VP'dVPP4uuRRR4#VPF
pV!4K	VP'dVPP4RRR4R# \dpTPT4Rp?LqRp?ii;i TPF
pT!4K	TP'dTPP4ii;i +'giR#;i)z9The callable to use when submitting a Task to an executorN)r�_wait_on_dependent_futures�_get_all_main_kwargsr	�done�
_execute_mainrr
�
announce_done�	Exception�_log_and_set_exception)r�ctxr.�
done_callback�es&&   r�__call__�
Task.__call__s?��
%�c�
*�
*�
?��/�/�1�
�2�2�4���1�1�6�6�8�8��-�-�f�5�
&*�%9�%9�M�!�O�&:��>�>�>��.�.�<�<�>�1+�
*�9�&*�%9�%9�M�!�O�&:��>�>�>��.�.�<�<�>�1+�
*���
/��+�+�A�.�.��
/��&*�%9�%9�M�!�O�&:��>�>�>��.�.�<�<�>�"��++�
*�
*�s_�E=�AD�&+E=�E=�7D1�8+E=�$E=�D.�D)�$D1�)D.�.D1�1,E:�E:�:E=�=F	c���R.pVPW4p\PRVRV24VP!R/VBpVP'dVP
P
V4V#)�datazExecuting task z
 with kwargs r-)r7�logger�debug�_mainr
r	�
set_result)rr.�params_to_exclude�kwargs_to_display�return_values&&   rr=�Task._execute_main�ss��$�H�� �C�C��
��	����t�f�M�:K�9L�M�N��z�z�+�F�+���>�>�>��&�&�1�1�,�?��rc�j�\PRRR7VPPV4R#)zException raised.T)�exc_infoN)rHrIr	�
set_exception)r�	exceptions&&rr@�Task._log_and_set_exception�s)��	���(�4��8��"�"�0�0��;rc��\R4h)z�The method that will be ran in the executor

This method must be implemented by subclasses from Task. main() can
be implemented with any arguments decided upon by the subclass.
z_main() must be implemented��NotImplementedError)rr.s&,rrJ�
Task._main�s��"�"?�@�@rc���.pVPP4F?wr#\V\4'dVP	V4K.VPV4KA	VP
V4R#r,)rr4�
isinstance�list�extend�append�_wait_until_all_complete)r�futures_to_wait_on�_�futures&   rr:�Task._wait_on_dependent_futures�s_�����2�2�8�8�:�I�A��&�$�'�'�"�)�)�&�1�#�)�)�&�1�
;�	
�%�%�&8�9rc���\PRW4VF*p\PRW4VP4K,	\PRV4R# \dKTi;i)z-%s about to wait for the following futures %sz%s about to wait for %sz%%s done waiting for dependent futuresN)rHrI�resultr?)r�futuresras&& rr^�Task._wait_until_all_complete�se��	���;�T�	
��F�
����6��E��
�
���	���<�d�C��	�
��
�s�&A�A.�-A.c�6�\P!VP4pVPP4FZwr#\	V\
4'd,.pVF"pVP
VP44K$	MVP4pWAV&K\	V#r,)�copyr
rr4rZr[r]rd)rr.r�
pending_valuerdras&     rr;�Task._get_all_main_kwargs�s������4�,�,�-��#'�";�";�"A�"A�"C��C��-��.�.���+�F��M�M�&�-�-�/�2�,�'�-�-�/��!�3�K�#D��
r)rr
r
rr	)NNNFr,)r#�
__module__�__qualname__�__firstlineno__�__doc__rr'�propertyr$r!r7rDr=r@rJr:r^r;�__static_attributes__�__classdictcell__��
__classdict__s@rrrs^�����6"�p|�"�6��6���?�8�"<�A�:�D�,�rrc�6a�]tRt^�toRtRtRtRtRtVt	R#)�SubmissionTaskz�A base class for any submission task

Submission tasks are the top-level task used to submit a series of tasks
to execute a particular transfer.
c�x�VPP4\VR4pVF
pV!4K	VPP4VP!RRV/VBR# \
dGpTP
T4TP4TPP4Rp?R#Rp?ii;i)a
:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The transfer future associated with the
    transfer request that tasks are being submitted for

:param kwargs: Any additional kwargs that you may want to pass
    to the _submit() method
�queuedrNr-)	r	�set_status_to_queuedr�set_status_to_running�_submit�
BaseExceptionr@�+_wait_for_all_submitted_futures_to_completer>)rrr.�on_queued_callbacks�on_queued_callbackrCs&&,   rrJ�SubmissionTask._main�s���$	7��&�&�;�;�=�#0���"J��&9�"�"�$�':�
�&�&�<�<�>�
�L�L�C��C�F�C���	7�
�'�'��*�

�<�<�>�
�&�&�4�4�6�6��-	7�s�A$A(�(B9�3;B4�4B9c��\R4h)a(The submission method to be implemented

:type transfer_future: s3transfer.futures.TransferFuture
:param transfer_future: The transfer future associated with the
    transfer request that tasks are being submitted for

:param kwargs: Any additional keyword arguments you want to be passed
    in
z_submit() must be implementedrV)rrr.s&&,rrz�SubmissionTask._submit)s��"�"A�B�Brc��VPPpV'd4VPV4VPPpW8XdR#TpK;R#r,)r	�associated_futuresr^)r�submitted_futures�possibly_more_submitted_futuress&  rr|�:SubmissionTask._wait_for_all_submitted_futures_to_complete5sT��!�6�6�I�I����)�)�*;�<��*�*�=�=�
,�!�C�� ?��! rr-N)
r#rkrlrmrnrJrzr|rprqrrs@rruru�s"�����-7�^
C�@�@rruc�*a�]tRtRtoRtRtRtVtR#)�CreateMultipartUploadTaskiQz#Task to initiate a multipart uploadc��VP!RRVRV/VBpVR,pVPPVPVVVR7V#)a9
:param client: The client to use when calling CreateMultipartUpload
:param bucket: The name of the bucket to upload to
:param key: The name of the key to upload to
:param extra_args: A dictionary of any extra arguments that may be
    used in the initialization.

:returns: The upload id of the multipart upload
�Bucket�Key�UploadId)r�r�r�r-)�create_multipart_uploadr	�add_failure_cleanup�abort_multipart_upload)r�clientrrr �response�	upload_ids&&&&&  rrJ�CreateMultipartUploadTask._mainTsm���1�1�
��
�"�
�&0�
���Z�(�	�	
�"�"�6�6��)�)����		7�	
��rr-N�r#rkrlrmrnrJrprqrrs@rr�r�Qs����-��rr�c�*a�]tRtRtoRtRtRtVtR#)�CompleteMultipartUploadTaskinz#Task to complete a multipart uploadc�>�VP!RRVRVRVRRV//VBR#)a"
:param client: The client to use when calling CompleteMultipartUpload
:param bucket: The name of the bucket to upload to
:param key: The name of the key to upload to
:param upload_id: The id of the upload
:param parts: A list of parts to use to complete the multipart upload::

    [{'Etag': etag_value, 'PartNumber': part_number}, ...]

    Each element in the list consists of a return value from
    ``UploadPartTask.main()``.
:param extra_args:  A dictionary of any extra arguments that may be
    used in completing the multipart transfer.
r�r�r��MultipartUpload�PartsNr-)�complete_multipart_upload)rr�rrr��partsr s&&&&&&&rrJ�!CompleteMultipartUploadTask._mainqsE��	�(�(�	
��	
��	
��	
�%�e�,�		
�
�	
rr-Nr�rrs@rr�r�ns����-�
�
rr�)rh�logging�s3transfer.utilsr�botocore.contextr�ImportError�
contextlibr�	getLoggerr#rHrrur�r�r-rr�<module>r�sx����*�C�9�

�	�	�8�	$��U�U�p[@�T�[@�|���:
�$�
��u
�C�B�C�s�A�
A%�$A%

Youez - 2016 - github.com/yon3zu
LinuXploit